CN106993043A - Data communication system and method based on agency - Google Patents

Data communication system and method based on agency Download PDF

Info

Publication number
CN106993043A
CN106993043A CN201710221440.3A CN201710221440A CN106993043A CN 106993043 A CN106993043 A CN 106993043A CN 201710221440 A CN201710221440 A CN 201710221440A CN 106993043 A CN106993043 A CN 106993043A
Authority
CN
China
Prior art keywords
agent
communication
control background
communication connection
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710221440.3A
Other languages
Chinese (zh)
Other versions
CN106993043B (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.)
Shanghai Noah Wood Robot Technology Co ltd
Shanghai Zhihui Medical Technology Co ltd
Shanghai Zhihuilin Medical Technology Co ltd
Original Assignee
Shanghai Muye Robot Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Muye Robot Technology Co Ltd filed Critical Shanghai Muye Robot Technology Co Ltd
Priority to CN201710221440.3A priority Critical patent/CN106993043B/en
Publication of CN106993043A publication Critical patent/CN106993043A/en
Application granted granted Critical
Publication of CN106993043B publication Critical patent/CN106993043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/561Adding application-functional data or data for application control, e.g. adding metadata
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Library & Information Science (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides a kind of data communication system and method based on agency, and system includes:Backstage is controlled, terminal device is installed on multiple application programs and agency in terminal device;Wherein, the mark of multiple application programs is provided with agency, is communicated to connect for being set up respectively with multiple application programs according to the mark of application program;It is stored with agency and controls the mailing address on backstage, communication connection is set up with control backstage for the mailing address according to control backstage;Service interface set is provided with agency, service interface in set corresponds to the set of service that multiple application programs are provided, with the communication connection based on agency with control backstage, communication connection and each service interface of the agency with application program, the promptness of application program is realized in control backstage and terminal device by acting on behalf of data communication, in order to control backstage to find that the unusual condition of terminal device carries out respective handling in time.

Description

Proxy-based data communication system and method
Technical Field
The present invention relates to the field of data communication technologies, and in particular, to a data communication system and method based on an agent.
Background
In recent years, with the development of robot technology and the continuous and deep research of artificial intelligence, intelligent mobile robots play an increasingly important role in human life and are widely applied in many fields.
In order to provide more intelligent services for users, a variety of applications are often provided in robots. In the use process of the robot, operation and maintenance personnel are often required to manually go to the site for maintenance due to problems such as machine faults and abnormal operation of application programs. For example, when an application program is abnormal, an error log needs to be pulled and fed back to a corresponding developer, and the application program is reinstalled into the robot after the developer repairs, so that the timeliness of solving the problem is low, and the user experience is greatly reduced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data communication system and method based on an agent, so as to implement timely communication between a control background and an application program in a terminal device through the agent, so that the control background can find an abnormal condition of the terminal device in time to perform corresponding processing.
The embodiment of the invention provides a data communication system based on an agent, which comprises:
the system comprises a control background, a terminal device, a plurality of application programs installed in the terminal device and an agent installed in the terminal device; wherein,
the agent is provided with identifiers of the plurality of application programs and is used for establishing communication connection with the plurality of application programs according to the identifiers of the application programs;
the agent is used for storing the communication address of the control background and establishing communication connection with the control background according to the communication address of the control background;
the agent is provided with a service interface set, and service interfaces in the service interface set correspond to service sets provided by the application programs.
The embodiment of the invention provides a data communication method based on an agent, which comprises the following steps:
establishing a first communication connection with a control background according to a pre-stored communication address of the control background;
establishing second communication connection with a plurality of application programs respectively according to the pre-stored identifiers of the application programs in the terminal equipment;
and performing data communication processing between the control background and the plurality of application programs according to the first communication connection, the second communication connection and a preset service interface set, wherein service interfaces in the preset service interface set correspond to service sets provided by the plurality of application programs.
The data communication system and method based on agent provided by the embodiment of the invention, the system comprises: the system comprises a control background, a terminal device, a plurality of application programs and agents installed in the terminal device. The agent is provided with a plurality of application program identifiers so as to establish communication connection with the application programs according to the application program identifiers; and the agent stores the communication address of the control background so as to establish communication connection with the control background according to the communication address of the control background. In addition, the agent is provided with a service interface set corresponding to a service set provided by a plurality of application programs in the terminal equipment, so that the timely data communication between the control background and the application programs in the terminal equipment can be realized through the agent based on the communication connection between the agent and the control background, the communication connection between the agent and the application programs and each service interface, so that the control background can find the abnormal condition of the terminal equipment in time to perform corresponding processing.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1a is a schematic structural diagram of a first embodiment of a proxy-based data communication system according to an embodiment of the present invention;
FIG. 1b is a signaling interaction diagram of a data communication method in the scenario of the system shown in FIG. 1 a;
FIG. 1c is a signaling interaction diagram of another data communication scenario in the system of FIG. 1 a;
FIG. 1d is a signaling interaction diagram of another data communication method in the context of the system shown in FIG. 1 a;
fig. 2 is a flowchart of an embodiment of a method for proxy-based data communication according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used to describe XXX in embodiments of the present invention, these XXX should not be limited to these terms. These terms are only used to distinguish XXX from each other. For example, a first XXX may also be referred to as a second XXX, and similarly, a second XXX may also be referred to as a first XXX, without departing from the scope of embodiments of the present invention.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
Fig. 1a is a schematic structural diagram of a first embodiment of a proxy-based data communication system according to an embodiment of the present invention, and as shown in fig. 1a, the system includes:
the control background 1, the terminal device 2, a plurality of applications 21 installed in the terminal device 2, and the agent 22 installed in the terminal device 2. In a robot application scenario, the terminal device 2 may be an electronic device installed in a robot.
The agent 22 stores a communication address of the control background 1, and the agent 22 is further configured to establish a communication connection with the control background 1 according to the communication address of the control background 1.
Specifically, the agent 22 is configured and then started, and sends a connection request to the control background 1 through a preset port by using a pre-stored communication address of the control background 1, and if the control background 1 receives the connection request through the preset port, the agent 22 establishes a communication connection.
Optionally, when more than one terminal device 2 is in the application scenario, the connection request may include the identifier of the terminal device 2 currently triggering the connection request and the communication address of the terminal device 2. The agent 22 stores in advance an identifier of the terminal device 2 in which it is installed and a communication address of the terminal device 2, where the identifier of the terminal device may be, for example, a motherboard number or the like, which is used to uniquely identify one terminal device, and the communication address may be, for example, an IP address of the terminal device, such as an internal network address or an external network address, port information, or the like. At this time, the control background 1 further adds communication connection information corresponding to the identifier of the terminal device 2 to the connection pool after establishing communication connection with the agent 22 according to the connection request.
Specifically, the control background 1 creates a connection pool after being started, and after receiving the connection request sent by the agent 22, determines whether the connection pool includes communication connection information corresponding to the connection pool or not according to the identifier of the terminal device 2 carried in the connection request, and if not, adds the identifier of the terminal device 2 and the communication address of the terminal device 2 in the current connection request to the connection pool in a key value manner, where the key is the identifier of the terminal device 2 and the value is the communication address of the terminal device 2.
Further, the agent 22 is provided with identifications of the plurality of applications 21, and the agent 22 is configured to establish communication connections with the plurality of applications 21 according to the identifications of the applications 21.
The agent 22 is configured in the terminal device 2, and the identifier preset in the agent 22 is added to the plurality of applications 21 that need to use the agent 22, so that the agent 22 establishes communication connection with the plurality of applications 21, and the identifier cannot be duplicated.
Also, a service interface set corresponding to a service set provided by the plurality of applications 21 is set in the agent 22.
The identifier of the application program may include an identifier characterizing one application program, and may further include an identifier characterizing a service provided by the application program, such as a service name.
It should be noted that the service interfaces in the service interface set do not necessarily have a one-to-one correspondence with the services in the service set provided by the plurality of application programs, for example, the service interfaces may have a one-to-many correspondence, at this time, the services in the service set may be abstracted in common, and if the processing logics of some services are consistent, the services correspond to the same service interface. In addition, optionally, the service interface set maintained by the control back-end 1 and the service interface set maintained by the agent 22 may not be completely consistent, because similarly, the control back-end 1 may further abstract commonalities for several service interfaces in the service interface set maintained by the agent 22, corresponding to one service interface on the control back-end side.
Specifically, a service interface set may be defined in advance in the agent 22, and a service interface in the service interface set is used for communication between the agent 22 and the corresponding application 21. For example, assuming that the service provided in the application a includes a service a and a service B, and the service provided in the application B includes a service c and a service d, service interfaces corresponding to the service a, the service B, the service c and the service d are predefined in the agent 22, so that when there is a data communication demand between the control background 1 and the service a in the application a, the agent 22 can transmit communication data to the service a through the service interface corresponding to the service a, and similarly, when the service a wants to transmit data to the control background 1, the data can be sent to the agent 22 based on the service interface corresponding to the service a, so that the agent 22 forwards the data to the control background 1.
Specifically, the process of establishing communication between the application 21 and the agent 22 may be, for example:
adding a fixed Service name to the Service of the application 21 that needs to use the agent 22;
after the Service of the application 21 is initialized, the Service interface defined by the Agent is realized, and after the realization is instantiated, the instantiated object is released through a reflection and dynamic proxy mechanism. When a certain service is triggered to generate a data communication demand, acquiring a corresponding service interface of an agent through an Intent mechanism of Android, and sending corresponding communication data; wherein, the terminal device 2 in which the application 21 and the agent 22 are installed is assumed to be based on the Android system;
the agent 22 starts initialization, registers a service name configured by the application 21 in the terminal device 2, acquires a corresponding service interface through the service name after starting, establishes a communication channel, and sends communication data to a corresponding service when a communication demand to the service exists.
Based on the above process, data communication between the control background 1 and the application 21 can be performed through the agent 22. For example, the control background 1 may send version-up information to a certain application 21 through the agent 22; an application 21 may send a version-up request, send running state information, etc. to the control daemon 1 via the agent 22.
In addition, because the number of the applications 21 using the agent 22 in the terminal device 2 is often multiple, and the control background 1 often has communication requirements with different applications under different conditions, based on the embodiment, no matter which application using the agent 22 the control background 1 needs to perform data communication with, the control background 1 is implemented through the agent 22, at this time, the control background 1 only needs to maintain one communication connection with the agent 22, and does not need to maintain the communication connection with each application by the control background 1, so that the maintenance cost of the communication connection of the control background 1 is reduced, that is, the number of the communication connection information in the connection pool of the control background 1 is greatly reduced.
In summary, the data communication system based on proxy provided in this embodiment includes: the system comprises a control background, a terminal device, a plurality of application programs and agents installed in the terminal device. The agent is provided with a plurality of application program identifiers so as to establish communication connection with the application programs according to the application program identifiers; and the agent stores the communication address of the control background so as to establish communication connection with the control background according to the communication address of the control background. In addition, a service interface set corresponding to a service set provided by a plurality of application programs in the terminal equipment is also arranged in the agent, and the control background can realize the service interface set, so that the timely data communication between the control background and the application programs in the terminal equipment can be realized through the agent based on the communication connection between the agent and the control background, the communication connection between the agent and the application programs and each service interface, and the control background can timely discover the abnormal condition of the terminal equipment to perform corresponding processing.
Fig. 1b is a signaling interaction diagram of a data communication method in the scenario of the system shown in fig. 1a, as shown in fig. 1b, including the following steps:
step 101, the agent sends heartbeat messages to the control background at preset time intervals, wherein the heartbeat messages comprise the identification of the terminal equipment.
And step 102, the control background responds to the heartbeat message and inquires whether the connection pool contains communication connection information corresponding to the identifier of the terminal equipment, if not, the communication connection information corresponding to the identifier of the terminal equipment is added into the connection pool, and if so, the updating time of the communication connection information is modified.
And 103, if the control background does not receive the heartbeat message sent by the agent within the preset time or receives an offline notification message sent by the agent, deleting the communication connection information in the connection pool.
In this embodiment, in order to ensure the reliability of the communication connection between the agent 22 and the control background 1, the agent 22 is further configured to send a heartbeat message to the control background 1 at a certain time interval in a cycle, so as to ensure the validity of the previous communication connection between the agent 22 and the control background 1.
Accordingly, the control background 1 is also configured to: after receiving the heartbeat message, inquiring whether the connection pool contains communication connection information corresponding to the identifier of the terminal device, if not, indicating that the communication connection between the agent 22 and the control background 1 is interrupted, at this moment, reestablishing the communication connection between the agent and the control background, and adding corresponding communication connection information into the connection pool; if so, modifying the updating time of the communication connection information to update the time when the communication connection information is detected as valid. If the control background 1 does not receive the heartbeat message sent by the agent 22 within the preset time or receives the offline notification message sent by the agent 22, it indicates that the communication connection between the two is interrupted, and deletes the corresponding communication connection information in the connection pool.
In this embodiment, based on the heartbeat mechanism, validity of communication connection between the agent and the control background can be ensured.
Fig. 1c is a signaling interaction diagram of another data communication method in the context of the system shown in fig. 1a, as shown in fig. 1c, including the following steps:
step 201, the control background receives a data communication request triggered by a user, where the data communication request includes an identifier of a terminal device, an application identifier, and a service interface identifier.
In an application scenario, it is assumed that the control back 1 needs to perform data communication with a certain application 21, and the triggering of the data communication requirement may be optionally triggered actively by a worker on the control back 1 side, i.e. the user.
When the user triggers the data communication request, the user may trigger the data communication request by selecting what service to trigger to which application of which terminal device on the interface of the control back-office 1.
Step 202, the control background inquires communication connection information from the connection pool according to the identifier of the terminal device, so as to send a data communication request to the agent according to the communication connection information and the service interface corresponding to the service interface identifier.
Because communication connection information between agents corresponding to a plurality of different terminal devices 2 may be maintained in the connection pool of the control background 1, when the control background 1 currently needs to perform data communication for a certain service with a certain application 21 in a certain terminal device 2, the corresponding communication connection information is queried from the connection pool based on the identifier of the terminal device 2, so as to send a data communication request to the corresponding agent 22 through a corresponding communication connection based on the communication connection information and by calling a corresponding service interface.
Step 203, the agent sends a data communication request to the application program corresponding to the application identifier through the service interface corresponding to the service interface identifier.
After receiving the data communication request, the agent 22 invokes a corresponding service interface to send the data communication request to a corresponding service of the corresponding application program 21, so as to implement data communication between the control background 1 and the application program 21.
In addition, in another scenario, optionally, when any application 21 in the plurality of applications in a certain terminal device 2 needs to perform data communication with the control background 1, for example, the application 21 is triggered by a user to perform an operation, which results in the need to communicate with the control background 1, at this time, the agent 22 is further configured to: receiving a data communication request sent by the application program 21 through a corresponding service interface; and sending the data communication request to the control background 1 through the service interface based on the communication connection with the control background 1.
For ease of understanding, the data communication process between the control daemon 1 and the application 21 via the agent 22 is described below as a practical example.
For example, when the application 21 needs to be version-upgraded, for example, when a terminal device side user triggers an upgrade request for the application 21, the application 21 sends the upgrade request to the agent 22 through the version-upgrade service interface, where the upgrade request may include an identifier of the terminal device, an identifier of the application, and a current version number. After receiving the upgrade request, the agent 22 sends the upgrade request to the control back-office 1 through the corresponding service interface and the communication connection established with the control back-office 1. After receiving the upgrade request, the control background 1 queries whether the database has new version information corresponding to the upgrade request, and if so, feeds an upgrade response carrying information such as a new version number and a new version download address back to the agent 22, and feeds the agent 22 back to the application program 21, so that the application program 21 completes corresponding upgrade processing based on the upgrade response.
Fig. 1d is a signaling interaction diagram of another data communication method in the context of the system shown in fig. 1a, as shown in fig. 1d, including the following steps:
step 301, the agent collects the running state information of a plurality of applications and/or terminal devices at a first preset time interval.
Step 302, the agent caches the running state information into an agent database.
Step 303, the agent reads the running state information stored in the corresponding time from the agent database at a second preset time interval, wherein the second preset time interval is greater than the first preset time interval.
And step 304, the agent sends the read running state information to the control background.
Step 304, if the agent is successfully sent, deleting the sent running state information from the agent database; and if the transmission is unsuccessful, delaying to the next transmission time to retransmit the running state information.
In this embodiment, a scenario in which the plurality of applications 21 in the terminal device 2 and the operating conditions of the terminal device 2 are monitored is taken as an example, and how to implement data communication between the control background 1 and the plurality of applications 21 in the terminal device 2 based on the agent 22 is described.
After the agent 22 is successfully started, a specific timing task may be started, for example, the running state information of the CPU usage rate, the memory usage rate, the disk usage rate, the electric quantity information, the installed application program in the terminal device, the version thereof, and the like of the terminal device 2 may be collected every 5 seconds, and the collected running state information may be cached in the agent database. For example, every minute, the running state information collected in the minute is uploaded to the control background 1 through the communication connection established between the control background 1 and the control background 1, if the uploading is successful, the corresponding running state information which is sent is deleted from the proxy database, and if the uploading is not successful, the next time of continuing the uploading is waited.
Accordingly, the control background 1 receives and monitors the operation state information transmitted from the agent 22. Specifically, when the agent 22 uploads the operation status information, description information such as a corresponding terminal device identifier, data collection time, and index name is further added to determine the uniqueness of the data. Specifically, if the control background 1 finds that the corresponding running state information already exists in the background database based on the description information, the corresponding running state information is not written into the background database.
Based on this embodiment, the control background 1 may monitor the running states of the terminal device and the application program in time through the agent, so as to send the abnormality of the terminal device and the application program in time, and perform corresponding processing.
Fig. 2 is a flowchart of an embodiment of a proxy-based data communication method according to an embodiment of the present invention, where the proxy-based data communication method according to this embodiment may be executed by a proxy in the proxy-based data communication system. As shown in fig. 2, the method comprises the steps of:
step 401, the agent establishes a first communication connection with the control background according to a pre-stored communication address of the control background.
Step 402, the agent establishes a second communication connection with the plurality of application programs respectively according to the pre-stored identifiers of the plurality of application programs in the terminal equipment.
Step 403, the agent performs data communication processing between the control background and the plurality of application programs according to the first communication connection, the second communication connection and a preset service interface set, where a service interface in the preset service interface set corresponds to a service set provided by the plurality of application programs.
The data communication method based on the proxy provided in this embodiment is only an explanation of how to implement data communication between the control background and the application program in the terminal device based on the proxy, and details that are not described in detail may refer to relevant explanations in the foregoing embodiments, and are not described herein again.
The above-described system embodiments are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and certainly, the embodiments can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., which includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (9)

1. An agent-based data communication system, comprising:
the system comprises a control background, a terminal device, a plurality of application programs installed in the terminal device and an agent installed in the terminal device; wherein,
the agent is provided with identifiers of the plurality of application programs and is used for establishing communication connection with the plurality of application programs according to the identifiers of the application programs;
the agent is used for storing the communication address of the control background and establishing communication connection with the control background according to the communication address of the control background;
the agent is provided with a service interface set, and service interfaces in the service interface set correspond to service sets provided by the application programs.
2. The system according to claim 1, wherein the agent further stores therein an identifier of the terminal device and a communication address of the terminal device, and the agent is further configured to send a connection request to the control backend according to the communication address of the control backend, where the connection request includes the identifier of the terminal device and the communication address of the terminal device;
and the control background is used for establishing communication connection with the agent according to the connection request and adding communication connection information corresponding to the identifier of the terminal equipment in a connection pool.
3. The system of claim 2, wherein the agent is further configured to:
sending a heartbeat message to the control background at a preset time interval, wherein the heartbeat message contains the identifier of the terminal equipment;
the control backend is further to: responding to the heartbeat message, inquiring whether the communication connection information corresponding to the identifier of the terminal equipment is contained in the connection pool, if not, adding the communication connection information in the connection pool, and if so, modifying the updating time of the communication connection information.
4. The system of claim 3, wherein the control back-office is further configured to:
and if the heartbeat message sent by the agent is not received within the preset time or an offline notification message sent by the agent is received, deleting the communication connection information in the connection pool.
5. The system of any of claims 1 to 4, wherein the control back-end is further configured to:
receiving a data communication request triggered by a user, wherein the data communication request comprises an identifier of the terminal equipment, an application identifier and a service interface identifier;
inquiring the communication connection information from the connection pool according to the identifier of the terminal equipment so as to send the data communication request to the agent according to the communication connection information and the service interface corresponding to the service interface identifier;
the agent is further to: and sending the data communication request to the application program corresponding to the application identifier through the service interface corresponding to the service interface identifier.
6. The system of any of claims 1-4, wherein the agent is further configured to:
receiving a data communication request sent by any application program in the plurality of application programs through a service interface;
and sending the data communication request to the control background through the service interface.
7. The system of any of claims 1-4, wherein the agent is further configured to:
collecting the running state information of the plurality of application programs and/or the terminal equipment at a first preset time interval;
caching the running state information into an agent database;
and reading the running state information stored in the corresponding time from the agent database at a second preset time interval, and sending the running state information to the control background, wherein the second preset time interval is greater than the first preset time interval.
8. The system of claim 7, wherein the agent is further configured to:
if the transmission is successful, deleting the running state information from the proxy database;
and if the transmission is unsuccessful, delaying to the next transmission time to retransmit the running state information.
9. A method for proxy-based data communication, comprising:
establishing a first communication connection with a control background according to a pre-stored communication address of the control background;
establishing second communication connection with a plurality of application programs respectively according to the pre-stored identifiers of the application programs in the terminal equipment;
and performing data communication processing between the control background and the plurality of application programs according to the first communication connection, the second communication connection and a preset service interface set, wherein service interfaces in the preset service interface set correspond to service sets provided by the plurality of application programs.
CN201710221440.3A 2017-04-06 2017-04-06 Data communication system and method based on agency Active CN106993043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710221440.3A CN106993043B (en) 2017-04-06 2017-04-06 Data communication system and method based on agency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710221440.3A CN106993043B (en) 2017-04-06 2017-04-06 Data communication system and method based on agency

Publications (2)

Publication Number Publication Date
CN106993043A true CN106993043A (en) 2017-07-28
CN106993043B CN106993043B (en) 2019-11-05

Family

ID=59415403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710221440.3A Active CN106993043B (en) 2017-04-06 2017-04-06 Data communication system and method based on agency

Country Status (1)

Country Link
CN (1) CN106993043B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120473A (en) * 2018-07-27 2019-01-01 广州市百果园信息技术有限公司 Interface requests framework implementation method, interface test method and its corresponding device
CN109639648A (en) * 2018-11-19 2019-04-16 中国科学院信息工程研究所 A kind of acquisition strategies generation method and system based on acquisition data exception
CN111262897A (en) * 2018-12-01 2020-06-09 阿里巴巴集团控股有限公司 Service call routing processing method, device and system
CN112367348A (en) * 2020-09-23 2021-02-12 北京迈格威科技有限公司 Data acquisition method, device, equipment and medium
CN112827183A (en) * 2021-03-03 2021-05-25 网易(杭州)网络有限公司 Game data processing method and device
CN114090338A (en) * 2021-11-19 2022-02-25 中国银行股份有限公司 Request processing method and device and electronic equipment
CN117272284A (en) * 2023-09-13 2023-12-22 河北纬坤电子科技有限公司 Application program management and control system, method, application server and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825826A (en) * 2006-04-05 2006-08-30 中国科学院研究生院 System and method based on internet access and shared remote apparatus
CN103797720A (en) * 2011-09-12 2014-05-14 爱尔比奎特公司 Mobile intergration platform (MIP) integrated handset application proxy (HAP)
WO2015187865A1 (en) * 2014-06-03 2015-12-10 Kaprica Security, Inc. High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1825826A (en) * 2006-04-05 2006-08-30 中国科学院研究生院 System and method based on internet access and shared remote apparatus
CN103797720A (en) * 2011-09-12 2014-05-14 爱尔比奎特公司 Mobile intergration platform (MIP) integrated handset application proxy (HAP)
WO2015187865A1 (en) * 2014-06-03 2015-12-10 Kaprica Security, Inc. High-speed application for installation on mobile devices for permitting remote configuration of such mobile devices

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120473A (en) * 2018-07-27 2019-01-01 广州市百果园信息技术有限公司 Interface requests framework implementation method, interface test method and its corresponding device
CN109639648A (en) * 2018-11-19 2019-04-16 中国科学院信息工程研究所 A kind of acquisition strategies generation method and system based on acquisition data exception
CN109639648B (en) * 2018-11-19 2020-07-07 中国科学院信息工程研究所 Acquisition strategy generation method and system based on acquired data abnormity
CN111262897A (en) * 2018-12-01 2020-06-09 阿里巴巴集团控股有限公司 Service call routing processing method, device and system
CN111262897B (en) * 2018-12-01 2022-06-14 阿里巴巴集团控股有限公司 Service call routing processing method, device and system
CN112367348A (en) * 2020-09-23 2021-02-12 北京迈格威科技有限公司 Data acquisition method, device, equipment and medium
CN112827183A (en) * 2021-03-03 2021-05-25 网易(杭州)网络有限公司 Game data processing method and device
CN112827183B (en) * 2021-03-03 2024-06-04 网易(杭州)网络有限公司 Game data processing method and device
CN114090338A (en) * 2021-11-19 2022-02-25 中国银行股份有限公司 Request processing method and device and electronic equipment
CN114090338B (en) * 2021-11-19 2024-10-08 中国银行股份有限公司 Request processing method and device and electronic equipment
CN117272284A (en) * 2023-09-13 2023-12-22 河北纬坤电子科技有限公司 Application program management and control system, method, application server and medium
CN117272284B (en) * 2023-09-13 2024-04-12 河北纬坤电子科技有限公司 Application program management and control system, method, application server and medium

Also Published As

Publication number Publication date
CN106993043B (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN106993043B (en) Data communication system and method based on agency
US8838703B2 (en) Method and system for message processing
CN108712485B (en) Resource subscription method and device for Internet of things equipment
CN110389815A (en) Task processing method, apparatus and system
CN107357571B (en) Maintenance method and system for equipment component program
US9237077B2 (en) Monitoring persistent client connection status in a distributed server environment
KR20080024481A (en) Method and system for the remote management of a machine via ip links of an ip multimedia subsystem, ims
JP2001331387A (en) Repeater, mobile radio communication system, fault reporting method therefor and recording medium with fault report program therefor recorded thereon
CN110109766B (en) Data interaction method and device based on cross-department and cross-platform data sharing exchange
CN111510325B (en) Alarm information pushing method, server, client and system
CN112653577A (en) Network element management method, device and storage medium
CN115951923B (en) Subscription event management method, display system, device and storage medium
CN108337308A (en) LWM2M clients and host computer data communications method, device and its system
CN110809262B (en) COAP protocol-based operation and maintenance management method for Internet of things equipment
CN112087327A (en) Information state acquisition method and apparatus, storage medium, and electronic apparatus
CN116319732A (en) Message queue centralized configuration management system and method based on RabbitMQ
CN114302350B (en) Service provider failover method and device, electronic equipment and storage medium
KR100702704B1 (en) Notification System and Method Using Messenger
CN107707689A (en) A kind of DHCP message processing method, Dynamic Host Configuration Protocol server and gateway device
WO2024103943A1 (en) Service processing method and apparatus, storage medium, and device
CN100359865C (en) Detecting method
US8335795B2 (en) Data storing system and data processing method of informational household appliance
CN114157725B (en) Method, device, server, electronic equipment and storage medium for equipment linkage
CN113965447B (en) Online cloud diagnosis method, device, system, equipment and storage medium
CN114679472A (en) Communication system, method, apparatus, storage medium, and electronic 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 402, Building 33 Guangshun Road, Changning District, Shanghai, 2003

Applicant after: SHANGHAI MROBOT TECHNOLOGY Co.,Ltd.

Address before: Room 402, Building 33 Guangshun Road, Changning District, Shanghai, 2003

Applicant before: SHANGHAI MUYE ROBOT TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 200336 402 rooms, No. 33, No. 33, Guang Shun Road, Shanghai

Patentee after: Shanghai zhihuilin Medical Technology Co.,Ltd.

Address before: 200336 402 rooms, No. 33, No. 33, Guang Shun Road, Shanghai

Patentee before: Shanghai Zhihui Medical Technology Co.,Ltd.

Address after: 200336 402 rooms, No. 33, No. 33, Guang Shun Road, Shanghai

Patentee after: Shanghai Zhihui Medical Technology Co.,Ltd.

Address before: 200336 402 rooms, No. 33, No. 33, Guang Shun Road, Shanghai

Patentee before: SHANGHAI MROBOT TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 202150 room 205, zone W, second floor, building 3, No. 8, Xiushan Road, Chengqiao Town, Chongming District, Shanghai (Shanghai Chongming Industrial Park)

Patentee after: Shanghai Noah Wood Robot Technology Co.,Ltd.

Address before: 200336 402 rooms, No. 33, No. 33, Guang Shun Road, Shanghai

Patentee before: Shanghai zhihuilin Medical Technology Co.,Ltd.