CN104063227A - Command learning method based on internet of things - Google Patents

Command learning method based on internet of things Download PDF

Info

Publication number
CN104063227A
CN104063227A CN201410310189.4A CN201410310189A CN104063227A CN 104063227 A CN104063227 A CN 104063227A CN 201410310189 A CN201410310189 A CN 201410310189A CN 104063227 A CN104063227 A CN 104063227A
Authority
CN
China
Prior art keywords
parameter
action
command
learn command
learn
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
CN201410310189.4A
Other languages
Chinese (zh)
Other versions
CN104063227B (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.)
Chengdu Shihaixintu Microelectronics Co ltd
Original Assignee
Hefei University of Technology
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 Hefei University of Technology filed Critical Hefei University of Technology
Priority to CN201410310189.4A priority Critical patent/CN104063227B/en
Publication of CN104063227A publication Critical patent/CN104063227A/en
Application granted granted Critical
Publication of CN104063227B publication Critical patent/CN104063227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Selective Calling Equipment (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a command learning method based on an internet of things. The method is characterized by comprising the following steps of 1, the parameter definition of a learning command; 2, the parameter entering of the learning command; 3, the parameter passing of the learning command; 4, the parameter storage of the learning command; 5, the update judgment of the learning command; 6, the parameter analysis of the learning command; 7, the transmission of the learning command; 8, the storage and transmission of the learning command; 9, the binding of the learning command. According to the command learning method based on the internet of things, a command learning system can be standardized, a user can conveniently expand command functions, and the development cost can be reduced.

Description

A kind of instruction learning method based on Internet of Things
Technical field
The present invention relates to internet of things intelligent household, relate in particular to a kind of expansion based on Internet of Things household.
Background technology
Along with the develop rapidly of social economy's level, the quickening of rhythm of life, from the pressure of each side, makes people take a fancy to all the more comfortableness, the security and intelligent of family life.So being based on the Internet of Things household industry development of central control system obtains day by day prosperous and powerful.So-called Internet of Things household, be one and take the organic system body of house as intelligent artifact Comprehensive Control such as stage apparatus security protection, audio-visual, light, curtain, it not just energy construct networking household of certain single product, its related face is very wide, can't do without the hand-in-glove of security protection, household electrical appliances, ITHe system integrator, this just requires can be ideally compatible between each equipment.
The Internet of Things house system existing at present, as a system independently, can be realized very easily home furnishings intelligent is controlled.But think to carry out on this basis the expansion of household electrical appliance, add arbitrarily the new household electrical appliances that user buys, current existing system is still to a large problem.So, how building a standard, the system that how to design a set of Internet of Things household that can arbitrarily expand has become a large problem.
Some that exist at present must rely on Internet of Things household developer again to develop to the integration technology of Domestic electrical equipment, for different household electrical appliances, take the standard of Internet of Things household supplier oneself definition and the standard device that adopts Internet of Things household developer to provide, so not only the construction cycle is long but also can bring certain puzzlement to user's use.
Summary of the invention
The present invention is in order to solve the weak point of existing Internet of Things house system, a kind of instruction learning method based on Internet of Things household of proposition, and energy standardized instruction learning system, facilitates user's extended instruction function and reduces cost of development.
The present invention is that technical solution problem adopts following technical scheme:
The feature of a kind of instruction learning method based on Internet of Things of the present invention is, in environment of internet of things, there is PHP server, server client, local controller, No. ID corresponding hand-held control terminal having with described local controller and there is same hardware address and the sub-control module of No. D, different I;
Described instruction learning method is to carry out as follows:
The parameter-definition of step 1, learn command
Described learn command is NE@ID:idACT:actionCOMM:command; Id is the identity recognition number parameter of described sub-control module, and action is the required parameter that performs an action of described sub-control module, and command is the steering order parameter of the required execution of described sub-control module;
The parameter typing of step 2, learn command
The text box that can input identity recognition number ID is set on described hand-held control terminal for receiving the identity recognition number parameter id of described learn command, the text box that can input instruction action ACT for receiving text box that perform an action parameter action and of described learn command can input control order COMM for receiving the steering order parameter c ommand of described learn command;
The parameter transmission of step 3, learn command
Described hand-held control terminal is collected corresponding identity recognition number parameter id, the parameter that performs an action action and steering order parameter c ommand and in POST mode, is passed to described PHP server by web page interlinkage by each set text box;
The Parameter storage of step 4, learn command
Described PHP server receives described identity recognition number parameter id, the parameter that performs an action action and steering order parameter c ommand and obtains the current system time and writes in the lump in the htm file of described PHP server after as parameter time of reception point;
The renewal judgement of step 5, learn command
Described server end file opening scanning thread, in described file scanning thread, utilize while statement to carry out cycle analysis to described htm file, whether judgement there is renewal at described parameter time of reception point, carries out the Parameter analysis of electrochemical of learn command when described parameter time of reception point exists renewal;
The Parameter analysis of electrochemical of step 6, learn command
Described server client extracts the learn command in described htm file, and utilizes character string parsing method parse identity recognition number parameter id, the parameter that performs an action action and the steering order parameter c ommand in described learn command and deposit in database;
Step 7, described server client are transferred to described learn command in described local controller by Ethernet;
Step 8, described local controller deposit received learn command in flash storer in, and send to each sub-control module by self wireless data transmission module;
Whether the identity recognition number parameter id in the learn command that step 9, described each submodule judgement receive is with identical according to self No. ID, when identical, according to the corresponding table of described action parameter function, described steering order parameter c ommand and the corresponding function of action parameter action are bound to the binding relationship that obtains described steering order parameter c ommand function, and described binding relationship is deposited in described flash storer, thereby complete instruction study.
Compared with the prior art, beneficial effect of the present invention is embodied in:
1, the designated home electrical appliance that user can only use Internet of Things household developer to provide is provided, and when user adds new appliance, be difficult to be fused in the Internet of Things house system of current use and carry out this problem, build a set of instruction learning method, developer can antithetical phrase control module carry out secondary development, the normal component of the household electrical appliances expansion of oneself is set, when user adds new household electrical appliances, do not need house system provider to carry out complicated exploitation, only need simple wiring just can realize the expansion to household, thereby realize the simple fusion of the new household electrical appliances that the current Internet of Things house system of user adds user.
2, the present invention is without different household electrical appliances are repeatedly developed, only need to build the corresponding table of an action parameter function, the action that instruction and household electrical appliances need to be carried out is mapped, and in use afterwards, directly instruction database is called, and has greatly reduced construction cycle and cost of development.
Accompanying drawing explanation
Fig. 1 is applied environment schematic diagram of the present invention.
Embodiment
In the present embodiment, as shown in Figure 1, a kind of instruction learning method based on Internet of Things is in environment of internet of things, has PHP server, server client, local controller, No. ID corresponding hand-held control terminal having with local controller and has same hardware address and the sub-control module of No. D, different I; Hand-held control terminal is inputted the content of learn command for user, and the content delivery that user is inputted is to PHP server, PHP server is for realizing the forwarding of order, the ID using while importing learn command into according to user, server client can be by this ID by command to the local controller in user family.Local controller is connected and is realized and the data interaction of PHP server on INTERNET by ethernet port or WIFI, the built-in instruction identification software of local controller, and include the instruction of antithetical phrase control module, by the instruction that PHP server is sent, identified rear and sent control information by 2.4G wireless network for each sub-control module, each sub-control module also can realize the control to household electrical appliances according to the steering order receiving.As, the sub-control module of light can be controlled the switch of lighting of home equipment, and the sub-control module of power supply can be controlled the switch of household electrical appliances 1, household electrical appliances 2, household electrical appliances 3 etc.Concrete, be to carry out as follows instruction study:
The parameter-definition of step 1, learn command
Learn command is NE@ID:idACT:actionCOMM:command; Id is the identity recognition number parameter of sub-control module, and action is the required parameter that performs an action of sub-control module, and command is the steering order parameter of the required execution of sub-control module; The form of this instruction can be by developer's self-defining, but complete instruction should comprise the identity recognition number of sub-control module, the required parameter that performs an action of sub-control module, these substances of steering order parameter of the required execution of sub-control module.
The parameter typing of step 2, learn command
The text box that can input identity recognition number ID is set on hand-held control terminal for receiving the identity recognition number parameter id of learn command, the text box that can input instruction action ACT for receiving text box that perform an action parameter action and of learn command can input control order COMM for receiving the steering order parameter c ommand of learn command; The use interface of hand-held control terminal can be by developer's self-defining, and the text box quantity that suggestion arranges can be filled in the required full detail of learn command.In the present embodiment, under eclipse+Android ADT development environment, after a newly-built Android project, can be by revising the relevant code of topology file * .xml of described Android project, realization is to the design at interface and layout, or the DroidDraw visualized graph interface design tool that can provide by Google company, by visualized graph interface assembly is simply pulled and builds suitable visualized graph interface, then directly utilize DroidDraw to generate corresponding topology file code, paste again in the topology file of described Android project.
The parameter transmission of step 3, learn command
Hand-held control terminal is collected corresponding identity recognition number parameter id, the parameter that performs an action action and steering order parameter c ommand and in POST mode, is passed to PHP server by web page interlinkage by each set text box; This web page interlinkage, according to the determining positions of the domain name of user's server and php file that the parameter of the learn command of transmitting is processed, need to guarantee that php can accurately receive the learn command data that hand-held control terminal transmits.
The Parameter storage of step 4, learn command
PHP server receives identity recognition number parameter id, the parameter that performs an action action and steering order parameter c ommand and obtains the current system time and writes in the lump in the htm file of PHP server after as parameter time of reception point;
The renewal judgement of step 5, learn command
Server end file opening scanning thread utilizes while statement to carry out cycle analysis to htm file in file scanning thread, and whether judgement exists renewal at parameter time of reception point, carries out the Parameter analysis of electrochemical of learn command when parameter time of reception point exists renewal; Because the server platform that developer uses may be different, so the function implementation of different platform may be different.Such as in Windows NT system environments, can use Visual C++6.0 developing instrument, create the MFC project based on dialog box, next developer can be scanned thread at the position of needs file opening, and then realizes function below.
The Parameter analysis of electrochemical of step 6, learn command
Server client extracts the learn command in htm file, and utilizes character string parsing method parse identity recognition number parameter id, the parameter that performs an action action and the steering order parameter c ommand in learn command and deposit in database; Character string parsing method also has a variety of modes, the corresponding analysis mode of format design of the learn command that developer can set according to oneself.Such as, developer can find out the position of corresponding key word in learn command character string according to the form of the learn command of setting, and then can utilize character string to extract function the character string of specified scope is extracted.
Step 7, server client are transferred to learn command in local controller by Ethernet; For the single-chip microcomputer of different model, the mode of its accessing Internet exists varied, as passed through GPRS packet radio service technology, WLAN wireless local area network technology etc.; So local controller is not limited to Ethernet pattern with the long-range mode being connected of server, can determine according to developer's hobby and user environment.
Step 8, local controller deposit received learn command in flash storer in, and send to each sub-control module by self wireless data transmission module;
Whether the identity recognition number parameter id in the learn command that step 9, each submodule judgement receive is with identical according to self No. ID, when identical, according to the corresponding table of action parameter function, steering order parameter c ommand and the corresponding function of action parameter action are bound to the binding relationship that obtains steering order parameter c ommand function, and binding relationship is deposited in flash storer, thereby complete instruction study.
Embodiment
In order to verify actual operation and the feasibility of this learning method, start to build the environment that learning system needs, comprise one of fictitious host computer, one of millet 2S Android handheld terminal, MSP430G2553 is one of control core local controller, and MSP430G2553 is one of the sub-control module of control core.
Fictitious host computer need to be supported PHP language, for fictitious host computer binding domain name study_test.com.cn, under the web of fictitious host computer catalogue, be created as the essential file of learning system function and processed file study.php as learn command, learn command is upgraded storage file com_tem.htm.
Set the form NE@ID:idACT:actionCOMM:command of learn command
Use eclipse+Android ADT development environment exploitation instruction study application program Study.apk, first according to software application, explanation creates Android Application engineering, and engineering is named Study.Create after engineering, just can revise the main_activity.xml file under ../res/layout, according to the requirement design visualized graph interface in specification documents, after interface setting is good, need to revise the java code file under ../src/.. catalogue, realize the mutual function of man-machine interface.Concrete function is realized and being mainly after the data of having inputted learn command needs in each text box that user arranges at interface, as inputted sub-control module identity recognition number 0001 in sub-control module identity recognition number text input frame, input action OPEN THE LED in the required parameter text input frame that performs an action of sub-control module, input reduction instruction ELYL in the steering order parameter text input frame of the required execution of sub-control module.Click on submission button, this learning program can link by automatic access:
Utilize POST mode to realize the transmission of learn command parameter.
File opening scanning thread in fictitious host computer, continuous scan instruction storage file, the temporal information of storing in this instruction storage file exists while upgrading, and the corresponding service end of fictitious host computer will be encapsulated into director data in UDP message bag and send in local controller.
MSP430G2553 is that control core local controller mainly carries Ethernet to serial interface, and set ip address, and serial data receive interruption is set, after receiving director data, by the character string parsing method of introducing in specification documents, realize the parsing of director data is extracted, just by 2.4G wireless data transmission module, transfer out afterwards.
Next submodule is just carried out the function of study according to the process in specification documents.
In order to verify whether learning process carries out smoothly, controls function by instruction, after user's sending controling instruction, realize the control to household.

Claims (1)

1. the instruction learning method based on Internet of Things, it is characterized in that, in environment of internet of things, there is PHP server, server client, local controller, No. ID corresponding hand-held control terminal having with described local controller and there is same hardware address and the sub-control module of No. D, different I;
Described instruction learning method is to carry out as follows:
The parameter-definition of step 1, learn command
Described learn command is NE@ID:idACT:actionCOMM:command; Id is the identity recognition number parameter of described sub-control module, and action is the required parameter that performs an action of described sub-control module, and command is the steering order parameter of the required execution of described sub-control module;
The parameter typing of step 2, learn command
The text box that can input identity recognition number ID is set on described hand-held control terminal for receiving the identity recognition number parameter id of described learn command, the text box that can input instruction action ACT for receiving text box that perform an action parameter action and of described learn command can input control order COMM for receiving the steering order parameter c ommand of described learn command;
The parameter transmission of step 3, learn command
Described hand-held control terminal is collected corresponding identity recognition number parameter id, the parameter that performs an action action and steering order parameter c ommand and in POST mode, is passed to described PHP server by web page interlinkage by each set text box;
The Parameter storage of step 4, learn command
Described PHP server receives described identity recognition number parameter id, the parameter that performs an action action and steering order parameter c ommand and obtains the current system time and writes in the lump in the htm file of described PHP server after as parameter time of reception point;
The renewal judgement of step 5, learn command
Described server end file opening scanning thread, in described file scanning thread, utilize while statement to carry out cycle analysis to described htm file, whether judgement there is renewal at described parameter time of reception point, carries out the Parameter analysis of electrochemical of learn command when described parameter time of reception point exists renewal;
The Parameter analysis of electrochemical of step 6, learn command
Described server client extracts the learn command in described htm file, and utilizes character string parsing method parse identity recognition number parameter id, the parameter that performs an action action and the steering order parameter c ommand in described learn command and deposit in database;
Step 7, described server client are transferred to described learn command in described local controller by Ethernet;
Step 8, described local controller deposit received learn command in flash storer in, and send to each sub-control module by self wireless data transmission module;
Whether the identity recognition number parameter id in the learn command that step 9, described each submodule judgement receive is with identical according to self No. ID, when identical, according to the corresponding table of described action parameter function, described steering order parameter c ommand and the corresponding function of action parameter action are bound to the binding relationship that obtains described steering order parameter c ommand function, and described binding relationship is deposited in described flash storer, thereby complete instruction study.
CN201410310189.4A 2014-06-30 2014-06-30 A kind of instruction learning method based on Internet of Things Active CN104063227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410310189.4A CN104063227B (en) 2014-06-30 2014-06-30 A kind of instruction learning method based on Internet of Things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410310189.4A CN104063227B (en) 2014-06-30 2014-06-30 A kind of instruction learning method based on Internet of Things

Publications (2)

Publication Number Publication Date
CN104063227A true CN104063227A (en) 2014-09-24
CN104063227B CN104063227B (en) 2017-04-05

Family

ID=51550951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410310189.4A Active CN104063227B (en) 2014-06-30 2014-06-30 A kind of instruction learning method based on Internet of Things

Country Status (1)

Country Link
CN (1) CN104063227B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243736A (en) * 2015-10-30 2016-01-13 广东美的厨房电器制造有限公司 Household electrical appliance recycling device and household electrical appliance system
CN107251530A (en) * 2015-01-06 2017-10-13 阿费罗有限公司 system and method for realizing Internet of Things (IoT) remote control application
CN107957884A (en) * 2016-10-18 2018-04-24 赛孚耐国际有限公司 Method for electronically obtaining the designated command for electronic device
CN109213035A (en) * 2018-08-27 2019-01-15 珠海格力电器股份有限公司 Instruct update method, device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083017A (en) * 2006-05-29 2007-12-05 北京汉辰科技有限公司 Household intelligent network remote controller
CN102333185A (en) * 2011-08-03 2012-01-25 济南维优科技开发有限公司 Network camera capable of remotely controlling intelligent household appliances
CN102945029A (en) * 2012-10-31 2013-02-27 鸿富锦精密工业(深圳)有限公司 Intelligent gateway, smart home system and intelligent control method for home appliance equipment
CN103237058A (en) * 2013-04-02 2013-08-07 南京物联传感技术有限公司 Infrared-control learning method
US20140129006A1 (en) * 2012-11-06 2014-05-08 Hon Hai Precision Industry Co., Ltd. Smart gateway, smart home system and smart controlling method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083017A (en) * 2006-05-29 2007-12-05 北京汉辰科技有限公司 Household intelligent network remote controller
CN102333185A (en) * 2011-08-03 2012-01-25 济南维优科技开发有限公司 Network camera capable of remotely controlling intelligent household appliances
CN102945029A (en) * 2012-10-31 2013-02-27 鸿富锦精密工业(深圳)有限公司 Intelligent gateway, smart home system and intelligent control method for home appliance equipment
US20140129006A1 (en) * 2012-11-06 2014-05-08 Hon Hai Precision Industry Co., Ltd. Smart gateway, smart home system and smart controlling method thereof
CN103237058A (en) * 2013-04-02 2013-08-07 南京物联传感技术有限公司 Infrared-control learning method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107251530A (en) * 2015-01-06 2017-10-13 阿费罗有限公司 system and method for realizing Internet of Things (IoT) remote control application
CN107251530B (en) * 2015-01-06 2021-07-06 阿费罗有限公司 System and method for implementing internet of things (IoT) remote control applications
CN105243736A (en) * 2015-10-30 2016-01-13 广东美的厨房电器制造有限公司 Household electrical appliance recycling device and household electrical appliance system
CN105243736B (en) * 2015-10-30 2018-09-11 广东美的厨房电器制造有限公司 Household electrical appliances retracting device and appliance system
CN107957884A (en) * 2016-10-18 2018-04-24 赛孚耐国际有限公司 Method for electronically obtaining the designated command for electronic device
CN107957884B (en) * 2016-10-18 2021-11-26 赛孚耐国际有限公司 Method for electronically obtaining instruction commands for an electronic device
CN109213035A (en) * 2018-08-27 2019-01-15 珠海格力电器股份有限公司 Instruct update method, device and electronic equipment

Also Published As

Publication number Publication date
CN104063227B (en) 2017-04-05

Similar Documents

Publication Publication Date Title
CN106411667B (en) Intelligent home multi-cloud control method and system based on network chip
CN104270468B (en) A kind of system of wechat control internet of things equipment
CN108667807A (en) A kind of protocol self-adapting method and system based on monitoring cloud platform and gateway
CN102368214B (en) Automatic interface generation method and system
Kastner et al. Building Automation Systems Integration into the Internet of Things The IoT6 approach, its realization and validation
KR20180050721A (en) Method and apparatus for controlling smart devices and computer storage media
CN105204871B (en) A kind of plug-in type development approach and device
CN104618228A (en) Intelligent household gateway and system for automatically accessing cloud server by strategy based on intelligent household gateway and application method thereof
Riaz et al. Wireless android based home automation system
CN104063227A (en) Command learning method based on internet of things
CN103051694B (en) The method and mobile communication terminal of mobile communication terminal control device
Qasim et al. A model-driven mobile HMI framework (MMHF) for industrial control systems
CN108345449A (en) A kind of information processing method, device, storage medium and computer equipment
CN102957681A (en) Embedded browser, intelligent household appliance and intelligent system of internet of things
CN105681181A (en) Home gateway system suitable for smart home
CN104507100B (en) A method of Zigbee network is managed using wireless terminal
CN105487387A (en) Intelligent household control method and device
CN105867154A (en) Device and system for controlling home device network
CN101409731A (en) Remote control method for household electrical equipment through IE
KR20070038532A (en) Method, device and software module for a software-engineered reproduction of the behaviour of an actual domestic appliance in a model
Li et al. An IoT service framework for smart home: Case study on HEM
CN109753281A (en) A kind of microgrid energy management strategy visualization toolkit based on graphic programming
Apostolov UML and XML use in IEC 61850
CN104780148B (en) Server, terminal, the system and method for document on-line operation
CN103457957A (en) Network penetration test system with self-adaption function and network penetration test method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220712

Address after: 610096 No. 505, floor 5, building 6, No. 599, shijicheng South Road, Chengdu hi tech Zone, Chengdu pilot Free Trade Zone, Sichuan Province

Patentee after: Chengdu shihaixintu Microelectronics Co.,Ltd.

Address before: Tunxi road in Baohe District of Hefei city of Anhui Province, No. 193 230009

Patentee before: Hefei University of Technology

TR01 Transfer of patent right