CN105554073A - Method for realizing centralized management control of hardware equipment through combination of CS framework and BS framework - Google Patents

Method for realizing centralized management control of hardware equipment through combination of CS framework and BS framework Download PDF

Info

Publication number
CN105554073A
CN105554073A CN201510894560.0A CN201510894560A CN105554073A CN 105554073 A CN105554073 A CN 105554073A CN 201510894560 A CN201510894560 A CN 201510894560A CN 105554073 A CN105554073 A CN 105554073A
Authority
CN
China
Prior art keywords
engineering
webpage
framework
client
hardware
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.)
Pending
Application number
CN201510894560.0A
Other languages
Chinese (zh)
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.)
RETURNSTAR INTERACTIVE TECHNOLOGY GROUP Co Ltd
Original Assignee
RETURNSTAR INTERACTIVE TECHNOLOGY GROUP 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 RETURNSTAR INTERACTIVE TECHNOLOGY GROUP Co Ltd filed Critical RETURNSTAR INTERACTIVE TECHNOLOGY GROUP Co Ltd
Priority to CN201510894560.0A priority Critical patent/CN105554073A/en
Publication of CN105554073A publication Critical patent/CN105554073A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A method for realizing centralized management control of hardware equipment through a combination of a CS framework and a BS framework includes: establishing service engineering; defining functions to be provided by the service engineering and a data structure; realizing the functions defined by the service engineering; establishing client engineering; realizing functions of the client engineering; establishing webpage engineering; defining functions to be realized by the webpage engineering; realizing the functions defined by the webpage engineering; deploying the server, client and webpage engineering; and arbitrarily adopting a device capable of visiting a public network website to visit the webpage engineering, remotely view information of hardware equipment and remotely control the hardware equipment. By adoption of the method created by the invention, centralized management and remote control of the hardware equipment can be realized.

Description

A kind of being combined with B/S framework by CS is realized hardware device and manages the method controlled concentratedly
[technical field]
The present invention relates to hardware device unified management, remote control technical field, particularly relate to a kind of being combined with B/S framework by CS and realize hardware device and manage the method controlled concentratedly.
[background technology]
Various types of hardware product like the mushrooms after rain in recent years, emerges in an endless stream; Various hardware product has oneself control end, and great majority do not support Long-distance Control, bring a lot of inconvenience like this to user.Therefore can carry out hardware device unified management control in the urgent need to a kind of technology, and can remote control be carried out.
[summary of the invention]
Problem to be solved by this invention is to provide a kind of being combined with B/S framework by CS to realize hardware device and manage the method controlled concentratedly.
The present invention is achieved in that
To be combined with B/S framework by CS framework and realize hardware device and manage the method controlled concentratedly, comprise the steps:
Step 1: create service engineering;
Step 2: the function that definition service engineering will provide and data structure;
Step 3: the function realizing service engineering definition;
Step 4: create client engineering;
Step 5: realize client engineering function;
Step 6: create webpage engineering;
Step 7: the function that definition webpage engineering will realize;
Step 8: the function realizing webpage engineering definition;
Step 9: deployment services end, client, page end engineering;
Step 10: look for arbitrarily the device access webpage engineering of the present invention accessing public network website, carries out long-rangely checking the information of hardware device and carrying out Long-distance Control hardware device.
Described step 2, specifically comprises the steps:
Step 21: the function that provides of definition service engineering, comprising: receive the data sent from hardware client program, and data are saved, push control flow check to hardware client; Functional interface is provided to call for the webpage engineering end of step 6;
Step 22: definition data structure, traffic parameter; Whether it is a json array that regulation hardware client passes the organizational form of attribute data of coming, and the element of array is just like properties composition: unique attribute coding, attribute-name, property value, attribute description, the page shows, whether allow amendment property value; The definition of control flow check parameter has: order constant, the parameter of carrying.
Described step 7, specifically comprises the steps:
Step 71: the hardware information obtained according to step 2, step 3, step 5, defines the content that will show on Webpage;
Step 72: the hardware information obtained according to step 2, step 3, step 5, defines the function supporting Long-distance Control.
The invention has the advantages that: the method adopting the present invention's original creation, hardware device centralized management and Long-distance Control can be realized.
[accompanying drawing explanation]
The invention will be further described in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is that in the present invention, each Project Realization flow process, Data flow direction, control flow check flow to schematic diagram.
[embodiment]
The present invention is based on programming realization, as long as any programming language of object-oriented can as implementation tool of the present invention.Java programming language is adopted in the present embodiment.
For convenience of explanation, suppose that certain hardware device has: the available machine time, IP address, temperature three attributes, except IP address is not except Webpage display, other two attributes all will show on webpage; The control supported has: remote power-off, adjustment temperature level;
Refer to Fig. 1, a kind of being combined with B/S framework by CS is realized hardware device and manages the method controlled concentratedly, comprises the steps:
Step 1: create service engineering, be described in detail as follows:
Part A in Fig. 1 and part B adopt the design of CS, BS mixed architecture, and it is B/S framework design that part B and C part adopt:
(1) relation of A, part B: part A is present on each hardware loom, needs active push data to part B, and part B needs propelling movement control flow check to part A thus realizes controlling the hardware associated by part A simultaneously; Therefore it is two-way for flowing to: data flow is pushed to B by A, and control flow check is pushed to A by B;
(2) relation of B, C part: be all C part initiatively to part B request, part B is without the need to C part active push data flow or control flow check; Therefore its flow direction is unidirectional, is all by C active request B, and only needing B to hold provides corresponding functional interface;
In view of above (1), (2) point, initiatively sends data flow to B at A, and what now the present invention adopted is the mechanism initiatively pushed to service end (B) by client (A) based on http agreement get, post; B initiatively sends out control flow check to A, and what now the present invention adopted is set up ICP/IP protocol service at B end, and B is the service end in agreement, and A is client; B and C is by C active request, therefore also to take based on http agreement get, post by client (C) initiatively to service end (B) active request;
In sum, the B engineering of foundation is such engineering:
Have the function providing http interface requests, client active calling interface is toward B propelling data or fetch data;
Open ICP/IP protocol service, allow each client's side link come in, service end connects active push control flow check information to client by this;
Step 2: the function that definition service engineering will provide and data structure; Specifically comprise the steps:
Step 21: the function that definition service engineering provides, mainly contains:
Receive the data sent from hardware client program (A), and data are saved, database or file can be saved in here, or other storage medium;
Push control flow check to control accordingly hardware device to hardware client, such as shutdown, adjustment temperature etc.;
(3) functional interface is provided to call for webpage engineering end (C);
Functional interface definition is similar as follows:
The end of writing class definition part is shown in the definition of ResultClass, GetDeviceInfoDto, and step 22 is shown in other definition.
Wherein:
(1) receiving equipment status attribute data function interface be hardware device client active push data to service end (B), the http request address of its correspondence is:
http://***/deviceController/receiveDeviceInfo
(2) control appliance, acquisition equipment state, when being called by http for webpage engineering end (C), therefore producing out corresponding http request address is:
http://***/deviceController/controlDevice
http://***/deviceController/getDeviceInfo
Step 22: definition data structure:
In data flow: the attribute (physical address etc. at temperature, available machine time, place) having Hardware I P address, hardware itself; Whether it is a json array that regulation hardware client passes the organizational form of attribute data of coming, and the element of array is just like properties composition: unique attribute coding, attribute-name, property value, attribute description, the page shows, whether allow amendment property value; Whole platform has multiple equipment, and in order to distinguish each equipment, therefore need to preserve device coding, concrete kind is like following definition:
In the example shown, in a certain moment, hardware device has the data of table 1 (available machine time is timestamp):
Table 1:
So being defined corresponding json data by AttriListClass, AttriClass will be:
{ " attriClasses ": [{ " canUpdateValue ": false, " code ": " START_TIME ", " description ": " available machine time of equipment ", " name ": " available machine time ", " showInReport ": true, " value ": " 1448378888007 " }, { " canUpdateValue ": false, " code ": " IP_ADDRESS ", " description ": " the IP address of equipment ", " name ": " IP address ", " showInReport ": false, " value ": " 58.22.30.37 " }, { " canUpdateValue ": true, " code ": " TEMPERATURE ", " description ": " temperature of equipment ", " name ": " temperature ", " showInReport ": true, " value ": " 50 DEG C " }] }
In control flow check: the constant defining each control command, the parameter of carrying; And specify that it transmits with json data format; Be defined as follows:
Suppose the temperature of hardware device to be adjusted to 15 DEG C, so corresponding json data are:
{"commandType":1,"param1":"15"}
Step 3: the function realizing service engineering definition, is described in detail as follows:
According to the function that step 2 illustrates, carry out coding according to different programming language developing instruments and realize; Step 2 has to relate to carries out preservation reading to passing the data of coming from hardware device client, and preserve medium according to the difference chosen, just have different modes to go read-write, such as database has the read-write of database, file has file read-write; TCP/IP, http communication that step 1, step 2 are mentioned, on specific coding so herein realizes, with general TCP/IP, http development mode and indifference, unlike different in service logic, is go to realize according to the idea of the present invention's setting here; Therefore the present invention it is emphasised that the present invention propose C/S framework, the cooperation relation between three engineerings relating in B/S framework, the circulation of data flow, the circulation of control flow check, thus it is bright and clear to reach a clear in structure, extensibility is good, user is easy to use, can the object of long-range unified monitoring control hardware equipment.Different open languages mentions different developing instruments, and concrete realization, details has difference, but Integral Thought is all based on of the present invention, the details that realizes therefore for concrete developing instrument and language is not that the present invention emphasizes.
Step 4: create client engineering, be described in detail as follows:
Here the client engineering said, generally refer to and the engineering run under the same environment of hardware device, unrestricted on developing instrument and language, as long as the attribute data that can read hardware device from hardware device, the interface that can call hardware device and provide carry out corresponding Behavior-Based control to equipment, and follow rule of communication that the present invention specifies and communication data structure in realization and can realize developing instrument and development language as this step;
Step 5: realize client engineering function, specifically comprise the steps:
Step 51: client engineering is connected to service end by procotol, is described as follows:
Namely the client engineering mentioned in this step is the part A in figure, and it is the client of TCP/IP, and therefore it can be connected to service end (part B in Fig. 1), receives the control flow check that service end pushes;
Step 52: obtain corresponding attribute from hardware device, and by the data format organising data that step 2 specifies, and data are dealt into service end, be described as follows:
Namely the client engineering mentioned in this step is the part A in figure, be http call end; Collecting the attribute data of hardware device in this step, by calling the http functional interface that part B provides, data flow being pushed to service end part B;
Step 51, catch step 52 functional interface that part B provides in calling graph in realization, the most basic functional interface is exactly the functional interface that step 2 is mentioned.
Step 6: create webpage engineering, be described in detail as follows:
C part in step corresponding diagram, in this step, when creating webpage engineering, needs to define finally to see the page view layout of checking to user, can be different to some extent according to its page layout of different occasions;
Step 7: the function that definition webpage engineering will realize, specifically comprises the steps:
Step 71: the hardware information obtained according to step 2, step 3, step 5, defines the content that will show on Webpage, is described as follows:
Whether the attribute mentioned in preceding step " shows (showInReport) " on the page, is exactly can use herein; Because hardware client passes to the attribute information of service end (part B), not necessarily all to show (C part) in webpage engineering, therefore control display by " whether showing (showInReport) on the page " here and hide;
Step 72: the hardware information obtained according to step 2, step 3, step 5, defines the function supporting Long-distance Control,
Whether the attribute mentioned in preceding step " allows amendment property value (canUpdateValue) ", is exactly can use herein; Because hardware client passes to the attribute information of service end (part B), be not that hardware device property parameters used can support amendment, in webpage engineering, (C part) only provides the operating interactive that those attribute supports are revised, and therefore here by " whether allowing amendment property value (canUpdateValue) " is controlled whether to provide operating interactive;
Step 8: the function realizing webpage engineering definition, is described as follows:
In this step, function described by step 6, step 7 and step 1, step 2, realizes according to the Website development instrument selected and speech encoding; In specific implementation process, can call the functional interface that service end (part B) provides, the most basic functional interface is exactly the functional interface that step 2 is mentioned.
Step 9: deployment services end, client, page end engineering, be described as follows:
Service end, page end are generally deployed in remote server, in the place having network, as long as know that the IP address of server or domain name can be accessed;
Client, be generally exist as an application service, its function mainly obtains data from hardware device, is pushed to service end, obtains control information and controls hardware device, therefore generally operate in the same environment with hardware device from service end;
Step 10: look for arbitrarily the device access webpage engineering of the present invention accessing public network website, carry out long-rangely checking the information of hardware device and carrying out Long-distance Control hardware device, be described as follows:
Look for arbitrarily an equipment of energy browsing page, the web browser of PC computer, the web browser of mobile device is all passable, the reference address of the webpage engineering in input the present invention gets final product remote access, carry out long-range information of checking all hardware devices be registered in native system, and utilize the control operation interface provided to realize the object of Long-distance Control hardware device above.
Class definition
A:
B:
Adopt the method for the present invention's original creation, hardware device centralized management and Long-distance Control can be realized.
The foregoing is only better enforcement use-case of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (3)

1. to be combined with B/S framework by CS framework and realize hardware device and manage the method controlled concentratedly, it is characterized in that, comprise the steps:
Step 1: create service engineering;
Step 2: the function that definition service engineering will provide and data structure;
Step 3: the function realizing service engineering definition;
Step 4: create client engineering;
Step 5: realize client engineering function;
Step 6: create webpage engineering;
Step 7: the function that definition webpage engineering will realize;
Step 8: the function realizing webpage engineering definition;
Step 9: deployment services end, client, page end engineering;
Step 10: look for arbitrarily the device access webpage engineering of the present invention accessing public network website, carries out long-rangely checking the information of hardware device and carrying out Long-distance Control hardware device.
2. a kind of being combined with B/S framework by CS framework according to claim 1 is realized hardware device and manages the method controlled concentratedly, it is characterized in that:
Described step 2, specifically comprises the steps:
Step 21: the function that provides of definition service engineering, comprising: receive the data sent from hardware client program, and data are saved, push control flow check to hardware client; Functional interface is provided to call for the webpage engineering end of step 6;
Step 22: definition data structure, traffic parameter; Whether it is a json array that regulation hardware client passes the organizational form of attribute data of coming, and the element of array is just like properties composition: unique attribute coding, attribute-name, property value, attribute description, the page shows, whether allow amendment property value; The definition of control flow check parameter has: order constant, the parameter of carrying.
3. a kind of being combined with B/S framework by CS framework according to claim 1 is realized hardware device and manages the method controlled concentratedly, it is characterized in that:
Described step 7, specifically comprises the steps:
Step 71: the hardware information obtained according to step 2, step 3, step 5, defines the content that will show on Webpage;
Step 72: the hardware information obtained according to step 2, step 3, step 5, defines the function supporting Long-distance Control.
CN201510894560.0A 2015-12-08 2015-12-08 Method for realizing centralized management control of hardware equipment through combination of CS framework and BS framework Pending CN105554073A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510894560.0A CN105554073A (en) 2015-12-08 2015-12-08 Method for realizing centralized management control of hardware equipment through combination of CS framework and BS framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510894560.0A CN105554073A (en) 2015-12-08 2015-12-08 Method for realizing centralized management control of hardware equipment through combination of CS framework and BS framework

Publications (1)

Publication Number Publication Date
CN105554073A true CN105554073A (en) 2016-05-04

Family

ID=55833005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510894560.0A Pending CN105554073A (en) 2015-12-08 2015-12-08 Method for realizing centralized management control of hardware equipment through combination of CS framework and BS framework

Country Status (1)

Country Link
CN (1) CN105554073A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413181A (en) * 2018-10-28 2019-03-01 广州中元软件有限公司 A kind of double architecture mode methods for realizing application program
CN109976987A (en) * 2019-03-01 2019-07-05 山东鲁能软件技术有限公司 Based on the BS blog management method combined with CS and system
CN111831943A (en) * 2020-07-07 2020-10-27 广州市挖米科技有限责任公司 Interface fusion method and device based on CS and BS (browser/server) framework

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020152289A1 (en) * 1997-09-10 2002-10-17 Schneider Automation Inc. System and method for accessing devices in a factory automation network
CN101789964A (en) * 2010-01-19 2010-07-28 山东高效能服务器和存储研究院 Remote control and data monitoring method on embedded device
CN102480510A (en) * 2010-11-30 2012-05-30 汉王科技股份有限公司 Realization method of C/S and B/S mixed architecture and apparatus thereof
CN102664952A (en) * 2012-04-25 2012-09-12 北京航空航天大学 Method for managing and monitoring embedded equipment cluster

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020152289A1 (en) * 1997-09-10 2002-10-17 Schneider Automation Inc. System and method for accessing devices in a factory automation network
CN101789964A (en) * 2010-01-19 2010-07-28 山东高效能服务器和存储研究院 Remote control and data monitoring method on embedded device
CN102480510A (en) * 2010-11-30 2012-05-30 汉王科技股份有限公司 Realization method of C/S and B/S mixed architecture and apparatus thereof
CN102664952A (en) * 2012-04-25 2012-09-12 北京航空航天大学 Method for managing and monitoring embedded equipment cluster

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109413181A (en) * 2018-10-28 2019-03-01 广州中元软件有限公司 A kind of double architecture mode methods for realizing application program
CN109976987A (en) * 2019-03-01 2019-07-05 山东鲁能软件技术有限公司 Based on the BS blog management method combined with CS and system
CN111831943A (en) * 2020-07-07 2020-10-27 广州市挖米科技有限责任公司 Interface fusion method and device based on CS and BS (browser/server) framework
CN111831943B (en) * 2020-07-07 2024-04-26 广州市挖米科技有限责任公司 Interface fusion method and device based on CS and BS architecture

Similar Documents

Publication Publication Date Title
KR102389004B1 (en) Service layer resource management for generic interworking and extensibility
US20110113090A1 (en) Dynamic mobile client
US20230308504A9 (en) Method and system of application development for multiple device client platforms
CN103946833A (en) System and method for managing dedicated caches
Espada et al. Extensible architecture for context-aware mobile web applications
US11497179B2 (en) Long-range remote solenoid-valve actuator
CN108023918A (en) A kind of information on services acquisition methods, apparatus and system
CN111177613A (en) Page processing method, device, equipment and storage medium
CN106412078B (en) Accurate information method for pushing, device and system
CN105554073A (en) Method for realizing centralized management control of hardware equipment through combination of CS framework and BS framework
CN102638573A (en) Service information sending method, service information customizing platform device and service information customizing system
CN102957681A (en) Embedded browser, intelligent household appliance and intelligent system of internet of things
CN102664952B (en) Method for managing and monitoring embedded equipment cluster
CN111711695B (en) Distributed equipment management system based on cloud platform
CN103677842A (en) Software tool configuration type integrated expansion calling method and system
Jin et al. IoT device management architecture based on proxy
Di Modica et al. SNPS: an OSGi-based middleware for Wireless Sensor Networks
CN102804177A (en) Method, apparatus and computer program product for providing an adaptive context model framework
KR20090044713A (en) Running appratus of context aware framework for resource sharging based context information and method thereof
Czauski et al. NERD—middleware for IoT human machine interfaces
Rawat et al. IoT-Based Home Automation System Using ESP8266
KR101966548B1 (en) Sensor meta data generating system for multi heterogeneous sensor network platform
JP2015211342A (en) Device management server and movement method thereof
KR102016810B1 (en) ACTUATOR COMPOSITION SYSTEM FOR GENERATING MULTI IoT PLATFORM FOR CONTROLLING THING
CN109032733A (en) Terminal equipment managing method, system and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 350108 6, No. 1 Innovation Park, No. 3 east science and technology road, Minhou street, Minhou, Fuzhou.

Applicant after: Returnstar Interactive Technology Group Co., Ltd.

Address before: 350000 8 tower building, Orange Garden Industrial Park, 618 Jinshan Road, Jianxin Town, Cangshan District, Fuzhou, Fujian.

Applicant before: Returnstar Interactive Technology Group Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160504