CN110401659B - Equipment access method, equipment access device and system of service system - Google Patents

Equipment access method, equipment access device and system of service system Download PDF

Info

Publication number
CN110401659B
CN110401659B CN201910677969.5A CN201910677969A CN110401659B CN 110401659 B CN110401659 B CN 110401659B CN 201910677969 A CN201910677969 A CN 201910677969A CN 110401659 B CN110401659 B CN 110401659B
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.)
Active
Application number
CN201910677969.5A
Other languages
Chinese (zh)
Other versions
CN110401659A (en
Inventor
饶尚智
王朝普
李文辉
周伟浩
黄仝宇
汪刚
宋一兵
侯玉清
刘双广
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gosuncn Technology Group Co Ltd
Original Assignee
Gosuncn 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 Gosuncn Technology Group Co Ltd filed Critical Gosuncn Technology Group Co Ltd
Priority to CN201910677969.5A priority Critical patent/CN110401659B/en
Publication of CN110401659A publication Critical patent/CN110401659A/en
Application granted granted Critical
Publication of CN110401659B publication Critical patent/CN110401659B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • 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/14Session management
    • H04L67/141Setup of application sessions

Abstract

The invention discloses a device access method of a service system.A message forwarding service forwards an access request to a corresponding device docking sub-service according to a destination address in the access request when responding to the access request sent by the service system; the equipment judges whether idle equipment exists in the corresponding current equipment to be accessed by the equipment docking sub-service; when the equipment to be accessed has idle equipment, the equipment calls an interface of the idle equipment to the sub service so as to operate the idle equipment; the equipment receives the return data of the idle equipment to the sub-service, and sends the source address and the return data in the access request to the message forwarding service; and the message forwarding service sends the return data to the corresponding service system according to the source address. The invention also provides a device access device and a system. By adopting the embodiment of the invention, the calling of the equipment interface can be separated, the function multiplexing is realized, the repeated development of the equipment interface is reduced, and the coupling of equipment butt joint and service logic is reduced.

Description

Equipment access method, equipment access device and system of service system
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:
the equipment registers a service ID to a message forwarding service for the sub-service, and the message forwarding service distributes a system ID to a service system;
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 equipment docking sub-services comprise a plurality of equipment, each equipment docking sub-service is docked with equipment of the same type and different manufacturers, and the service IDs of the equipment docking sub-services of each type are different;
the service ID is used as a destination address of the equipment for connecting the sub-service; the system ID serves as a source address of the service system. 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 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 the content of the first and second substances,
the equipment registers a service ID to the message forwarding service for the sub-service, and the message forwarding service allocates a system ID to the service system;
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 equipment docking sub-services comprise a plurality of equipment, each equipment docking sub-service is docked with equipment of the same type and different manufacturers, and the service IDs of the equipment docking sub-services of each type are different;
the service ID is used as a destination address of the equipment for connecting the sub-service; the system ID serves as a source address of the service system. 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 the content of the first and second substances,
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 to perform sub-service configuration, 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 the steps S13-S15 are continuously executed; 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
Name of field Means of
version Protocol version number
command Request/response commands. Representing what operations need to be performed on the device
type The type of message. Whether requesting or replying
source Request or replyThe source address of (2). The device assigns a name to the sub-service or an ID that the business system obtains from the message forwarding service.
destination The destination address of the request or reply. The device assigns a name to the sub-service or an ID that the business system obtains from the message forwarding service.
ret Values specified for replies, representing the status of the result of the operation, 0 representing success, and others representing failure
retmsg Text description specific to reply, operation result state
data Requesting: input parameter reply required for operating the device: result data returned by the device
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; besides providing the message forwarding service and the device docking sub-service to the business system, providing a daemon service to the business system, 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 the content of the first and second substances,
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 content of the first and second substances,
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 (9)

1. A method for device access in a business system, the method comprising:
the equipment registers a service ID to a message forwarding service for the sub-service, and the message forwarding service distributes a system ID to a service system;
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 equipment docking sub-services comprise a plurality of equipment, each equipment docking sub-service is docked with equipment of the same type and different manufacturers, and the service IDs of the equipment docking sub-services of each type are different;
the service ID is used as a destination address of the equipment for connecting the sub-service; the system ID serves as a source address of the service system.
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 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.
4. 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.
5. 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.
6. 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.
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 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.
8. 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 the content of the first and second substances,
the equipment registers a service ID to the message forwarding service for the sub-service, and the message forwarding service allocates a system ID to the service system;
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 equipment docking sub-services comprise a plurality of equipment, each equipment docking sub-service is docked with equipment of the same type and different manufacturers, and the service IDs of the equipment docking sub-services of each type are different;
the service ID is used as a destination address of the equipment for connecting the sub-service; the system ID serves as a source address of the service system.
9. 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 8 above; wherein the content of the first and second substances,
and the service system realizes the connection with the equipment to be accessed through the equipment access device.
CN201910677969.5A 2019-07-25 2019-07-25 Equipment access method, equipment access device and system of service system Active CN110401659B (en)

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 CN110401659A (en) 2019-11-01
CN110401659B true 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN108712501A (en) * 2018-05-28 2018-10-26 腾讯科技(北京)有限公司 Sending method, device, computing device and the storage medium of information

Family Cites Families (4)

* Cited by examiner, † Cited by third party
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
US7721293B2 (en) * 2005-09-21 2010-05-18 Sap Ag Web services hibernation
CN103164502A (en) * 2011-09-13 2013-06-19 吉菲斯股份有限公司 Management of online content in a network
US10585722B2 (en) * 2016-12-08 2020-03-10 International Business Machines Corporation Integrating heterogeneous business events in hybrid cloud environments

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN108712501A (en) * 2018-05-28 2018-10-26 腾讯科技(北京)有限公司 Sending method, device, computing device and the storage medium of information

Also Published As

Publication number Publication date
CN110401659A (en) 2019-11-01

Similar Documents

Publication Publication Date Title
WO2017050011A1 (en) Equipment control method, control side equipment, controlled side equipment, and equipment control system
CN102769709B (en) A kind of for providing the method and apparatus of service contact information to user
CN111625810B (en) Equipment login method, equipment and system
CN103812838A (en) Service calling method and device and system
CN111459632B (en) Serial port agent for calling terminal application program and implementation method
CN101895900A (en) Device and method for managing/controlling terminal based on M2M application platform
CN105245418A (en) Method, device and system for controlling smart home devices
CN111901793B (en) UICC application setting information management method and system, UICC smart card and terminal
CN104639497A (en) Remote access configuration method, remote access method, remote access configuration device, remote access device and remote access system
CN100465950C (en) Web browser command button for client support
CN111147314A (en) Switch upgrading method, device and storage medium
CN111582824A (en) Cloud resource synchronization method, device, equipment and storage medium
CN110401659B (en) Equipment access method, equipment access device and system of service system
CN106850554B (en) Method and device for dual-system directional connection
CN102937862B (en) System and method for managing mobile terminal by browser
CN111367761B (en) Information management method, system and related components of universal server
CN110809045B (en) Data communication method and related equipment thereof
CN110378494B (en) Remote facing slip method, remote facing slip device, storage medium and computer equipment
JP2013229021A (en) Mobile broadband device, and mobile broadband service processing method for mobile broadband device
WO2023070834A1 (en) Method and system for communication between applet and webpage, and related device
CN108735278B (en) Instruction transmission method and application suitable for rehabilitation equipment
CN106445694A (en) Application access method, device and system
CN116760486B (en) Automatic frequency matching system and method for interphone
EP4287674A1 (en) Exchange method and apparatus for multi-subscriber identification module characteristic information, and communication device
US9380085B2 (en) Server and method for providing collaboration service, and sociality management server

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