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

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

Info

Publication number
CN107368333A
CN107368333A CN201710597902.1A CN201710597902A CN107368333A CN 107368333 A CN107368333 A CN 107368333A CN 201710597902 A CN201710597902 A CN 201710597902A CN 107368333 A CN107368333 A CN 107368333A
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.)
Granted
Application number
CN201710597902.1A
Other languages
Chinese (zh)
Other versions
CN107368333B (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 field, wearable device collocation method and system and configuration system more particularly to based on graphical programming.A kind of wearable device collocation method based on graphical programming, comprises 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;Configuration file is instructed 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, the quick part programmable functional requirement realized to wearable device, and create a separate threads, the separate threads have no effect on any thread that wearable device was currently running originally, wearable device original function normal operation is ensure that, greatly promotes Consumer's Experience.

Description

Wearable device collocation method and system and configuration system based on graphical programming
Technical field
The present invention relates to wearable device technical field, the wearable device collocation method more particularly to based on graphical programming With system and configuration system.
Background technology
With science and technology and the development of the communication technology, people are to the functional requirement of wearable device also more and more higher, no longer The function that wearable device has been set, such as intelligent watch are contented just to, is not merely satisfied with looking into built in wrist-watch See the time, take the functions such as phone, more occur to its programmable functional requirement, for example race is provided with around intelligent watch Barn lantern, by the programmable different display effects for realizing horse race lamp to intelligent watch, or pass through compiling to intelligent watch Some other operations of Cheng Shixian, the interest of wearable device is considerably increased, be also beneficial to develop the creativeness of user of service.
In the prior art, the control to equipment is typically realized by two ways, one kind writes journey by programming language Sequence, machine executable file is compiled into, equipment is entered in burning, it is performed respective operations, but such mode requires operating personnel Certain art of programming is needed to be grasped, it is high to its technical requirements;
Another mode is the programmable robot used at present, and control terminal writes corresponding program, directly transmits phase Program to programmable robot, programmable robot is answered to perform respective operations, although such mode is simple, to action executing 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 inapplicable.
The content of the invention
For this reason, it may be necessary to the wearable device collocation method and system and configuration system based on graphical programming are provided, to solve Realized certainly on the wearable device of low hardware configuration can fast and flexible programing function, while substantially reduce to user of service's The problem of programming technique requirement.
To achieve the above object, a kind of wearable device collocation method based on graphical programming is inventor provided, specifically Implementation it is as follows:
A kind of wearable device collocation method based on graphical programming, comprises the following steps:It is dynamic by graphical programming generation 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 ", in addition to 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 ", in addition to step:Multiple parameters are received, according to described Parameter judges whether to meet trigger condition, if meeting trigger condition, performs respective action instruction.
Further, action command program is generated by Blockly.
Further, the wearable device includes:Intelligent watch, horse race lamp is provided with the intelligent watch.
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 Make 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, the separate threads are run, complete 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, perform 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:Intelligent watch, horse race lamp is provided with the intelligent watch.
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 Make program carry out simplifying processing, generate 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 action command program is simplified Processing, action command configuration file is generated, sends the action command configuration file to wearable device, wearable device is to institute State action command configuration file to be parsed, generate oneself recognizable program, and perform respective action instruction, in whole process Not exclusively action command configuration file generation simple and convenient, and without same traditional approach, program is write by programming language, Machine executable file is compiled into, equipment is entered in burning 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 technical requirements to operating personnel.And can be by generating different action command programs With action command configuration file, the part programmable functional requirement to wearable device is quickly realized, and parses action command and matches somebody with somebody File is put, is to create a separate threads, the separate threads have 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 Consumer's 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 the wearable device contrast based on Android operation system, drop significantly Low programming difficulty, can be towards common user, and is not simple parameter configuration, between specialty in granularity and flexibility Between programming and can not programming, and can realizes very flexible User Defined programing function, and increase user uses the entertaining of process Property and subjective initiative.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the wearable device collocation method based on graphical programming described in embodiment;
Fig. 2 is the module map that a kind of wearable device based on graphical programming described in embodiment configures system;
Fig. 3 is a kind of module map of the configuration system based on graphical programming described in embodiment.
Description of reference numerals:
200th, wearable device configuration system,
201st, action command program generating module,
202nd, action command configuration file generation module,
203rd, action command configuration file parsing module,
204th, action command execution module,
300th, the configuration system based on graphical programming,
301st, program terminal,
302nd, wearable device.
Embodiment
To describe the technology contents of technical scheme, construction feature, the objects and the effects in detail, below in conjunction with specific reality Apply example and coordinate accompanying drawing to be explained in detail.
Referring to Fig. 1, in the present embodiment, the wearable device refers to:Directly wear, or be incorporated into user Clothes or accessory a kind of portable set.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 intelligent watch, 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 forms.
In the present embodiment, a kind of wearable device collocation method based on graphical programming can be applicable to intelligent hand On table, horse race lamp is provided with the intelligent watch.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 Blockly language generation action command programs, the action command program can be saved as other programming language files and be stored in On machine, next time can directly by change the programming language generation corresponding to action command program, also can be to the programming language File is shared, it is ensured that same action command program, without duplicate removal repetitive generation, and convenient use and raising efficiency.At this Programming language can be java language in embodiment, in other embodiments, can also select as other programming languages, equally 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 write without any code, 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 performed:The action command program is carried out to simplify processing, generation is 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 (circulation, Condition) function above is realized, it is specific as follows:Based on different physical location (such as wireless network, blueteeth network, GPS location, Lamp, vibrations, time timer etc., the above can be input module or output module), write in advance it is various can The software function module of parameter configuration, for the various input trigger conditions of parameter definition of input, for the parameter definition of output Various output effects.User, in conjunction with 2 kinds of sentences (circulation, condition), can pass through graphical programming group by easy configuration parameter Knit it is described write in advance it is various can parameter configuration software function module, realize various custom features, i.e. generation is 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, (downwards, to the left, to the right) etc. upwards is overturn, output condition includes:Sound xxx is played, shows picture xxx, horse race lamp X circles are run, call xxx etc., then according to preset rules, different corresponding instructions are generated by different sentences, such as:IF is received Send 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 If son, which is meant, receives 123 incoming calls and the time is earlier than 10 points of morning, horse race lamp runs 2 circles on wearable wrist-watch, then shows Diagram piece 1.jpg, otherwise plays audio files 3.mp3, and the control code name corresponding to different instruction regenerations to more than, finally The action command configuration file of .json forms is formed, can be in the following way:Incoming call corresponding control generation is received in input condition Number:0x00, receive short message and correspond to control code name:0x01, time correspond to control code name:0x02, upset type correspond to control code name: 0x03 etc., different instructions correspond to different control code names, eventually form the action command configuration file of .json forms.
Wherein, the condition after IF statement can be and condition, or or condition, such as:IF receives incoming call 123OR and received Short message 123OR time=10: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 performs in order.Do statement can be encapsulated outside conditional statement, such as circulation is several times, unencapsulated In the case of, it is defaulted as Infinite Cyclic.Wherein input module can encapsulate multiple input conditions, and output module can also encapsulate multiple defeated Go out condition, encapsulate higher level, more complicated action can be achieved, such simplified processing is without compared with robot programming language one Sample greatlys save performance, it is necessary to require that terminal has java resolvers, and easy to operate, great flexibility.
After generating action command configuration file, step S103 is performed: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 intelligent watch.Step S104:Institute State wearable device and parse the action command configuration file.The intelligent watch receives the action command configuration file, and The action command configuration file is parsed.After having parsed, step S105 is performed:According to the action command configuration file Separate threads are created, run the separate threads, complete respective action instruction.It is specific as follows:Configured according to the action command The good separate threads of document creation, it is independent with the main program of the wearable device that the separate threads, which are, 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 carry out Any application, such as:Alarm clock is reminded to point, music etc..The intelligent wearable device will receive multiple parameters, can Judge whether to meet trigger condition according to the parameter, if meeting trigger condition, perform respective action instruction.Specifically such as Under:The intelligent wearable device receives multiple parameters, wherein the various combination of the parameter corresponds to different instructions, has ginseng only 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 performed.
In the present embodiment, by generating different action command programs horse race lamp on intelligent watch can be controlled to present 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 contrasts, our volume Journey difficulty substantially reduces, can towards common user, between real programming and simple parameter configuration, granularity with In flexibility between it specialty programming and can not program, and can realizes that very flexible User Defined programing function can also pass through Different action command programs is generated to control wearable smart machine to realize other programmable functions.
Graphical programming generates action command program, and action command program is carried out to simplify processing, and generation action command is matched somebody with somebody File is put, sends the action command configuration file to wearable device, wearable device is to the action command configuration file Parsed, generate oneself recognizable program, and perform respective action instruction, be not only that action command is matched somebody with somebody in whole process File generated simple and convenient is put, and without same traditional approach, program is write by programming language, is compiled into the executable text of machine Equipment is entered in part, burning so that be ignorant of professional programming language operating personnel can also wearable device carry out programmable operations, greatly The big technical requirements reduced to operating personnel.And 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 to create one solely Vertical thread, the separate threads, which have 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, Consumer's Experience is greatly promoted, 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 the wearable device contrast based on Android operation system, substantially reduce programming difficulty, can be towards common User, and be not simple parameter configuration, in granularity and flexibility between it specialty programming and can not program, again Very flexible User Defined programing function can be realized, increase user uses the interest and subjective initiative of 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 scheme 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, complete 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, performs respective action instruction.It is specific as follows:The action Instruct execution module 204 to receive multiple parameters, wherein the various combination of the parameter corresponds to different instructions, have the group of parameter only 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 performed.
In the present embodiment, the action command program generating module 201 is additionally operable to: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 Cross different sentences and generate different corresponding instructions, the sentence includes:Do statement and conditional statement.In the present embodiment, It is to realize function above by input module, output module and 2 kinds of sentences (circulation, condition), it is specific as follows:Based on different things Reason unit (for example wireless network, blueteeth network, GPS location, lamp, vibrations, time timer etc., the above can be defeated Enter module or output module), write in advance it is various can parameter configuration software function module, determine for the parameter of input The various input trigger conditions of justice, for the various output effects of parameter definition of output.User can by easy configuration parameter, then With reference to 2 kinds of sentences (circulation, condition), by write in advance described in graphical programming tissue it is various can parameter configuration software letter Digital-to-analogue block, various custom features are realized, that is, generate different action command configuration files.Such as:In the present embodiment, input 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, calls xxx etc., then according to preset rules, Different corresponding instructions is generated by different sentences, such as:IF receives incoming call 123AND and receives short message 123AND time=10: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 Piece 1.jpg, audio files 3.mp3 is otherwise played, and to control code name corresponding to instruction regenerations different above, last shape , can be in the following way into the action command configuration file of .json forms:The corresponding control code name of incoming call is received in input condition: 0x00, receive short message and correspond to control code name:0x01, time correspond to control code name:0x02, upset type correspond to control code name: 0x03 etc., different instructions correspond to different control code names, eventually form the action command configuration file of .json forms.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 performs in order.Do statement can be encapsulated outside conditional statement, is such as circulated several times, unencapsulated situation Under, it is defaulted as Infinite Cyclic.Wherein input module can encapsulate multiple input conditions, and output module can also encapsulate multiple output bars Part, higher level is encapsulated, more complicated action, easy to operate, the great flexibility of such simplified processing can be achieved.
In the present embodiment, the wearable device includes:Intelligent watch, horse race is provided with the intelligent watch 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 simplifying processing to action command program, generates action command configuration file, and match somebody with somebody by action command Document analysis module 203 is put by sending the action command configuration file from the background to wearable device, wearable device is to institute State action command configuration file to be parsed, generate oneself recognizable program, and perform by action command execution module 204 Respective action instructs, and is not only action command configuration file generation simple and convenient in whole process, and without with tradition side Formula, program is write by programming language, be compiled into machine executable file, equipment is entered in burning so that be ignorant of professional programming language Operating personnel can also wearable device carry out programmable operations, substantially reduce the technical requirements to operating personnel.And act Instruction repertorie generation module 201 can be by generating different action command programs and action command configuration file, and quick realization pair can The part programmable functional requirement of wearable device, and action command configuration file is parsed, mould is really performed by action command Block 204 creates a separate threads, and the separate threads have 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 promote user's body Test.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 specialty programming and can not program, and can is realized very flexible User Defined programing function, increase user use the interest and subjective initiative of 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 Make 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, complete respective action instruction.
In the present embodiment, the program terminal 301 may include:Smart mobile phone, tablet personal computer, Desktop PC, notebook Computer, PDA etc. are provided with graphical programming software or app smart machine.
The wearable device 302 may include:Directly wear, or be incorporated into the clothes of user or one kind of accessory Portable set.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 intelligent watch, Intelligent bracelet, intelligent glasses, intelligent headband, intelligent school bag.
The program terminal 301 is used for:Action command program is generated by graphical programming;The action command program is entered Row simplifies processing, generates action command configuration file;By sending the action command configuration file from the background to wearable device 302.Specifically can be in the following way:
In the present embodiment, can be by Blockly language generation action command programs, can be the action command program Save as other programming language files to be stored on machine, next time directly can act by changing corresponding to programming language generation Instruction repertorie, the programming language file can also be shared, it is ensured that same action command program, without duplicate removal demutation Into convenient use and raising efficiency.Programming language can be java language in the present embodiment, in other embodiments, It can select for other programming languages, equally in other embodiments, can also generate 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, without 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, generation 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, it is by more than input module, output module and 2 kinds of sentences (circulation, condition) realizations in the present embodiment Function, it is specific as follows:Based on different physical location (such as wireless network, blueteeth network, GPS location, lamp, vibrations, time meter When device etc., the above can be input module or output module), write in advance it is various can parameter configuration software Function module, for the various input trigger conditions of parameter definition of input, for the various output effects of parameter definition of output.With Family can be by easy configuration parameter, in conjunction with 2 kinds of sentences (circulation, 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, (downwards, to the left, to the right) etc. upwards is overturn, output condition includes:Sound xxx is played, shows picture xxx, horse race lamp X circles are run, call xxx etc., then according to preset rules, different corresponding instructions are generated by different sentences, such as:IF is received Send 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 If son, which is meant, receives 123 incoming calls and the time is earlier than 10 points of morning, horse race lamp runs 2 circles on wearable wrist-watch, then shows Diagram piece 1.jpg, otherwise plays audio files 3.mp3, and the control code name corresponding to different instruction regenerations to more than, finally The action command configuration file of .json forms is formed, can be in the following way:Incoming call corresponding control generation is received in input condition Number:0x00, receive short message and correspond to control code name:0x01, time correspond to control code name:0x02, upset type correspond to control code name: 0x03 etc., different instructions correspond to different control code names, eventually form the action command configuration file of .json forms.
Wherein, the condition after IF statement can be and condition, or or condition, such as:IF receives incoming call 123OR and received Short message 123OR time=10: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 performs in order.Do statement can be encapsulated outside conditional statement, such as circulation is several times, unencapsulated In the case of, it is defaulted as Infinite Cyclic.Wherein input module can encapsulate multiple input conditions, and output module can also encapsulate multiple defeated Go out condition, encapsulate higher level, more complicated action can be achieved, such simplified processing is without compared with robot programming language one Sample greatlys save performance, it is necessary to require that terminal has java resolvers, and easy to operate, great flexibility.Generation is 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 intelligent watch.
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, the separate threads are run, complete respective action instruction.Specifically can be in the following way:According to institute State action command configuration file and create 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 the main program of wearable device 302, therefore not shadow in whole process The ongoing any application of wearable device 302 is rung, such as:Alarm clock is reminded 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 perform respective action instruction.It is specific as follows:The intelligent 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 triggers respective action instruction, then institute State intelligent wearable device 302 receive the parameter abc values for 111 when, just perform respective action instruct.
In the present embodiment, by generating different action command programs horse race lamp on intelligent watch can be controlled to present Different display effects, whole process do big improvement upgrading on hardware without wearable device 302, substantially reduce cost, Wearable device contrast 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 specialty programming and can not program, and can realizes that very flexible User Defined programing function also may be used Wearable smart machine is controlled to realize other programmable functions by generating different action command programs.
Program terminal 301 generates action command program by graphical programming, and action command program is carried out to simplify processing, Action command configuration file is generated, it is right to wearable device 302, wearable device 302 to send the action command configuration file The action command configuration file is parsed, and generates oneself recognizable program, and performs respective action instruction, whole process In be not only action command configuration file generation simple and convenient, and without same traditional approach, journey is write by programming language Sequence, is compiled into machine executable file, and equipment is entered in burning 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 technical requirements to operating personnel.And can be by generating different action command journeys Sequence and action command configuration file, the quick part programmable functional requirement realized to wearable device 302, and parsing action refers to Configuration file is made, is to create a separate threads, the separate threads have no effect on what wearable device 302 was currently running originally Any thread (not influenceing the original main program of wearable device 302), it is ensured that the original function of wearable device 302 is normally transported OK, Consumer's Experience is greatly promoted, and is improved to 302 programmable flexibility of wearable device.And generated by graphical programming Action command program, with the wearable device 302 of traditional embedded OS and wearing based on Android operation system Wear equipment 302 to contrast, substantially reduce programming difficulty, can be towards common user, and be not simple parameter configuration, in particle On degree and flexibility between it specialty programming and can not program, and can realizes very flexible User Defined programing function, increases User is added to use the interest and subjective initiative of process.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability includes, so that process, method, article or terminal device including a series of elements not only include those Key element, but also the other element including being not expressly set out, or it is this process, method, article or end also to include The intrinsic key element of end equipment.In the absence of more restrictions, limited by sentence " including ... " or " including ... " Key element, it is not excluded that other key element in the process including the key element, method, article or terminal device also be present.This Outside, herein, " being more than ", " being less than ", " exceeding " etc. are interpreted as not including this number;" more than ", " following ", " within " etc. understand It is to include this number.
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.These embodiments can use the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Form.All or part of step in the method that the various embodiments described above are related to can by program come instruct the hardware of correlation come Complete, described program can be stored in the storage medium that computer equipment can be read, for performing the various embodiments described above side All or part of step described in method.The computer equipment, include but is 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, intelligent home device, wearable Smart machine, vehicle intelligent equipment etc.;Described storage medium, include but is not limited to:RAM, ROM, magnetic disc, tape, CD, sudden strain of a muscle Deposit, 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 Flow chart and/or block diagram describe.It should be understood that can be by every in computer program instructions implementation process figure and/or block diagram One flow and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computers can be provided Programmed instruction is to the processor of computer equipment to produce a machine so that passes through the finger of the computing device of computer equipment Order, which produces, to be used to realize what is specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames The device of function.
These computer program instructions may be alternatively stored in the computer that computer equipment can be guided to work in a specific way and set In standby readable memory so that the instruction being stored in the computer equipment readable memory produces the manufacture for including command device Product, the command device is realized to be referred in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames Fixed function.
These computer program instructions can be also loaded on computer equipment so that performed on a computing device a series of Operating procedure is to produce computer implemented processing, so as to which the instruction performed on a computing device is provided for realizing in flow The step of function of being specified in one flow of figure or multiple flows and/or one square frame of block diagram or multiple square frames.
Although the various embodiments described above are described, those skilled in the art once know basic wound The property made concept, then other change and modification can be made to these embodiments, so embodiments of the invention are the foregoing is only, Not thereby the scope of patent protection of the present invention, every equivalent structure made using description of the invention and accompanying drawing content are limited Or equivalent flow conversion, or other related technical areas are directly or indirectly used in, similarly it is included in the patent of the present invention Within protection domain.

Claims (11)

1. a kind of wearable device collocation method based on graphical programming, it is characterised in that comprise 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, the separate threads are run, complete respective action instruction.
2. a kind of wearable device collocation method based on graphical programming according to claim 1, it is characterised in that described Step " carries out simplifying processing " to the action command program, in addition to step:
According to preset rules, different corresponding instructions is generated by different sentences, the sentence includes:Do statement and condition language Sentence.
3. a kind of wearable device collocation method based on graphical programming according to claim 1, it is characterised in that described Step " completes respective action instruction ", in addition to step:
Multiple parameters are received, judges whether to meet trigger condition according to the parameter, if meeting trigger condition, performs correspondence Action command.
A kind of 4. wearable device collocation method based on graphical programming according to claim 1, it is characterised in that
Action command program is generated by Blockly.
A kind of 5. wearable device collocation method based on graphical programming according to claim 1, it is characterised in that
The wearable device includes:Intelligent watch, horse race lamp is provided with the intelligent watch.
A kind of 6. wearable device configuration system based on graphical programming, it is characterised 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, run described only Vertical thread, complete respective action instruction.
A kind of 7. wearable device configuration system based on graphical programming according to claim 6, it is characterised in that
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.
A kind of 8. wearable device configuration system based on graphical programming according to claim 6, it is characterised 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 performed.
A kind of 9. wearable device configuration system based on graphical programming according to claim 6, it is characterised in that
The action command program generating module is additionally operable to:Action command program is generated by Blockly.
A kind of 10. wearable device configuration system based on graphical programming according to claim 6, it is characterised in that
The wearable device includes:Intelligent watch, horse race lamp is provided with the intelligent watch.
A kind of 11. configuration system based on graphical programming, it is characterised 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, generate 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, run the separate threads, complete respective action instruction.
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 true CN107368333A (en) 2017-11-21
CN107368333B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108196906A (en) * 2017-12-28 2018-06-22 京信通信系统(中国)有限公司 A kind of user instruction treatment method and embedded device
CN109976744A (en) * 2017-12-26 2019-07-05 深圳市优必选科技有限公司 A kind of visual programming method, system and terminal device
CN111684414A (en) * 2019-04-29 2020-09-18 深圳市大疆创新科技有限公司 Visual programming control device, programmable control device, control method thereof, computer-readable storage medium, and programming control system
CN115543325A (en) * 2022-12-05 2022-12-30 四川振函创新智能科技有限公司 Graphical programming interface layout optimization method, system, terminal and medium
CN116088882A (en) * 2023-03-31 2023-05-09 深圳市微克科技有限公司 Function configuration method, system and medium based on intelligent wearable device

Citations (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
EP3151070A1 (en) * 2015-09-30 2017-04-05 Delta Dore Device and method for modifying the programming of a home-automation system

Patent Citations (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
EP3151070A1 (en) * 2015-09-30 2017-04-05 Delta Dore Device and method for modifying the programming of a home-automation system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976744A (en) * 2017-12-26 2019-07-05 深圳市优必选科技有限公司 A kind of visual programming method, system and terminal device
CN108196906A (en) * 2017-12-28 2018-06-22 京信通信系统(中国)有限公司 A kind of user instruction treatment method and embedded device
CN108196906B (en) * 2017-12-28 2021-06-22 京信通信系统(中国)有限公司 User instruction processing method and embedded device
CN111684414A (en) * 2019-04-29 2020-09-18 深圳市大疆创新科技有限公司 Visual programming control device, programmable control device, control method thereof, computer-readable storage medium, and programming control system
CN115543325A (en) * 2022-12-05 2022-12-30 四川振函创新智能科技有限公司 Graphical programming interface layout optimization method, system, terminal and medium
CN116088882A (en) * 2023-03-31 2023-05-09 深圳市微克科技有限公司 Function configuration method, system and medium based on intelligent wearable device

Also Published As

Publication number Publication date
CN107368333B (en) 2018-08-14

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
Jiang et al. Software for wearable devices: Challenges and opportunities
CN105528229B (en) Improve the method and device that mobile terminal first powers on speed
CN103500087A (en) Code generation method and device based on maven plug-in and freemarker template
CN104731589A (en) Automatic generation method and device of user interface (UI)
CN110413346A (en) A kind of parameter updating method and device
CN108744535B (en) VR control method for playing back, device, VR controlling terminal and readable storage medium storing program for executing
CN111162977B (en) Method and device for accessing terminal of Internet of things to cloud service
CN107807821A (en) The implementation method and terminal of animation pop-up
CN105224401A (en) Scheduled task control method and device
CN102999608A (en) System and method for tree table demonstration of large data
CN109933381A (en) A kind of loading method and device of kernel
US10496423B2 (en) Method for opening up data and functions of terminal application based on reconstruction technology
CN106126377B (en) The method and device of system starting
CN110119282A (en) A kind of internet-of-things terminal and system based on general-purpose built-in type computer
CN104793954A (en) Compiling-free graphical combined element encapsulating and reusing method
CN110781180A (en) Data screening method and data screening device
CN103425469A (en) Method for generating mobile game codes based on MDA technology
CN110489207A (en) Verification method, apparatus and computer readable storage medium
CN108153745B (en) Application data calling method and application development system
CN103605806B (en) Implementation method for configurable structural data organization mode
CN108804088B (en) Protocol processing method and device
CN110018831B (en) Program processing method, program processing apparatus, and computer-readable storage medium
CN111638871A (en) Equipment information processing method, device, equipment and medium

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