Communication protocol conversion method, and device, system, and gateway device
Abstract
The present disclosure discloses a communication protocol conversion method, a device, a system, and a gateway device, which are used to provide a general communication protocol conversion method. The method includes: receiving at least one network request message sent by a communication device for establishing a communication connection with a third-party system; determining, from within a configuration rule set, a configuration rule corresponding to the network request message, where the configuration rule set comprises configuration rules for communication protocols of different third-party systems; performing communication protocol conversion on the network request message according to the configuration rule; and sending the network request message after the communication protocol conversion to a corresponding third-party system.
Claims
exact text as granted — not AI-modified1 - 28 . (canceled)
29 . A communication protocol conversion method, comprising:
receiving at least one network request message for establishing a communication connection with a third-party system sent by a communication device; determining a configuration rule corresponding to the network request message from a set of configuration rules, wherein the set of configuration rules comprises configuration rules of communication protocols of different third-party systems; performing a communication protocol conversion on the network request message according to the configuration rule; and sending the network request message after the communication protocol conversion to a corresponding third-party system.
30 . The method according to claim 29 , further comprising:
receiving at least one network request message for establishing a communication connection with a non-third-party system sent by the communication device; and directly sending the network request message to the non-third-party system.
31 . The method according to claim 29 , further comprising:
receiving the network request message sent by the communication device; and determining that the network request message is a network request message for establishing a communication connection with a third-party system, or determining that the network request message is a network request message for establishing a communication connection with a non-third-party system.
32 . The method according to claim 29 , wherein the determining the configuration rule corresponding to the network request message from the set of configuration rules, comprises:
determining the configuration rule corresponding to route information from the set of configuration rules according to the route information carried in the network request message.
33 . The method according to claim 32 , wherein,
the configuration rule is in a one-to-one correspondence with the route information; or, multiple pieces of route information correspond to a same one configuration rule.
34 . The method according to claim 33 , wherein the determining the configuration rule corresponding to the route information from the set of configuration rules according to the route information carried in the network request message, comprises:
determining the third-party system corresponding to the route information according to the route information carried in the network request message; and determining the configuration rule corresponding to the third-party system from the set of configuration rules.
35 . The method according to claim 29 , wherein the performing a communication protocol conversion on the network request message according to the configuration rule, comprises:
obtaining a process of protocol conversion by instantiating protocol conversion rules in the configuration rule; and performing the communication protocol conversion on the network request message via the process of protocol conversion.
36 . The method according to claim 35 , wherein the instantiating the protocol conversion rules in the configuration rule, comprises:
in a case that the configuration rule comprises a software development kit file of the third-party system, loading the software development kit file of the third-party system via a class loader to obtain a process of executing the software development kit file, wherein the software development kit file is in a one-to-one correspondence with the third-party system.
37 . The method according to claim 36 , wherein the performing the communication protocol conversion on the network request message via the process of protocol conversion, comprises:
performing digital signature and encryption on the network request message via the process of executing the software development kit file.
38 . The method according to claim 29 , wherein the sending the network request message after the communication protocol conversion to the corresponding third-party system, comprises:
sending the network request message after the communication protocol conversion to the third-party system corresponding to route information according to the route information carried in the network request message or wherein after the sending the network request message after the communication protocol conversion to the corresponding third-party system, the method further comprises: receiving a network response message from the third-party system, and determining a configuration rule of the third-party system from the set of configuration rules; performing the communication protocol conversion on the network response message according to the configuration rule; and sending the network response message after the communication protocol conversion to the communication device.
39 . The method according to claim 38 , wherein the performing the communication protocol conversion on the network response message according to the configuration rule, comprises:
obtaining a process of protocol conversion by instantiating protocol conversion rules in the configuration rule; and performing the communication protocol conversion on the network response message via the process of protocol conversion.
40 . The method according to claim 29 , wherein after receiving the at least one network request message for establishing the communication connection with the third-party system sent by the communication device, the method further includes:
determining access token information in the configuration rule corresponding to the network request message; and periodically sending a connection request message for maintaining a session connection to the third-party system according to the access token information.
41 . The method according to claim 40 , wherein after the periodically sending the connection request message for maintaining the session connection to the third-party system, the method further comprises:
receiving a access token from the third-party system, accessing a probing interface of the third-party system according to a preset period, and determining the validity of the access token.
42 . The method according to claim 41 , wherein after the determining the validity of the access token, the method further comprises:
in a case that the access token is invalid, prompting a user through a display interface that the access token of the third-party system is invalid; in a case that the access token is invalid, reacquiring a valid access token of the third-party system, and updating the access token of the third-party system in the configuration rule by using the valid access token.
43 . The method according to claim 42 , wherein the reacquiring the valid access token of the third-party system, comprises:
resending a connection request message for maintaining a session connection to the third-party system according to the access token information in the configuration rule corresponding to the network request message; and receiving the valid access token from the third-party system.
44 . The method according to claim 29 , further comprising:
receiving at least one instruction of deleting, modifying, or adding a configuration rule from a user through a display interface.
45 . The method according to claim 44 , further comprising:
receiving at least one instruction of the user performing a touch operation or a voice control operation on the configuration rule on the display interface, and triggering the execution of an operation corresponding to the instruction on the configuration rule; or, receiving at least one instruction of the user performing a touch operation or a voice control operation on the configuration rule in a pop-up window on the display interface, and triggering the execution of an operation corresponding to the instruction on the configuration rule.
46 . The method according to claim 44 , wherein after the receiving at least one instruction of deleting, modifying, or adding the configuration rule from the user through the display interface, the method further comprises:
receiving a database synchronization instruction triggered by the user through the display interface, and updating the set of configuration rules; or, updating the set of configuration rules according to a preset period.
47 . The method according to claim 46 , wherein the updating the set of configuration rules, comprises:
in a case that a change of a configuration rule in the set of configuration rules is monitored through a monitoring process, notifying an update process to update the set of configuration rules; or, storing the set of configuration rules in a message queue and monitoring content of the message queue, and updating the content of the message queue in a case that a change of a configuration rule in the set of configuration rules is monitored.
48 . The method according to claim 45 , wherein the updating the set of configuration rules, comprises:
in a case that a new configuration rule exists, updating the set of configuration rules according to the new configuration rule; or, in a case that a configuration rule in the set of configuration rules is deleted, updating the set of configuration rules according to the deleted configuration rule; or, in a case that a configuration rule in the set of configuration rules is modified, updating the set of configuration rules according to the modified configuration rule.Join the waitlist — get patent alerts
Track US2024214472A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.