CN110401659A - A kind of device access method of operation system, equipment access mechanism and system - Google Patents
A kind of device access method of operation system, equipment access mechanism and system Download PDFInfo
- Publication number
- CN110401659A CN110401659A CN201910677969.5A CN201910677969A CN110401659A CN 110401659 A CN110401659 A CN 110401659A CN 201910677969 A CN201910677969 A CN 201910677969A CN 110401659 A CN110401659 A CN 110401659A
- Authority
- CN
- China
- Prior art keywords
- service
- equipment
- sub
- message forwarding
- accessed
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000003032 molecular docking Methods 0.000 claims description 90
- 230000004044 response Effects 0.000 claims description 5
- 238000011161 development Methods 0.000 abstract description 7
- 230000008878 coupling Effects 0.000 abstract description 6
- 238000010168 coupling process Methods 0.000 abstract description 6
- 238000005859 coupling reaction Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 9
- 230000006872 improvement Effects 0.000 description 6
- 210000001503 joint Anatomy 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0876—Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Computer And Data Communications (AREA)
- Exchange Systems With Centralized Control (AREA)
Abstract
The invention discloses a kind of device access method of operation system, message forwarding services forward access request to corresponding equipment interconnection sub-services when responding the access request that operation system issues, according to the destination address in access request;Equipment interconnection sub-services judge in corresponding current equipment to be visited whether available free equipment;When available free equipment in equipment to be visited, equipment interconnection sub-services call the interface of free device, to operate the free device;Equipment interconnection sub-services receive free device returned data, and by access request source address and returned data be sent to message forwarding services;Returned data is sent to corresponding operation system according to source address by message forwarding services.The present invention also provides a kind of equipment access mechanism and systems.Using the embodiment of the present invention, the calling of equipment interface can be separated, realize multiplexing functions and reduce the overlapping development of equipment interface, reduce the coupling of equipment interconnection and service logic.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a device access method, a device access apparatus, and a system for a service system.
Background
With the development of the internet of things technology and the sensor technology, the data volume of the intelligent device is more and more. The intelligent device can perform data interaction with the service cloud platform through the internet technology, and an internet of things system with different service applications is formed. In order to access and operate hardware devices, codes need to be written according to different device types and different manufacturers respectively. In the existing implementation scheme, different programming languages, different projects and even different subsystems of the same project are in an independent butt joint mode. Taking different subsystems of the same project as an example, the architecture of the interfacing hardware is shown in fig. 1. The top part is shown from top to bottom, and the upper part is an interface (such as a browser, a C # client, a C + + application, etc.) seen and operated by a user, and the devices of the lower part are operated through the device interface.
However, in the device access mode in the prior art, each subsystem is independently docked, developers of the subsystems are required to know the docking protocol of the device to be docked, and overlapping of work is easy to occur; equipment of the same type of different manufacturers needs to be butted again, so that the complexity of the subsystem is increased; the different subsystems each operate hardware, contention issues arise without coordination with each other, one system/subsystem fails to access while the other is using the hardware, and if it is not found that the other system/subsystem is in use, the reason for the access failure is often difficult to troubleshoot.
Disclosure of Invention
Embodiments of the present invention provide a device access method, a device access apparatus, and a system for a service system, which separate the invocation of device interfaces, implement function multiplexing and reduce repeated development of device interfaces, and at the same time, simplify the docking of devices, reduce the coupling between device docking and service logic, and improve stability.
In order to achieve the above object, an embodiment of the present invention provides an apparatus access method for a service system, where the method includes:
when the message forwarding service responds to the access request sent by the service system, the message forwarding service forwards the access request to a corresponding device docking sub-service according to a destination address in the access request;
the equipment judges whether idle equipment exists in the current equipment to be accessed corresponding to the equipment docking sub-service;
when the equipment to be accessed has idle equipment, the equipment calls an interface of the idle equipment to sub-service so as to operate the idle equipment;
the equipment receives return data of the idle equipment to a sub service, and sends a source address in the access request and the return data to the message forwarding service;
and the message forwarding service sends the return data to the corresponding service system according to the source address.
Compared with the prior art, the equipment access method of the business system disclosed by the invention separates the calling of the interface of the equipment to be accessed, and the equipment is in butt joint with the sub-service, thereby realizing function multiplexing and reducing the repeated development of the equipment interface; the equipment of the same equipment to be accessed is connected with the sub-service, and the equipment can be transparently connected to different manufacturers or different types of equipment of the same manufacturer, belonging to the same type, of a service system; the equipment corresponding to the same equipment to be accessed is connected with the sub-service, and a uniform interface independent of manufacturers and equipment models can be provided for calling the service system; the message forwarding service is added, the service system only needs to establish connection with the message forwarding service, and does not need to establish connection with each equipment docking service, so that the docking of the equipment can be simplified, the coupling of the equipment docking and the service logic is reduced, and the stability is improved.
As an improvement of the above, the method further comprises:
a daemon service monitors the message forwarding service and each of the device docking sub-services;
when the message forwarding service and/or the device loses response to a sub-service, the daemon service restarts the message forwarding service and/or the device to sub-service;
and the daemon service controls the equipment to operate the sub-service according to the stop-start requirement.
As an improvement of the above solution, before responding to the access request sent by the service system, the method further includes:
the device registers a service ID with the message forwarding service for a sub-service; wherein the service ID is used as a destination address of the equipment to the sub-service;
the message forwarding service assigns a system ID to the business system; wherein the system ID is used as a source address of the service system.
As an improvement of the above solution, before responding to the access request sent by the service system, the method further includes:
the service system sends an interface request to the message forwarding service;
the message forwarding service sends the interface request to the device docking sub-service;
the equipment docking sub-service inquires the connection condition of the equipment to be accessed corresponding to the equipment docking sub-service according to the interface request and sends the connection condition of the equipment to be accessed to the message forwarding service;
and the message forwarding service sends the connection condition of the equipment to be accessed to the service system.
As an improvement of the above solution, after forwarding the access request to the corresponding device docking sub-service according to the destination address in the access request, before the device docking sub-service determines whether there is an idle device in the current device to be accessed corresponding to the device docking sub-service, the method further includes:
the equipment docking sub-service judges whether the equipment to be accessed corresponding to the equipment is in a connection state;
if yes, the equipment judges whether idle equipment exists in the corresponding current equipment to be accessed by the equipment to the sub-service; if not, returning a feedback message which is available for the equipment to the message forwarding service, so that the message forwarding service sends the feedback message to the service system.
As a refinement of the above solution, the access request includes operation data; then, the operating the idle device specifically includes:
and operating the idle equipment according to the operation data.
As an improvement of the above scheme, the method for the device to determine whether there is an idle device in the current device to be accessed corresponding to the device to the sub service includes:
the equipment calls the interface of the current equipment to be accessed corresponding to the sub-service, and judges whether the equipment to be accessed has idle equipment or not according to the interface use condition of the equipment to be accessed.
As an improvement of the above scheme, the method for the device to determine whether there is an idle device in the current device to be accessed corresponding to the device to the sub service includes:
the equipment inquires an interface provided by the current equipment to be accessed corresponding to the sub-service access, and judges whether the equipment to be accessed has idle equipment or not according to the result of the interface inquiry.
In order to achieve the above object, an embodiment of the present invention further provides an apparatus for accessing a device, including a message forwarding service providing module and a device docking sub-service providing module, where the message forwarding service providing module is configured to provide a message forwarding service to a service system, and the device docking sub-service providing module is configured to provide a device docking sub-service to the service system; wherein,
when the message forwarding service responds to an access request sent by the service system, the message forwarding service forwards the access request to a corresponding device docking sub-service according to a destination address in the access request;
the equipment judges whether idle equipment exists in the current equipment to be accessed corresponding to the equipment docking sub-service;
when the equipment to be accessed has idle equipment, the equipment calls an interface of the idle equipment to sub-service so as to operate the idle equipment;
the equipment receives return data of the idle equipment to a sub service, and sends a source address in the access request and the return data to the message forwarding service;
and the message forwarding service sends the return data to the corresponding service system according to the source address.
In order to achieve the above object, an embodiment of the present invention further provides an apparatus access system, including a client and an apparatus to be accessed; the client comprises a service system and the equipment access device in the embodiment; wherein,
and the service system realizes the connection with the equipment to be accessed through the equipment access device.
Drawings
FIG. 1 is an architectural diagram of the interfacing hardware of a business system and devices provided by the prior art;
fig. 2 is a schematic structural diagram of a service system and interfacing hardware of a device to be accessed according to an embodiment of the present invention;
fig. 3 is a flowchart of a device access method of a service system according to an embodiment of the present invention;
fig. 4 is a workflow diagram of a daemon service in an equipment access method of a business system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device access apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a device access system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the service system is provided on a client, and the client may be a terminal device such as a computer and a mobile phone. Referring to fig. 2, fig. 2 is a schematic diagram of an architecture of a service system and docking hardware of a device to be accessed according to an embodiment of the present invention; the client includes a plurality of service systems, for example, the service systems include a Web front end page (HTML) provided in a browser, C # code provided in a C # client, service logic code provided in a C + + application, or code for calling a device interface. The message forwarding service, the device docking sub-service, and the daemon service may all be provided by the client.
The device-to-sub-service includes a plurality of devices respectively corresponding to different types of devices to be accessed, and A, B, C types in fig. 2 represent devices with different purposes. For example, the identity card reader, the camera and the electronic lock have different purposes, and a uniform interface is difficult to abstract, so that the interfaces are divided into different types, and different devices are used for interfacing with sub-services. Devices a1 and a2 are the same type of device, such as identity card readers, but are products of different manufacturers. Taking the id card reader as an example, the kind and the amount of information contained in the id card are fixed, so that it is easy to abstract out a uniform interface to provide, for example, always including the name, sex, card number, age, and the location information of the resident.
The equipment to be accessed is connected with the business system, and the business system carries out communication and data interaction with the equipment to be accessed through the message forwarding service, the equipment docking sub-service and the daemon service. The message forwarding service is to: and uniformly connecting each service system, forwarding the signaling and data between the service system and the equipment connection sub-service. The device is to a sub-service to: the same kind of equipment is docked, and different kinds of equipment respectively realize different equipment docking sub-services; the device is responsible for receiving the request of the service system, actually operating the device according to the operation type of the request and transmitting the data which needs to be transmitted to the device; and if the data returned by the equipment is needed, finally acquiring the data returned by the equipment and transmitting the data back to the service system. The daemon service is to: monitoring the message forwarding service and each docking sub-service, restarting the message forwarding service losing response and the docking sub-service, and stopping and starting the docking sub-service supporting the on-demand operation according to the requirement.
Referring to fig. 3, fig. 3 is a flowchart of a device access method of a business system according to an embodiment of the present invention; the method comprises the following steps:
s11, when responding to the access request sent by the service system, the message forwarding service forwards the access request to the corresponding device docking sub-service according to the destination address in the access request;
s12, the device docking sub-service judges whether the corresponding current device to be accessed has idle devices;
s13, when there is idle equipment in the equipment to be accessed, the equipment calls the interface of the idle equipment to the sub service to operate the idle equipment;
s14, the device receives the return data of the idle device to the sub service, and sends the source address in the access request and the return data to the message forwarding service;
and S15, the message forwarding service sends the return data to the corresponding service system according to the source address.
Preferably, before executing step S11, the method further includes configuring the message forwarding service and the device docking sub-service, and this includes steps S101 to S102:
s101, the equipment registers a service ID to the message forwarding service for the sub-service; wherein the service ID is used as a destination address of the equipment to the sub-service; the service ID may be used for the message forwarding service to determine to which device docking sub-service the access message sent by the service system should be forwarded, where the service ID is public and fixed, and is different for each type of device docking sub-service;
s102, the message forwarding service distributes a system ID to the service system; wherein the system ID is used as a source address of the service system; when the service system is connected to the message forwarding service, the system ID is dynamically allocated by the message forwarding service, and is used as an identifier to which service system a reply of the device to be accessed received by the sub-service should be sent back.
Preferably, the embodiment of the present invention further provides a process how the service system knows that the device to be accessed has accessed, at this time, the service system has two ways to know whether the device to be accessed has accessed:
in a preferred embodiment, before performing step S11, the service system sends an interface request to the message forwarding service; the message forwarding service sends the interface request to the device docking sub-service; the equipment docking sub-service inquires the connection condition of the equipment to be accessed corresponding to the equipment docking sub-service according to the interface request and sends the connection condition of the equipment to be accessed to the message forwarding service; and the message forwarding service sends the connection condition of the equipment to be accessed to the service system. Specifically, since only the device docking sub-service knows how to detect whether the device such as the device is connected to the computer, the service system sends an interface request (forwarded by the message forwarding service) according to an interface provided by the device docking sub-service to know whether the device of the type is connected.
In another preferred embodiment, the device does not provide the interface request to the sub-service, at this time, the service system directly sends any operation request (such as the access request) to the device to the sub-service, and when the device to be accessed is not connected, the device to the sub-service also returns an error prompt that no device is available. Then, after forwarding the access request to the corresponding device docking sub-service according to the destination address in the access request, before the device docking sub-service determining whether there is an idle device in the current device to be accessed corresponding to the device docking sub-service, the method further includes:
the equipment docking sub-service judges whether the equipment to be accessed corresponding to the equipment is in a connection state;
if yes, the device judges whether the corresponding current device to be accessed has an idle device or not, and then continues to execute the steps S13-S15; if not, returning a feedback message which is available for the equipment to the message forwarding service, so that the message forwarding service sends the feedback message to the service system.
Specifically, in step S11, when the service system sends the access request, the protocol header of the access request needs to fill in the destination address, so that the message forwarding service can be notified to forward the access request to the corresponding device docking sub-service. Wherein, the field description of the protocol header refers to table 1.
Table 1 field description of protocol header
Specifically, in step S12, when the device docking sub-service receives the access request, the device docking sub-service determines whether there is an idle device in the corresponding device to be currently accessed. Even if the judgment methods of the devices to be accessed of the same type and different styles are different.
In a preferred embodiment, a device interface provided by the device manufacturer is typically called to determine whether the current device is called. At this time, the device calls the interface of the current device to be accessed corresponding to the sub-service, and judges whether the device to be accessed has idle devices according to the interface use condition of the device to be accessed.
In another preferred embodiment, for standard devices such as a standard USB camera, the interface provided by the operating system is used for querying. At this time, the device queries the interface provided by the current device to be accessed corresponding to the sub-service access, and judges whether the device to be accessed has idle devices according to the result of the interface query.
Specifically, in step S13, when there is an idle device in the device to be accessed, the device calls an interface of the idle device to a sub service to operate the idle device.
Preferably, the access request includes operation data for controlling the idle device by the service system, and when the device receives the access request to a sub-service, the idle device is operated according to the operation data, so that the idle device can be directly operated when a connection relationship is established with the idle device.
Specifically, in steps S14 to S15, when the device docking sub-service operates the idle device according to the operation data, the idle device returns data, and at this time, the device docking sub-service receives the return data and sends the source address in the access request to the message forwarding service, so that the message forwarding service sends the return data to the corresponding service system according to the source address.
Further, referring to fig. 4, fig. 4 is a workflow diagram of a daemon service in the device access method of the business system according to the embodiment of the present invention; providing a daemon service to the business system in addition to the message forwarding service and the device docking sub-service, which includes steps S21 to S23:
s21, the daemon service monitors the message forwarding service and each device docking sub-service;
s22, when the message forwarding service and/or the device loses response to the sub-service, the daemon service restarts the message forwarding service and/or the device docking sub-service;
and S23, the daemon service controls the equipment to operate the sub-service according to the stop-start requirement.
For example, the embodiment is described with reference to a specific application scenario in fig. 2 (assuming that the service system is a web front end, and the device to be accessed is an identity card reader, the corresponding device docking sub-service is a class-a device docking sub-service):
s31, the message forwarding service responds to the access request sent by the web front end, and the message forwarding service forwards the access request to the class-A equipment docking sub-service according to the destination address in the access request;
s32, the class-A device docking sub-service judges whether a current identity card reader has idle devices;
s33, when an idle device A1 exists in the ID card reader, the class A device calls an interface of the idle device A1 to a sub service, and operates the idle device A1 according to operation data in an access request;
s34, the class A device receives the return data of the idle device A1 to a sub service, and sends the source address in the access request and the return data to the message forwarding service;
s35, the message forwarding service sends the return data to the web front end according to the source address.
Compared with the prior art, the equipment access method of the business system disclosed by the invention separates the calling of the interface of the equipment to be accessed, and the equipment is in butt joint with the sub-service, thereby realizing function multiplexing and reducing the repeated development of the equipment interface; the equipment of the same equipment to be accessed is connected with the sub-service, and the equipment can be transparently connected to different manufacturers or different types of equipment of the same manufacturer, belonging to the same type, of a service system; the equipment corresponding to the same equipment to be accessed is connected with the sub-service, and a uniform interface independent of manufacturers and equipment models can be provided for calling the service system; the message forwarding service is added, the service system only needs to establish connection with the message forwarding service, and does not need to establish connection with each equipment docking service, so that the docking of the equipment can be simplified, the contention problem of the equipment can not occur, the coupling of the equipment docking and the service logic is reduced, and the stability is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a device access apparatus according to an embodiment of the present invention; the device access apparatus comprises a message forwarding service providing module 11, a device docking sub-service providing module 12 and a daemon service providing module 13, wherein the message forwarding service providing module 11 is used for providing a message forwarding service to a business system, the device docking sub-service providing module 12 is used for providing a device docking sub-service to the business system, and the daemon service providing module 13 is used for providing a daemon service to the business system; wherein,
when the message forwarding service responds to an access request sent by the service system, the message forwarding service forwards the access request to a corresponding device docking sub-service according to a destination address in the access request;
the equipment judges whether idle equipment exists in the current equipment to be accessed corresponding to the equipment docking sub-service;
when the equipment to be accessed has idle equipment, the equipment calls an interface of the idle equipment to sub-service so as to operate the idle equipment;
the equipment receives return data of the idle equipment to a sub service, and sends a source address in the access request and the return data to the message forwarding service;
the message forwarding service sends the return data to the corresponding service system according to the source address;
the daemon service monitors the message forwarding service and each of the device docking sub-services;
when the message forwarding service and/or the device loses response to a sub-service, the daemon service restarts the message forwarding service and/or the device to sub-service;
and the daemon service controls the equipment to operate the sub-service according to the stop-start requirement.
For the specific working processes of the message forwarding service, the device docking sub-service, and the daemon service, reference is made to the working process in the device access method of the business system in the above embodiment, which is not described herein again.
Compared with the prior art, the equipment access device 10 disclosed by the invention separates the calling of the interface of the equipment to be accessed, and the equipment is in butt joint with the sub-service, so that the function reuse is realized, and the repeated development of the equipment interface is reduced; the equipment of the same equipment to be accessed is connected with the sub-service, and the equipment can be transparently connected to different manufacturers or different types of equipment of the same manufacturer, belonging to the same type, of a service system; the equipment corresponding to the same equipment to be accessed is connected with the sub-service, and a uniform interface independent of manufacturers and equipment models can be provided for calling the service system; the message forwarding service is added, the service system only needs to establish connection with the message forwarding service, and does not need to establish connection with each equipment docking service, so that the docking of the equipment can be simplified, the contention problem of the equipment can not occur, the coupling of the equipment docking and the service logic is reduced, and the stability is improved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a device access system 20 according to an embodiment of the present invention; the device access system 20 comprises a client 21 and a device to be accessed 22; the client 21 comprises a service system 211 and the device access apparatus 10 described in the above embodiment; wherein,
the service system 211 implements connection with the device to be accessed 21 through the device access apparatus 10.
For the specific working processes of the service system 211, the device access apparatus 10, and the device 22 to be accessed, reference is made to the working process in the device access method of the service system according to the foregoing embodiment, and details are not repeated here.
Compared with the prior art, the equipment access system 20 disclosed by the invention separates the calling of the interface of the equipment 22 to be accessed, and the equipment is in butt joint with the sub-service, so that the function reuse is realized, and the repeated development of the equipment interface is reduced; the equipment of the same equipment 22 to be accessed is connected with the sub-service, and the equipment of different manufacturers or different types of the same manufacturer can be transparently accessed to the service system and belongs to the same type of equipment; the device docking sub-service corresponding to the same device 22 to be accessed can provide a uniform interface independent of the manufacturer and the device model to be called by the service system; the message forwarding service is added, the service system 211 only needs to establish connection with the message forwarding service, and does not need to establish connection with each device docking sub-service, so that the docking of the devices can be simplified, the contention problem of the devices can not occur, the coupling of the device docking and the service logic is reduced, and the stability is improved.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.
Claims (10)
1. A method for device access in a business system, the method comprising:
when the message forwarding service responds to the access request sent by the service system, the message forwarding service forwards the access request to a corresponding device docking sub-service according to a destination address in the access request;
the equipment judges whether idle equipment exists in the current equipment to be accessed corresponding to the equipment docking sub-service;
when the equipment to be accessed has idle equipment, the equipment calls an interface of the idle equipment to sub-service so as to operate the idle equipment;
the equipment receives return data of the idle equipment to a sub service, and sends a source address in the access request and the return data to the message forwarding service;
and the message forwarding service sends the return data to the corresponding service system according to the source address.
2. The method for device access to a business system of claim 1, wherein the method further comprises:
a daemon service monitors the message forwarding service and each of the device docking sub-services;
when the message forwarding service and/or the device loses response to a sub-service, the daemon service restarts the message forwarding service and/or the device to sub-service;
and the daemon service controls the equipment to operate the sub-service according to the stop-start requirement.
3. The method for accessing equipment of business system according to claim 1, wherein before responding to the access request issued by said business system, further comprising:
the device registers I D with the message forwarding service for sub-services; wherein the service I D is used as a destination address of the device to a sub-service;
the message forwarding service distribution system I D to the business system; wherein the system I D is used as the source address of the service system.
4. The method for accessing equipment of business system according to claim 1, wherein before responding to the access request issued by said business system, further comprising:
the service system sends an interface request to the message forwarding service;
the message forwarding service sends the interface request to the device docking sub-service;
the equipment docking sub-service inquires the connection condition of the equipment to be accessed corresponding to the equipment docking sub-service according to the interface request and sends the connection condition of the equipment to be accessed to the message forwarding service;
and the message forwarding service sends the connection condition of the equipment to be accessed to the service system.
5. The device access method of the service system according to claim 1, wherein after forwarding the access request to the corresponding device docking sub-service according to the destination address in the access request, before the device docking sub-service determines whether there is an idle device in the current device to be accessed corresponding to the device docking sub-service, the method further comprises:
the equipment docking sub-service judges whether the equipment to be accessed corresponding to the equipment is in a connection state;
if yes, the equipment judges whether idle equipment exists in the corresponding current equipment to be accessed by the equipment to the sub-service; if not, returning a feedback message which is available for the equipment to the message forwarding service, so that the message forwarding service sends the feedback message to the service system.
6. The device access method of a business system of claim 1, wherein the access request includes operation data; then, the operating the idle device specifically includes:
and operating the idle equipment according to the operation data.
7. The device access method of the service system according to claim 1, wherein the device docking sub-service determines whether there is an idle device in the current device to be accessed corresponding to the device docking sub-service, specifically comprising:
the equipment calls the interface of the current equipment to be accessed corresponding to the sub-service, and judges whether the equipment to be accessed has idle equipment or not according to the interface use condition of the equipment to be accessed.
8. The device access method of the service system according to claim 1, wherein the device docking sub-service determines whether there is an idle device in the current device to be accessed corresponding to the device docking sub-service, specifically comprising:
the equipment inquires an interface provided by the current equipment to be accessed corresponding to the sub-service access, and judges whether the equipment to be accessed has idle equipment or not according to the result of the interface inquiry.
9. The device access device is characterized by comprising a message forwarding service providing module and a device docking sub-service providing module, wherein the message forwarding service providing module is used for providing a message forwarding service to a service system, and the device docking sub-service providing module is used for providing a device docking sub-service to the service system; wherein,
when the message forwarding service responds to an access request sent by the service system, the message forwarding service forwards the access request to a corresponding device docking sub-service according to a destination address in the access request;
the equipment judges whether idle equipment exists in the current equipment to be accessed corresponding to the equipment docking sub-service;
when the equipment to be accessed has idle equipment, the equipment calls an interface of the idle equipment to sub-service so as to operate the idle equipment;
the equipment receives return data of the idle equipment to a sub service, and sends a source address in the access request and the return data to the message forwarding service;
and the message forwarding service sends the return data to the corresponding service system according to the source address.
10. A device access system comprises a client and a device to be accessed; the client comprises a service system and the device access apparatus of claim 9 above; wherein,
and the service system realizes the connection with the equipment to be accessed through the equipment access device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910677969.5A CN110401659B (en) | 2019-07-25 | 2019-07-25 | Equipment access method, equipment access device and system of service system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910677969.5A CN110401659B (en) | 2019-07-25 | 2019-07-25 | Equipment access method, equipment access device and system of service system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110401659A true CN110401659A (en) | 2019-11-01 |
CN110401659B CN110401659B (en) | 2021-11-05 |
Family
ID=68326110
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910677969.5A Active CN110401659B (en) | 2019-07-25 | 2019-07-25 | Equipment access method, equipment access device and system of service system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110401659B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020095322A1 (en) * | 2000-10-27 | 2002-07-18 | Manugistics, Inc. | System and method of monitoring supply chain parameters |
US20070067383A1 (en) * | 2005-09-21 | 2007-03-22 | Savchenko Vladimir S | Web services hibernation |
CN101902357A (en) * | 2010-06-29 | 2010-12-01 | 中兴通讯股份有限公司 | Method and system for dispatching business server |
CN102594912A (en) * | 2012-03-15 | 2012-07-18 | 北京昆仑万维科技股份有限公司 | Data processing method under server architecture, server and server architecture |
CN103164502A (en) * | 2011-09-13 | 2013-06-19 | 吉菲斯股份有限公司 | Management of online content in a network |
CN104270472A (en) * | 2014-10-24 | 2015-01-07 | 杭州高达软件系统股份有限公司 | Remote service invocation method, device and system |
CN105959385A (en) * | 2016-06-06 | 2016-09-21 | 浪潮软件集团有限公司 | Information communication method, device and system |
CN107480005A (en) * | 2017-07-31 | 2017-12-15 | 惠州华阳通用电子有限公司 | A kind of linux system process guard method |
CN107968836A (en) * | 2017-12-06 | 2018-04-27 | 北京星河星云信息技术有限公司 | A kind of task distribution method and device |
US20180165137A1 (en) * | 2016-12-08 | 2018-06-14 | International Business Machines Corporation | Integrating heterogeneous business events in hybrid cloud environments |
CN108712501A (en) * | 2018-05-28 | 2018-10-26 | 腾讯科技(北京)有限公司 | Sending method, device, computing device and the storage medium of information |
-
2019
- 2019-07-25 CN CN201910677969.5A patent/CN110401659B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020095322A1 (en) * | 2000-10-27 | 2002-07-18 | Manugistics, Inc. | System and method of monitoring supply chain parameters |
US20070067383A1 (en) * | 2005-09-21 | 2007-03-22 | Savchenko Vladimir S | Web services hibernation |
CN101902357A (en) * | 2010-06-29 | 2010-12-01 | 中兴通讯股份有限公司 | Method and system for dispatching business server |
CN103164502A (en) * | 2011-09-13 | 2013-06-19 | 吉菲斯股份有限公司 | Management of online content in a network |
CN102594912A (en) * | 2012-03-15 | 2012-07-18 | 北京昆仑万维科技股份有限公司 | Data processing method under server architecture, server and server architecture |
CN104270472A (en) * | 2014-10-24 | 2015-01-07 | 杭州高达软件系统股份有限公司 | Remote service invocation method, device and system |
CN105959385A (en) * | 2016-06-06 | 2016-09-21 | 浪潮软件集团有限公司 | Information communication method, device and system |
US20180165137A1 (en) * | 2016-12-08 | 2018-06-14 | International Business Machines Corporation | Integrating heterogeneous business events in hybrid cloud environments |
CN107480005A (en) * | 2017-07-31 | 2017-12-15 | 惠州华阳通用电子有限公司 | A kind of linux system process guard method |
CN107968836A (en) * | 2017-12-06 | 2018-04-27 | 北京星河星云信息技术有限公司 | A kind of task distribution method and device |
CN108712501A (en) * | 2018-05-28 | 2018-10-26 | 腾讯科技(北京)有限公司 | Sending method, device, computing device and the storage medium of information |
Non-Patent Citations (1)
Title |
---|
惠乐等: "《面向设计产业链的需求服务映射及评价算法》", 《计算机应用研究》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110401659B (en) | 2021-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102098808B (en) | Data card and data card networking method | |
CN101227428B (en) | Application server and remote control method thereof | |
CN102769709B (en) | A kind of for providing the method and apparatus of service contact information to user | |
US20230040580A1 (en) | Binding method and system for device network configuration, and mobile terminal and storage medium | |
CN111459632B (en) | Serial port agent for calling terminal application program and implementation method | |
CN103812838A (en) | Service calling method and device and system | |
CN113162848B (en) | Method, device, gateway and medium for realizing block chain gateway | |
CN105245418A (en) | Method, device and system for controlling smart home devices | |
CN111147314A (en) | Switch upgrading method, device and storage medium | |
CN112688915A (en) | Cross-protocol communication method, device and server | |
CN111901793B (en) | UICC application setting information management method and system, UICC smart card and terminal | |
CN113726581B (en) | Method and device for restoring factory configuration of network equipment and network equipment | |
CN110401659B (en) | Equipment access method, equipment access device and system of service system | |
CN110378494B (en) | Remote facing slip method, remote facing slip device, storage medium and computer equipment | |
CN102937862B (en) | System and method for managing mobile terminal by browser | |
CN117194039A (en) | K8S drive integrated system, request processing method, device and storage medium | |
CN102932968A (en) | Data card and method of networking thereof | |
WO2023070834A1 (en) | Method and system for communication between applet and webpage, and related device | |
KR100308903B1 (en) | Exchange management function system using ooad and method for the exchange resourses installation | |
CN114615321A (en) | Traffic processing method and device | |
CN114461427A (en) | Method for sharing computer peripheral equipment by PMS (personal computer) in hotel | |
CN108735278B (en) | Instruction transmission method and application suitable for rehabilitation equipment | |
CN106445694A (en) | Application access method, device and system | |
CN110381499A (en) | The application method of VSIM card, apparatus and system | |
WO2022160304A1 (en) | Exchange method and apparatus for multi-subscriber identification module characteristic information, and communication device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |