CN104468617A - Device control method and system - Google Patents

Device control method and system Download PDF

Info

Publication number
CN104468617A
CN104468617A CN201410822198.1A CN201410822198A CN104468617A CN 104468617 A CN104468617 A CN 104468617A CN 201410822198 A CN201410822198 A CN 201410822198A CN 104468617 A CN104468617 A CN 104468617A
Authority
CN
China
Prior art keywords
client
target device
service
gateway
module
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
CN201410822198.1A
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.)
Shenzhen Kemanda Intelligent Management Science & Technology Co Ltd
Original Assignee
Shenzhen Kemanda Intelligent Management Science & 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 Shenzhen Kemanda Intelligent Management Science & Technology Co Ltd filed Critical Shenzhen Kemanda Intelligent Management Science & Technology Co Ltd
Priority to CN201410822198.1A priority Critical patent/CN104468617A/en
Publication of CN104468617A publication Critical patent/CN104468617A/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]
    • 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
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • 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/133Protocols for remote procedure calls [RPC]

Abstract

The invention discloses a device control method and system. The device control method and system are applied to parking lot devices. According to the device control method and system, parking lot devices and devices and client sides are interacted through a gateway, data exchange and mutual control can be achieved on the parking lot devices connected to the same gateway by utilizing the gateway, and the different client sides in the network can obtain parking lot data and carry out device control. An authentication mechanism is provided to limit the service permissions which can be obtained by different users.

Description

A kind of apparatus control method and system
Technical field
The present invention relates to equipment control field, particularly relate to a kind of apparatus control method and system.
Background technology
The master control borad in existing parking lot simply controls and data retransmission the equipment connected, and the data interchange format that master control borad and client computer or server use is all self-defining by developer, the same class parking lot equipment of different company and host computer or server can not exchange use, the same class product of same company's different model and its host computer or server use even all cannot carry out exchange when carrying out data interaction, could use after must entering uniform data exchange format, recompile, it is very low that equipment controls versatility.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of apparatus control method and system, and what can realize between different clients from different parking lots equipment is mutual.
For achieving the above object, the invention provides a kind of apparatus control method, be applied to parking lot equipment, described method comprises:
The target device that gateway port connects is determined in scanning;
Activate the service of described target device;
Monitor the state variation of client-side service request and described target device;
When judging whether described client has the authority using described gateway according to the user ID in described service request after the service request listening to client transmission, if had, judge whether described client has the authority of the service using described target device according to described user ID, if had, call the service of described target device according to described service request;
Destination service message is determined according to the change of state when the state of described target device changes, screening connects in all clients of described gateway the destination client using described target device Service Privileges, and described destination service message is sent to described destination client.
Preferably, also comprise after the target device that gateway port connects is determined in scanning:
Obtain described target device facility information and in input database.
Preferably, also comprise after monitoring the state variation of client-side service request and described target device:
From database, the facility information of described target device is deleted after described target device lost efficacy.
Preferably, described apparatus control method also comprises:
The user profile that whether there is described client in described database is judged when described client has and uses the authority of described gateway, if existed, the user profile of the described client in database is upgraded, if there is no then by database described in the user profile typing of described client.
Present invention also offers a kind of apparatus control system, comprising:
Scan module, for scanning the target device determining gateway port connects;
Active module, for activating the service of described target device;
Monitor module, for monitoring the state variation of client-side service request and described target device;
First judge module, for when listen to client send service request after judge whether described client has the authority using described gateway according to the user ID in described service request;
According to described user ID, second judge module, judges whether described client has the authority of the service using described target device when using the authority of described gateway for having when described client;
Service calling module, calls the service of described target device according to described service request when using the authority of the service of described target device for having when described client;
Message determination module, determines destination service message for the change when the state of described target device changes according to state;
Screening module, for screen connect described gateway all clients in have the destination client using described target device Service Privileges;
Message transmission module, for being sent to described destination client by described destination service message.
Preferably, described apparatus control system also comprises:
First typing module, for obtain described target device facility information and in input database.
Preferably, described apparatus control system also comprises:
Removing module, for deleting the facility information of described target device after described target device lost efficacy from database.
Preferably, described apparatus control system also comprises:
3rd judge module, judges the user profile that whether there is described client in described database during for having use the authority of described gateway when described client;
Subscriber information module, for upgrading the user profile of the described client in database when there is the user profile of described client point in described database, when there is not the user profile of described client point in described database by database described in the user profile typing of described client.
Apply a kind of apparatus control method provided by the invention and system, undertaken alternately by gateway between the equipment of parking lot and between equipment and client, use this gateway that the parking lot equipment being connected to same gateway can be made to carry out exchanges data and mutually control, the different clients be in network can also be made to obtain parking lot data and carry out equipment control, and there is authentication mechanism, the Service Privileges that different user can obtain can be limited.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
Fig. 1 is the flow chart of a kind of apparatus control method of the present invention;
Fig. 2 is the key diagram of a kind of apparatus control method specific embodiment of the present invention;
Fig. 3 is the specific embodiment flow chart of a kind of apparatus control method of the present invention;
Fig. 4 is the another specific embodiment flow chart of a kind of apparatus control method of the present invention;
Fig. 5 is the structural representation of a kind of apparatus control system of the present invention;
Fig. 6 is the integrated stand composition of a kind of apparatus control system specific embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The invention provides a kind of apparatus control method, be applied to parking lot equipment, as shown in Figure 1, be the flow chart of present device control method, comprise:
Step S101: the target device that gateway port connects is determined in scanning;
Gateway can carry out the company's of acquisition all devices in the above by each port of active monitoring upon actuation, and the information such as the relevant information of equipment such as ID, name, COS are recorded in local embedded database; When having on new equipment connection to gateway, gateway can add the relevant information of this equipment in a database; After when equipment and gateway depart from, gateway can delete the information of this equipment from database.
Step S102: the service activating described target device;
Gateway can start the relevant all services of had hardware, and the quantity of service is dynamic change, can start new service, close corresponding service along with the disengaging of hardware device along with the interpolation of hardware device.
The data interchange format that underlying device and gateway carry out can adopt XML form, it is the XML data that can be verified by specific extend markup language framework Schema, Schema document defines described XML data, label, attribute and content that the data that this Schema document defines this XML format must and can comprise.
Resolver can parse the data content of device-dependent message and transmission according to described Schema definition, give gateway processes; Resolver can also send to the data of equipment according to described Schema definition encapsulation gateway.
The device definition that gateway may connect for it at least one service, often kind of service information (parameter) used is all in described schema within the range of definition.Such as, banister in parking lot can have three kinds of state open and close, stop, necessarily have this information of state in the service of the control banister defined so in a gateway, its span is open and close, stops three states, and this status data form and scope all define in described schema.
Step S103: the state variation monitoring client-side service request and described target device;
Service in gateway is divided into active and passive type.Active service is that gateway initiatively sends data to the consumption end of service, and passive type service is that consumption end initiatively sends service request to gateway.Specific works mode is as follows: described passive type service, and client is to certain service of gateway requests, and gateway parses its request content, to corresponding operate, obtains data or control appliance.Such as sent the request of opening banister to gateway by pc client, this request is passive type service.Described active service, gateway initiatively sends message to the client being connected to it.Such as sensed that automobile arrives, gateway can initiatively issue this message the client connecting it.
Step S104: when judging whether described client has the authority using described gateway, if had, enters step S105 according to the user ID in described service request after the service request listening to client transmission;
Step S105: judge whether described client has the authority of the service using described target device, if had, enters step S106 according to described user ID;
Step S106: the service of calling described target device according to described service request;
Step S107: determine destination service message according to the change of state when the state of described target device changes, screening connects in all clients of described gateway the destination client using described target device Service Privileges, and described destination service message is sent to described destination client.
Apply a kind of apparatus control method provided by the invention, undertaken alternately by gateway between the equipment of parking lot and between equipment and client, use this gateway that the parking lot equipment being connected to same gateway can be made to carry out exchanges data and mutually control, the different clients be in network can also be made to obtain parking lot data and carry out equipment control, and there is authentication mechanism, the Service Privileges that different user can obtain can be limited.
In above-described embodiment, calling of gateway device is divided into inside and outside two kinds of modes, and calling between the parking lot equipment of connection gateway is that the internal affairs logic processor by gateway has come; External client (PC that network interconnects, server, handheld device etc.) is that the service provided by calling gateway completes calling of parking lot equipment.
The data format of gateway and client is all the standard data interchange format according to Web service---the data format of Simple Object Access Protocol soap form carries out alternately.
Web service technology, can make to operate in different application on different machines need not by additional, special third party software or hardware, just can swap data or integrated mutually.Between application according to Web Service enforcement of regulations, what language, platform or internal agreement that no matter they use be, can swap data mutually.Web Service is self-described, self-contained available network module, can perform concrete business function.Interface adopts neutral mode to carry out defining, and it should independent of hardware platform, operating system and the programming language realizing serving.This makes the service be structured in various such system can be undertaken alternately by a kind of unification and general mode.This feature with neutral interface definition is called the loose coupling between service.The advantage of loosely coupled system mainly contains 2 points, is a bit that it has very high flexibility, and on the other hand when the internal structure of each service forming whole application program little by little changes with realization, it can exist.Make IT application of service system become more flexible to the requirement source of Web service in needs, to adapt to the change in business, have important reference to the Internet of Things application and business development being devoted to realize depth information.Carry out convenience cross-platform, carry out data interaction across development language because Web service employs general soap data format, and its service describing mode is the wsdl language by standard, its professional platform independence is very good.
Gateway can record to cross to serve and test to its requested service request weighs the client ends relative passed through, comprises its IP and port numbers etc.
Authentication mechanism in above-described embodiment is authorized based on ID, and often kind of equipment comprises gateway and all has and have the unique ID of the overall situation;
Each legal client can distribute the authority of its a encryption, should load when client terminal start-up.Containing the information such as ID check code, COS of its operable appointment gateway and equipment in authority, as shown in Figure 2, is three kinds of permission mode that client has.
Client, when serving to gateway requests, can carry its authority information in request message, gateway after the request receiving this client can the service of automatic inspection request whether in the extent of competence of this client; If, then return request service; Otherwise, denial of service.
Test in power at active service, gateway first travels through its recorded client having these service rights of using, and the service message of soap form is sent to these clients.
As shown in Figure 3, be the workflow diagram of present device control method one specific embodiment gateway core business, Fig. 4 is the flow chart that on gateway, equipment increase is deleted.
Present invention also offers a kind of apparatus control system, as shown in Figure 5, be the structural representation of present device control system, comprise:
Scan module 101, for scanning the target device determining gateway port connects;
Active module 102, for activating the service of described target device;
Monitor module 103, for monitoring the state variation of client-side service request and described target device;
First judge module 104, for when listen to client send service request after judge whether described client has the authority using described gateway according to the user ID in described service request;
According to described user ID, second judge module 105, judges whether described client has the authority of the service using described target device when using the authority of described gateway for having when described client;
Service calling module 106, calls the service of described target device according to described service request when using the authority of the service of described target device for having when described client;
Message determination module 107, determines destination service message for the change when the state of described target device changes according to state;
Screening module 108, for screen connect described gateway all clients in have the destination client using described target device Service Privileges;
Message transmission module 109, for being sent to described destination client by described destination service message.
Apply a kind of apparatus control system provided by the invention, undertaken alternately by gateway between the equipment of parking lot and between equipment and client, use this gateway that the parking lot equipment being connected to same gateway can be made to carry out exchanges data and mutually control, the different clients be in network can also be made to obtain parking lot data and carry out equipment control, and there is authentication mechanism, the Service Privileges that different user can obtain can be limited.
As shown in Figure 6, be the integrated stand composition of present device control system embodiment, specifically comprise:
Embedded device device, uses the processor of ARM series popular at present.
Embedded OS, uses the Embedded Linux System after cutting.
Plurality of devices interface, comprise USB port, serial ports, parallel port, RJ45 network interface, general I/O interface, banister, card reader, paper ticket machine, camera can be connected, go out/gulp down card machine, LED display, voice announcer, feel, the parking lot related hardware facility such as infrared radiation detection apparatus.
Interface driver and device drives, total interface and the driving that can be connected to parking lot equipment all possess.
Wifi module and network interface, be used for being connected to network.
Apparatus control method of the present invention and system are based on soap data format, realized by gateway, this gateway has multiple interfaces, comprise USB port, banister, card reader, paper ticket machine, camera that 485 serial ports, parallel port, I/O port can be used for connecting parking lot, go out/gulp down card machine, LED display, voice announcer, feel, the parking lot related hardware facility such as infrared radiation detection apparatus, this gateway is connected in Ethernet by RJ45 network interface or Wifi.The parking lot equipment using this gateway to be not only connected to same gateway can use self-defining data format carry out exchanges data and mutually control, but also can the parking lot equipment being connected to gateway be published in Ethernet in the mode of Web service, service adopts soap RPC mechanism, the system being in the different development language of the different hardware device different operating system in network can call this service, to obtain parking lot data and to carry out equipment control, gateway can also limit the Service Privileges of different user by the mode of device id mandate.
Finally, also it should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Be described in detail method and system provided by the present invention above, apply specific case herein and set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (8)

1. an apparatus control method, is characterized in that, is applied to parking lot equipment, and described method comprises:
The target device that gateway port connects is determined in scanning;
Activate the service of described target device;
Monitor the state variation of client-side service request and described target device;
When judging whether described client has the authority using described gateway according to the user ID in described service request after the service request listening to client transmission, if had, judge whether described client has the authority of the service using described target device according to described user ID, if had, call the service of described target device according to described service request;
Destination service message is determined according to the change of state when the state of described target device changes, screening connects in all clients of described gateway the destination client using described target device Service Privileges, and described destination service message is sent to described destination client.
2. apparatus control method according to claim 1, is characterized in that, also comprises after the target device that gateway port connects is determined in scanning:
Obtain described target device facility information and in input database.
3. apparatus control method according to claim 2, is characterized in that, also comprises after monitoring the state variation of client-side service request and described target device:
From database, the facility information of described target device is deleted after described target device lost efficacy.
4. according to the apparatus control method shown in claim 3, it is characterized in that, also comprise:
The user profile that whether there is described client in described database is judged when described client has and uses the authority of described gateway, if existed, the user profile of the described client in database is upgraded, if there is no then by database described in the user profile typing of described client.
5. an apparatus control system, is characterized in that, comprising:
Scan module, for scanning the target device determining gateway port connects;
Active module, for activating the service of described target device;
Monitor module, for monitoring the state variation of client-side service request and described target device;
First judge module, for when listen to client send service request after judge whether described client has the authority using described gateway according to the user ID in described service request;
According to described user ID, second judge module, judges whether described client has the authority of the service using described target device when using the authority of described gateway for having when described client;
Service calling module, calls the service of described target device according to described service request when using the authority of the service of described target device for having when described client;
Message determination module, determines destination service message for the change when the state of described target device changes according to state;
Screening module, for screen connect described gateway all clients in have the destination client using described target device Service Privileges;
Message transmission module, for being sent to described destination client by described destination service message.
6. apparatus control system according to claim 5, is characterized in that, also comprises:
First typing module, for obtain described target device facility information and in input database.
7. apparatus control system according to claim 6, is characterized in that, also comprises:
Removing module, for deleting the facility information of described target device after described target device lost efficacy from database.
8. apparatus control system according to claim 7, is characterized in that, also comprises:
3rd judge module, judges the user profile that whether there is described client in described database during for having use the authority of described gateway when described client;
Subscriber information module, for upgrading the user profile of the described client in database when there is the user profile of described client point in described database, when there is not the user profile of described client point in described database by database described in the user profile typing of described client.
CN201410822198.1A 2014-12-25 2014-12-25 Device control method and system Pending CN104468617A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410822198.1A CN104468617A (en) 2014-12-25 2014-12-25 Device control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410822198.1A CN104468617A (en) 2014-12-25 2014-12-25 Device control method and system

Publications (1)

Publication Number Publication Date
CN104468617A true CN104468617A (en) 2015-03-25

Family

ID=52913989

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410822198.1A Pending CN104468617A (en) 2014-12-25 2014-12-25 Device control method and system

Country Status (1)

Country Link
CN (1) CN104468617A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002061604A1 (en) * 2001-01-31 2002-08-08 Telcordia Technologies, Inc. System and method for out-sourcing the functionality of session initiation protocol (sip) user agents to proxies
CN1481120A (en) * 2002-09-30 2004-03-10 联想(北京)有限公司 Remote control of networked information household electrical appliances and safety authentication device as well as method
CN102394788A (en) * 2011-09-08 2012-03-28 薛亮 Method for equipment monitoring universal interface
CN103731309A (en) * 2013-12-31 2014-04-16 深圳市科漫达智能管理科技有限公司 Equipment management method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002061604A1 (en) * 2001-01-31 2002-08-08 Telcordia Technologies, Inc. System and method for out-sourcing the functionality of session initiation protocol (sip) user agents to proxies
CN1481120A (en) * 2002-09-30 2004-03-10 联想(北京)有限公司 Remote control of networked information household electrical appliances and safety authentication device as well as method
CN102394788A (en) * 2011-09-08 2012-03-28 薛亮 Method for equipment monitoring universal interface
CN103731309A (en) * 2013-12-31 2014-04-16 深圳市科漫达智能管理科技有限公司 Equipment management method and device

Similar Documents

Publication Publication Date Title
US10122798B2 (en) System and process for managing network communications
US10715553B2 (en) Inter-domain replication of service information
US9270782B2 (en) System and method for managing network communications between server plug-ins and clients
CN112311783B (en) Method and system for authenticating reverse proxy
CN104639603A (en) RESTful (representational state transfer) service design method based on Spring MVC
CN111614731B (en) Method and system for accessing block chain to Internet of things equipment, aggregation gateway and storage medium
CN102375894B (en) Method for managing different types of file systems
Zhou et al. Dependency-aware service oriented architecture and service composition
CN101299186A (en) Method and device for calling portlet service
TWI396093B (en) Providing functionality to client services by implementing and binding contracts
CN101283540A (en) Method and device for sharing rights object in digital rights management and system thereof
CN105245553A (en) SOA system and business processing method
CN104468617A (en) Device control method and system
KR100864076B1 (en) Method for discovering a facility service using by mobile device, and facility service operating system
CN104408810B (en) The distributing method of general access card and system
WO2015149530A1 (en) M2m application service method, device and system
JP5550731B2 (en) A device that mediates between network operators and developers
CN105141674B (en) A kind of ability cut-in method and system
KR102374647B1 (en) Home system establishing method
CN115297066B (en) Resource dynamic cooperation method, device, server and medium
KR100629018B1 (en) The legacy interface system and operating method for enterprise wireless application service
CN108900636B (en) Transaction data processing method and platform
KR20100115106A (en) System and method for supplying messenger service
KR101761576B1 (en) Method for managing address list using abstraction technology
Álvarez-Domínguez et al. Near Field Communication with Amazon Web Services

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150325