Information processing method, server, serial port equipment and storage medium
By implementing information processing methods on the business server, including receiving logical link establishment instructions, obtaining target device identification and establishing target communication links, the problem of low intelligence in multi-terminal management is solved, and cluster management and platform management of terminals and remote serial devices are realized.
Patent Information
- Application Number
- CN202311471497.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-06
- Publication Date
- 2025-05-06
AI Technical Summary
When multiple terminals have faults or need to be managed, it is difficult for the prior art to realize intelligent management of terminals, especially when there are many terminals, fault relief processing is required in turn, reducing management intelligence.
By implementing an information processing method on the service server, it includes receiving logical link establishment instructions, obtaining the target device identification, determining the target device, and establishing a target communication link between the target device and the first remote serial port device. This method allows the service server to manage multiple remote serial devices and terminals, realizing cluster management and platform management of IoT devices.
It improves intelligence when managing multiple terminals, realizes centralized management of remote serial devices and terminals, and improves the platform management capabilities of IoT devices.
Smart Images

Figure CN119945872A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an information processing method, a server, a serial port device, and a storage medium. Background Art
[0002] With the development of communication technology, rapid transmission of information has been achieved and the processing speed of communication services has been improved.
[0003] In the related art, when a terminal fails or needs to be managed, the terminal needs to be processed to resolve the fault in the terminal. When there are multiple terminals, multiple terminals need to be processed for fault resolution in turn, which reduces the intelligence of terminal management. Summary of the invention
[0004] In order to solve the above technical problems, the embodiments of the present application hope to provide an information processing method and a server, a serial port device, and a storage medium, which can improve the intelligence when managing multiple terminals.
[0005] The technical solution of this application is implemented as follows:
[0006] The present application provides an information processing method, which is applied to a service server. The information processing method includes:
[0007] When receiving a logical link establishment instruction, obtaining a target device identifier from the logical link establishment instruction; the logical link establishment instruction is an instruction transmitted by an administrator, or an instruction transmitted by a first remote serial port device; the first remote serial port device is a device connected to a terminal;
[0008] Determine the target device according to the target device identifier;
[0009] A target communication link is established between the target device and the first remote serial port device.
[0010] The present application embodiment further provides an information processing method, which is applied to a first remote serial port device. The information processing method includes:
[0011] Upon receiving an instruction to establish a serial port connection, determining a target device for connection;
[0012] Acquire a target device identifier of the target device, and generate a logical link establishment instruction including the target device identifier;
[0013] The logical link establishment instruction is transmitted to the service server to establish the target communication link according to the logical link establishment instruction.
[0014] The embodiment of the present application provides a service server, including:
[0015] a first acquisition unit, configured to acquire a target device identifier from the logical link establishment instruction when receiving the logical link establishment instruction; the logical link establishment instruction is an instruction transmitted by an administrator, or an instruction transmitted by a first remote serial port device; the first remote serial port device is a device connected to a terminal;
[0016] A first determining unit, configured to determine a target device according to the target device identifier;
[0017] An establishing unit is used to establish a target communication link between the target device and the first remote serial port device.
[0018] The embodiment of the present application provides a first remote serial port device, including:
[0019] A second determining unit is used to determine a target device for connection when receiving an instruction to establish a serial port connection;
[0020] A second acquiring unit, configured to acquire a target device identifier of the target device;
[0021] A first generating unit, configured to generate a logical link establishment instruction including the target device identifier;
[0022] The first transmission unit is used to transmit a logical link establishment instruction to the service server, so as to establish a target communication link according to the logical link establishment instruction.
[0023] The embodiment of the present application provides a service server, wherein the service server includes:
[0024] A first memory, a first processor and a first communication bus, wherein the first memory communicates with the first processor via the first communication bus, the first memory stores information processing programs executable by the first processor, and when the information processing program is executed, the above-mentioned information processing method applied to the business server is executed by the first processor.
[0025] An embodiment of the present application provides a first remote serial port device, wherein the first remote serial port device includes:
[0026] A second memory, a second processor and a second communication bus, wherein the second memory communicates with the second processor via the second communication bus, and the second memory stores an information processing program executable by the second processor. When the information processing program is executed, the information processing method applied to the first remote serial port device described above is executed by the second processor.
[0027] An embodiment of the present application provides a storage medium on which a computer program, a business server and a first remote serial port device are stored, characterized in that when the computer program is executed by a first processor, the method applied to the business server as described above is implemented; when the computer program is executed by a second processor, the information processing method applied to the first remote serial port device as described above is implemented.
[0028] The embodiment of the present application provides an information processing method and a server, a serial port device, and a storage medium. The information processing method includes: when receiving a logical link establishment instruction, obtaining a target device identifier from the logical link establishment instruction; the logical link establishment instruction is an instruction transmitted by an administrator, or an instruction transmitted by a first remote serial port device; the first remote serial port device is a device connected to a terminal; the target device is determined according to the target device identifier; and a target communication link is established between the target device and the first remote serial port device. The above method is adopted to implement the scheme. The business server establishes a target communication link with the first remote serial port device, so that the data collection, processing and terminal control capabilities of the processing unit in the business server can be utilized to manage the first remote serial port device and the terminal connected to the first remote serial port device. When the number of the first serial port device and the number of terminals are multiple, cluster management of multiple terminals of the same type can be achieved, thereby realizing platform management of IoT devices and improving the intelligence when managing the first remote serial port device and multiple terminals. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 An information processing method provided in the embodiment of the present application Figure 1 ;
[0030] Figure 2 A schematic diagram of an exemplary embodiment of the present application providing two remote serial port modules paired to establish a cross-regional virtual serial port channel;
[0031] Figure 3 A schematic diagram of an exemplary two-remote serial port module transfer link provided in an embodiment of the present application;
[0032] Figure 4 A schematic diagram of an exemplary direct link between two remote serial port modules provided in an embodiment of the present application;
[0033] Figure 5 A schematic diagram of an exemplary cluster management mode provided in an embodiment of the present application;
[0034] Figure 6 A schematic diagram of an exemplary data push mode provided in an embodiment of the present application;
[0035] Figure 7A schematic diagram of each network element involved in an exemplary cluster management mode and its main functional modules and relationship structure provided in an embodiment of the present application;
[0036] Figure 8 A schematic diagram of each network element involved in an exemplary data push mode and its main functional modules and relationship structure provided in an embodiment of the present application;
[0037] Fig. 9 An information processing method provided in the embodiment of the present application Figure 2 ;
[0038] Fig.10 A schematic diagram of an exemplary remote serial port module structure provided in an embodiment of the present application;
[0039] Fig.11 A schematic diagram of an exemplary functional module in a remote serial port module and their interrelationships provided in an embodiment of the present application;
[0040] Fig.12 A schematic diagram of the relationship between an exemplary overall system (module, peer device, server) provided in an embodiment of the present application;
[0041] Fig.13 A schematic diagram of the upper and lower level relationship of a serial port submodule in a remote serial port module provided in an exemplary embodiment of the present application;
[0042] Fig.14 A schematic diagram of the superior-subordinate relationship of a data processing submodule in a remote serial port module provided in an exemplary embodiment of the present application;
[0043] Fig.15 A schematic diagram of the superior-subordinate relationship of a network module in a remote serial port module provided in an exemplary embodiment of the present application;
[0044] Fig.16 A schematic diagram of the internal module relationship of a management module in an exemplary remote serial port module provided in an embodiment of the present application;
[0045] Fig.17 A schematic diagram of the state meanings and mutual conversion conditions of an exemplary remote serial port module provided in an embodiment of the present application;
[0046] Fig.18 An exemplary timing diagram after the remote serial port is powered on provided in an embodiment of the present application;
[0047] Fig.19 An exemplary local configuration timing diagram provided for an embodiment of the present application;
[0048] Fig. 20A schematic diagram of an exemplary timing sequence of an operator performing configuration from a server provided in an embodiment of the present application;
[0049] Fig.21 An exemplary timing diagram of creating a virtual serial port link between terminal 1 and terminal 2 provided in an embodiment of the present application;
[0050] Fig. 22 An exemplary timing sequence of three disconnection operations provided in the embodiment of the present application Figure 1 ;
[0051] Fig.23 A schematic diagram of an exemplary server transfer link provided in an embodiment of the present application;
[0052] Fig.24 An exemplary timing sequence of three disconnection operations provided in the embodiment of the present application Figure 2 ;
[0053] Fig.25 An exemplary link establishment timing diagram of a cluster management mode provided in an embodiment of the present application;
[0054] Fig.26 An exemplary link establishment timing diagram of a cluster-data push mode provided in an embodiment of the present application;
[0055] Fig. 27 A schematic diagram of a link establishment timing of an exemplary cluster-data interaction mode provided in an embodiment of the present application;
[0056] Fig.28 A schematic diagram of an exemplary remote device debugging scenario provided in an embodiment of the present application;
[0057] Fig.29 A schematic diagram of an exemplary device functional component scenario provided for an embodiment of the present application;
[0058] Fig.30 A schematic diagram of an exemplary intelligent terminal expansion scenario provided in an embodiment of the present application;
[0059] Fig.31 A schematic diagram of an exemplary Internet of Things platform scenario provided for an embodiment of the present application;
[0060] Fig.32 A schematic diagram of the structure of a service server provided in an embodiment of the present application Figure 1 ;
[0061] Fig.33 A schematic diagram of the structure of a service server provided in an embodiment of the present application Figure 2 ;
[0062] Fig.34 A schematic diagram of the composition structure of a first remote serial port device provided in an embodiment of the present application Figure 1 ;
[0063] Fig.35 A schematic diagram of the composition structure of a first remote serial port device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
[0065] The present application embodiment provides an information processing method, which is applied to a business server. Figure 1 A flow chart of an information processing method provided in an embodiment of the present application, such as Figure 1 As shown, the information processing method may include:
[0066] S101. Upon receiving a logical link establishment instruction, obtain a target device identifier from the logical link establishment instruction; the logical link establishment instruction is an instruction transmitted by an administrator, or an instruction transmitted by a first remote serial port device; the first remote serial port device is a device connected to a terminal.
[0067] An information processing method provided in an embodiment of the present application is applicable to a scenario in which a target communication link is established between a target device and a first remote serial port device.
[0068] In the embodiments of the present application, the business server may be implemented in various forms, which may be specifically determined based on actual conditions, and the embodiments of the present application do not limit this.
[0069] In an embodiment of the present application, the logical link establishment instruction can be an instruction input into the business server by an administrator, or it can be an instruction transmitted to the business server by other devices, or it can be an instruction obtained by the business server in other ways. The specific way in which the business server obtains the logical link establishment instruction can be determined based on actual conditions, and the embodiment of the present application does not limit this.
[0070] It should be noted that if the logical link establishment instruction is an instruction input by the administrator into the service server, the service server may receive the instruction input by the administrator. If the logical link establishment instruction is an instruction transmitted from other devices to the service server, it may be an instruction transmitted from the first remote serial port device to the service server.
[0071] In the embodiment of the present application, the target device identifier is the identification information of the target device, which can be text information, digital information, or other forms of information. The specific identification information can be determined based on actual conditions, and the embodiment of the present application does not limit this.
[0072] In an embodiment of the present application, a business server is used together with a first remote serial port device, or a business server together with multiple remote serial port devices, to support serial port communication and related data processing of terminal devices. The business server is mainly responsible for module management, connection support, business processing and serial port device Internet of Things. Among them, module management includes: device activation management, blacklist processing, login authentication, and connection support. Connection support includes: sending the login information of the opposite device to the remote serial port module after login; providing forwarding services for remote serial port modules that cannot be directly connected; performing protocol conversion to convert serial port-based data interaction into standard network communication. Business processing includes: an integrated logic processing unit that can connect to the target device through a virtual serial port line and process related business data; supporting data push, which can push the business data collected from the terminal device transmitted by the remote serial port device to the designated server after processing. The serial port device Internet of Things is used to provide serial port device Internet of Things capabilities and provide a unified interface for serial port device access and management.
[0073] It should be noted that the remote serial port module is the remote serial port device. The login information includes the address, port, data compression, encryption and other transmission methods.
[0074] It should be noted that the peer device is a remote serial port module paired with the current remote serial port module.
[0075] It should be noted that the non-directly connectable remote serial port module pair refers to two remote serial port devices that are not directly connectable.
[0076] In an embodiment of the present application, a module (first remote serial port device) can establish a target communication link with a module (second remote serial port device, i.e., a target device); the module (first remote serial port device) can also establish a target communication link with a server (business server); the module (first remote serial port device) can also establish a target communication link with an external server (target device) through a business server to mix multiple working modes.
[0077] In the embodiment of the present application, after two remote serial port modules are paired (configured locally or by a server after device activation), a cross-regional virtual serial port channel (target communication link) can be established through the network. Figure 2As shown, this channel (Network) can be established through a direct connection (direct link) between devices (two remote serial port devices, namely serial port module 1 and serial port module 2), or through a business server transit (transit link). Serial port module 1 is connected to terminal 1 through a serial port link, and serial port module 2 is connected to terminal 2 through a serial port link; terminal 1 and terminal 2 communicate over the network through the target communication link established between serial port module 1 and serial port module 2.
[0078] It should be noted that Figure 2 In the example, through the channel established between serial port module 1 (the first remote serial port device) and serial port module 2 (the second remote serial port device), two devices in different places, namely terminal 1 and terminal 2, can directly communicate through serial ports, and they are completely unaware of the underlying network elements (serial port modules, service servers).
[0079] In the embodiment of the present application, when a direct link cannot be established between serial port devices due to various factors, a virtual serial port link (target communication link) can be established through data transfer by the service server. The various logic modules involved in the process of establishing the target communication link are as follows: Figure 3 As shown. Specifically, remote serial port device 1 (first remote serial port device) includes a management module, a compression / decompression module, an encryption / decryption (module), a serial port module, a data frame processing (module) and a network module; remote serial port device 2 (first remote serial port device) includes a management module, a compression / decompression module, an encryption / decryption (module), a serial port module, a data frame processing (module) and a network module; the business server includes a network interface 1, a network interface 2 and a data forwarding module. Terminal 1 is connected to remote serial port device 1 through the serial port module in remote serial port device 1, and terminal 2 is connected to remote serial port device 2 through the serial port module in remote serial port device 2.
[0080] In the embodiment of the present application, under the condition of network permission, paired serial port devices (remote serial port devices) can be directly connected to create a virtual serial port link (target communication link). Figure 4 As shown: the network module in the remote serial port device 1 is connected to the network module in the remote serial port device 2 to form a target communication link.
[0081] In the embodiment of the present application, the serial port module can also be connected to the service server, and all the data from the terminal is handed over to the corresponding processing unit in the service server for service processing; after the data is processed, the processing result is fed back to the terminal device. The connection between the serial port module and the service server includes two sub-modes: cluster management mode (such as Figure 5 as shown) and data push mode (as shown Figure 6 shown).
[0082] It should be noted that Figure 5 The terminals (terminal 1, terminal 2, ..., terminal n) are connected to the corresponding remote serial port devices (serial port device 1, serial port device 2, ..., serial port device n) through serial port links, the remote serial port devices (serial port device 1, serial port device 2, ..., serial port device n) are connected to the business server through a direct link, and the business server interacts with the internal processing units (Unit1, Unit2, ..., Unit n) in a two-way manner. With the cooperation of the business server, all terminals (terminal 1, terminal 2, ..., terminal n) are centrally managed by the business processing units (Unit1, Unit2, ..., Unit n) inside the server (business server) through the corresponding remote serial port devices (serial port device 1, serial port device 2, ..., serial port device n), so that the server cluster manages multiple remote terminals. In this working mode, the network elements involved and their main functional modules and relationships are as follows: Figure 7 As shown: Terminal 1 is connected to the first end of the serial port module in the remote serial port device 1 (serial port device 1), the second end of the serial port module in the remote serial port device 1 is connected to the first end of the network module through encryption / decryption (module), compression / decompression (module), and data frame processing (module), the second end of the network module is connected to the first end of the access port of the service server, the second end of the access port is connected to the first end of the data processing and forwarding control (unit) in the service server, and the second end of the data processing and forwarding control (unit) is connected to the internal processing unit in the service server. Among them, the data processing and forwarding control (unit) includes encryption / decryption (module), compression / decompression (module), data frame processing (module) and forwarding control (module); the internal processing unit includes Unit1, Unit2, ..., Unit n. Terminal 2 is connected to the access port of the service server through serial port device 2; Terminal 3 is connected to the access port of the service server through serial port device 3; ...; Terminal n is connected to the access port of the service server through serial port device n.
[0083] In the embodiment of the present application, the data push mode is derived from the cluster management mode. The difference between the data push mode and the cluster mode is that: after the data from the terminal is processed by the internal processing unit of the business server, the data is pushed unidirectionally to the external target server, or the data is pushed to the external target server, and the data from the external server is processed by the task processing unit and pushed to the corresponding terminal.
[0084] In the embodiment of the present application, the data push mode is as follows: Figure 6As shown: When the system works in data push mode, the data from the terminal (terminal 1, terminal 2, ..., terminal n) will eventually be pushed to the external server (serve) through the corresponding remote serial port device (serial port device 1, serial port device 2, ..., serial port device n) and the business server; and the data from the external server will also be forwarded to the corresponding target terminal. In this way, a transparent, end-to-end data interaction channel (target communication link) can be built between the terminal device and the external server. In this working mode, the network elements involved and their main functional modules and relationships are as follows: Figure 8 As shown: terminal 1 is connected to the first end of the serial port module in the remote serial port device 1, the second end of the serial port module in the remote serial port device 1 is connected to the first end of the network module through encryption / decryption (module), compression / decompression (module), and data frame processing (module), the second end of the network module is connected to the first end of the access port of the service server, the second end of the access port is connected to the first end of the data processing and forwarding control (unit) in the service server, the second end of the data processing and forwarding control (unit) is connected to the first end of the external interface through the internal processing unit and the outgoing data protocol processing (unit) in the service server, and the second end of the external interface is connected to the external server. Among them, the data processing and forwarding control (unit) includes encryption / decryption (module), compression / decompression (module), data frame processing (module) and forwarding control (module); the internal processing unit includes Unit1, Unit2, ..., Unit n; the outgoing data protocol processing (unit) includes encryption / decryption (module), compression / decompression (module), data frame processing (module) and forwarding control (module). Terminal 2 is connected to the access port of the business server through remote serial port device 2; terminal 3 is connected to the access port of the business server through remote serial port device 3; ...; terminal n is connected to the access port of the business server through remote serial port device n.
[0085] It should be noted that in Figure 8 In the protocol processing unit for sending data outward (outgoing data protocol processing), the sub-items (encryption / decryption (module), compression / decompression (module), data frame processing (module), and forwarding control (module)) are only the functional modules that may be used in the standard processing logic. This part is closely related to the external server that is actually connected. In actual use, the protocol processing unit for sending data outward needs to be configured accordingly according to the interface type, parameters, and other information of the external server that needs to be connected.
[0086] In an embodiment of the present application, when the business server receives a logical link establishment instruction, before obtaining the target device identifier from the logical link establishment instruction, when the business server receives a login instruction transmitted by the first remote serial port device, the business server obtains the first device identifier of the first remote serial port device from the login instruction; when the first remote serial port device is successfully authenticated according to the first device identifier, the business server sends third response information of successful authentication to the first remote serial port device; when the first device information sent by the first remote serial port device is received, the business server determines the target device corresponding to the first remote serial port device; obtains the target device information of the target device; sends the target device information to the first remote serial port device, and sends the first device information to the target device, so that the first remote serial port device performs an initialization process according to the target device information, and the target device performs an initialization process according to the first device information.
[0087] In an embodiment of the present application, the business server can obtain the target device information from a database, or by sending a target device information acquisition instruction to the target device, or by other means. The specific way in which the business server obtains the target device information can be determined based on actual conditions, and the embodiment of the present application does not limit this.
[0088] It should be noted that the target device information also includes information such as the encryption method, key, and certificate of the first remote serial port device.
[0089] In the embodiment of the present application, the login instruction carries the first device identifier of the first remote serial port device.
[0090] In the embodiment of the present application, the business server performs authentication operation on the first remote serial port device by determining whether the first remote serial port device is in the white list of the business server. If so, the authentication of the first remote serial port device is successful, otherwise, the authentication of the first remote serial port device fails. The first remote serial port device can also be authenticated in other ways; the specific execution method can be determined according to the actual situation, and the embodiment of the present application does not limit this.
[0091] It should be noted that, when the first remote serial port device is successfully authenticated according to the first device identifier, the service server generates third response information and then transmits the third response information to the first remote serial port device.
[0092] In the embodiment of the present application, the third response information can be character information, information in digital form, or information in other forms. The specific form of the third response information can be determined according to actual conditions, and the embodiment of the present application does not limit this.
[0093] In the embodiment of the present application, the first device information is the device information of the first remote serial port device, wherein the first device information includes the login address, port and other information of the first remote serial port device.
[0094] In the embodiment of the present application, the method for determining the target device corresponding to the first remote serial port device may be that the first device information carries identification information of the target device, and the target device is determined according to the identification information of the target device; or that the login instruction transmitted by the first remote serial port device carries identification information of the target device, and the target device is determined according to the identification information of the target device; or that a target device corresponding to the first remote serial port device is configured, and the corresponding target device can be determined according to the configuration information; or the target device corresponding to the first remote serial port device can be determined by other methods, and the specific determination method can be determined according to actual conditions, and the embodiment of the present application does not limit this.
[0095] In an embodiment of the present application, the process of determining the target device corresponding to the first remote serial port device by the business server includes: determining the second remote serial port device corresponding to the first remote serial port device; correspondingly, the process of obtaining the target device information of the target device includes: obtaining the second device information of the second remote serial port device; correspondingly, sending the target device information to the first remote serial port device, sending the first device information to the target device, so that the first remote serial port device can perform initialization according to the target device information, and the process of the target device performing initialization according to the first device information includes: sending the second device information to the first remote serial port device, sending the first device information to the second remote serial port device, so that the first remote serial port device can perform initialization according to the second device information, and the process of the second remote serial port device performing initialization according to the first device information.
[0096] In the embodiment of the present application, the target device may be a second remote serial port device, the target device may be an external server, or other devices. The specific target device may be determined based on actual conditions, and the embodiment of the present application does not limit this.
[0097] S102: Determine the target device according to the target device identifier.
[0098] In the embodiment of the present application, after the service server obtains the target device identifier from the logical link establishment instruction, it determines the target device according to the target device identifier.
[0099] In the embodiment of the present application, the target device and the target device identifier correspond one to one, that is, one target device corresponds to one target device identifier, and then one target device can be uniquely determined according to one target device identifier.
[0100] S103: Establish a target communication link between the target device and the first remote serial port device.
[0101] In the embodiment of the present application, after the service server determines the target device according to the target device identifier, it establishes a target communication link between the target device and the first remote serial port device.
[0102] In an embodiment of the present application, the process of the business server establishing a target communication link between a target device and a first remote serial port device includes: when the target device is a second remote serial port device, establishing a first communication link with the first remote serial port device; transmitting a logical link establishment instruction to the second remote serial port device; for establishing a second communication link with the second remote serial port device; and using the first communication link and the second communication link as target communication links.
[0103] In the embodiment of the present application, the target communication link includes a first communication link and a second communication link.
[0104] It should be noted that the business server can receive information transmitted by the first remote serial port device through the first communication link, and transmit the information to the second remote serial port device through the second communication link; the business server can also receive information transmitted by the second remote serial port device through the second communication link, and transmit the information to the first remote serial port device through the first communication link, thereby realizing communication between the first remote serial port device and the second remote serial port device.
[0105] In the embodiment of the present application, the method of establishing the first communication link with the first remote serial port device is the method of establishing a communication link in the prior art, which is specifically determined according to actual conditions and is not limited in the embodiment of the present application.
[0106] In the embodiment of the present application, the method of establishing the second communication link with the second remote serial port device is the method of establishing a communication link in the prior art, which is specifically determined according to actual conditions and is not limited in the embodiment of the present application.
[0107] In the embodiment of the present application, the target device may be a second remote serial port device, wherein the second remote serial port device is a remote serial port device different from the first remote serial port device, and the first remote serial port device and the second remote serial port device have the same composition structure.
[0108] In an embodiment of the present application, after the business server transmits a logical link establishment instruction to the second remote serial port device, upon receiving first response information indicating that the second communication link is successfully established transmitted by the second remote serial port device, it generates second response information indicating that the target communication link is successfully established; and transmits the second response information to the first remote serial port device.
[0109] In the embodiment of the present application, the second response information can be character information, information in digital form, or information in other forms. The specific form of the second response information can be determined according to actual conditions, and the embodiment of the present application does not limit this.
[0110] In an embodiment of the present application, when the second communication link between the business server and the second remote serial port device is successfully established, the second remote serial port device generates a first response message indicating that the second communication link is successfully established, and sends the first response message to the business server.
[0111] It should be noted that the first response information may be character information, information in digital form, or information in other forms. The specific form of the first response information may be determined based on actual conditions, and the embodiments of the present application do not limit this.
[0112] In an embodiment of the present application, the process of the business server establishing a target communication link between the target device and the first remote serial port device includes: when the target device is a business server, initializing the processing unit of the business server; when the processing unit is initialized successfully, determining that the target communication link is successfully established.
[0113] In the embodiment of the present application, the target device may also be a service server.
[0114] In an embodiment of the present application, the process of the business server establishing a target communication link between the target device and the first remote serial port device includes: when the target device is a target server, initializing the processing unit of the business server; when the processing unit is initialized successfully, establishing a target communication link with the target server.
[0115] In the embodiment of the present application, the target server may be an external server.
[0116] In an embodiment of the present application, the process of the business server determining that the target communication link is successfully established includes: generating response information that the target communication link is successfully established; and transmitting the response information to the first remote serial port device.
[0117] In an embodiment of the present application, the process of a business server establishing a target communication link with a target server includes: establishing a bidirectional data transmission link with a first remote serial port device; establishing a unidirectional data transmission link to the target server; and using the bidirectional data transmission link and the unidirectional data transmission link as target communication links.
[0118] In an embodiment of the present application, the business server establishes a bidirectional data transmission link with the first remote serial port device, so that the first remote serial port device can transmit data to the business server through the bidirectional data transmission link; the business server can also transmit data to the first remote serial port device through the bidirectional data transmission link.
[0119] In the embodiment of the present application, the business server establishes a one-way data transmission link to the target server, so that the business server can only transmit the data transmitted by the first remote serial port device to the target server.
[0120] In an embodiment of the present application, after the business server establishes a target communication link between the target device and the first remote serial port device, upon receiving a link disconnection instruction of the target communication link, the target communication link is disconnected; or, when the time when there is no data transmission in the target communication link is greater than or equal to a preset time length, the target communication link is disconnected.
[0121] It should be noted that the link disconnection instruction is an instruction transmitted by an administrator, or an instruction transmitted by the first remote serial port device, or an instruction transmitted by the second remote serial port device.
[0122] In an embodiment of the present application, the preset time length may be a time length configured in the business server, or a time length transmitted from other devices to the business server; or it may be a time length obtained by the business server in other ways. The specific way in which the business server obtains the preset time length may be determined based on actual conditions, and the embodiment of the present application does not limit this.
[0123] In the embodiment of the present application, since there is a management link established between the remote serial port device and the business server, the administrator of the business server can initiate a disconnection instruction to the remote serial port device through the business server, so that the remote serial port device can perform a disconnection operation. Alternatively, the administrator of the remote serial port device can directly interact with the remote serial port device (i.e., the remote serial port device transmits a disconnection instruction to the remote serial port device) to perform a disconnection operation. Alternatively, the business server can actively disconnect the link connection due to a long period of no data interaction (the duration of no data transmission between the remote serial port device and the business server is greater than or equal to a preset time length).
[0124] It can be understood that the business server establishes a target communication link with the first remote serial port device, so that the data collection, processing and terminal management capabilities of the processing unit in the business server can be utilized to manage the first remote serial port device and the terminal connected to the first remote serial port device. When there are multiple first serial port devices and terminals, cluster management of multiple similar terminals can be achieved, thereby realizing platform management of IoT devices and improving the intelligence of managing the first remote serial port device and multiple terminals.
[0125] The embodiment of the present application provides an information processing method, which is applied to a first remote serial port device. Fig. 9 A flow chart of an information processing method provided in an embodiment of the present application, such as Fig. 9 As shown, the information processing method may include:
[0126] S201. When receiving an instruction to establish a serial port connection, determine a target device to be connected.
[0127] An information processing method provided in an embodiment of the present application is applicable to a scenario in which a target communication link is established between a target device and a first remote serial port device.
[0128] In the embodiments of the present application, the first remote serial port device can be implemented in various forms. For example, the first remote serial port device described in the present application can include devices such as mobile phones, cameras, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, and devices such as digital TVs, desktop computers, and servers.
[0129] In the embodiment of the present application, a serial port module is provided in the first remote serial port device, and is connected to the terminal device through the serial port module. The first remote serial port device reads data from the terminal device through the serial port module, and after encryption and compression, sends it to the remote end (target device); in addition, the first remote serial port device can also decompress and decrypt the data sent by the remote end (target device) and forward it to the terminal device through the serial port module. Fig.10 As shown, the remote serial port device includes a device switch, a connection switch, a serial port (serial port module), a network port, an information light group, a local management interface and other logical components. The main functional modules inside the first remote serial port device and their interrelationships are shown in FIG. Fig.11As shown: it includes a management module, a serial port module, a network module and a data processing module; wherein the data processing module includes data frame processing, data compression / decompression, and data encryption / decryption. The management module is used to manage the serial port module, the network module and the data processing module. During operation, the relationship between the first remote serial port device, the remote serial port module and the service server is as follows Fig.12 As shown: the terminal device is connected to the first end of the serial port module in the serial port device (the first remote serial port device), the second end of the serial port module is connected to the first end of the network module through data encryption / decryption, data compression / decompression, and data frame processing, and the second end of the network module is connected to the remote serial port module or the service server through the target communication link.
[0130] In the embodiment of the present application, the serial port module inside the serial port device is mainly responsible for data exchange with the terminal device through the serial port protocol (including but not limited to RS232, RS485 and other serial port protocols). The connection relationship between the serial port module and other modules is as follows: Fig.13 As shown, the serial port module is connected to the management module in the serial port device, and the management module is used to manage the serial port module; the data processing module and the terminal device are respectively connected to the serial port module, and are used to realize communication between the terminal device and the serial port device through the serial port module.
[0131] In the embodiments of the present application, Fig.14 As shown, the data processing module in the serial port device includes a data encryption / decryption module, a data compression / decompression module and a data frame processing module. The data processing module is connected to the management module in the serial port device, and the management module is used to manage the data processing module; the serial port module is connected to the data encryption / decryption module in the data processing module; and the network module is connected to the data frame processing module in the data processing module.
[0132] In the embodiment of the present application, the network module provides network support for the serial port device (interface types include but are not limited to various wired interfaces, which can also be replaced by Wi-Fi, Bluetooth, mobile network (3G / 4G / 5G) and subsequent development network interfaces), and establishes direct or indirect connections with remote devices and servers. Fig.15 As shown, the network module includes a wired link interface, a wireless link interface and a mobile network interface. The network module is connected to the management module in the serial port device, and the management module is used to manage the network module; the data processing module is connected to the network module, and is used to transmit the data processed by the data processing module to the business server or the remote serial port device at the far end through the network module.
[0133] In the embodiments of the present application, Fig.16As shown, the management module is an important auxiliary module in the serial port device. The management module contains device management (submodule) and management interface (submodule). Among them, the management interface submodule contains northbound interface and local interface. The northbound interface is used to support the configuration and management of serial port devices (remote serial port devices) by the business server, and the local interface is used to support the configuration and management of serial port devices (remote serial port devices) by the local control terminal. The device management (submodule) in the management module is connected to the serial port module, data processing module and network module in the serial port device.
[0134] In the embodiment of the present application, the serial port device (first remote serial port device) has six states during operation. The meaning of the states and the conditions for conversion between them are as follows: Fig.17 As shown: the state of the serial port device before it is turned on is the shutdown state, that is, state0; the state after the administrator turns it on is state1, that is, the serial port device starts self-checking and each module in the device is initialized; if the self-check fails or the initialization fails, the state is state5, that is, the device is abnormal and an alarm indication is set; when the administrator shuts down, the device works abnormally, or receives a shutdown command, the serial port device is readjusted to the shutdown state state0. When the initialization of each module in the serial port device is completed, it switches to the device ready state, that is, state2; when the administrator presses the connection button, the server initiates a connection command, or the other end (target device) initiates a direct connection request, the serial port device switches to the connecting state, that is, state3; in the case of connection failure or reconnection, the serial port device remains in state3; when the link with the target device is successfully established, the serial port device switches to the connected state, that is, state4; when the administrator or the server actively closes the link, or the link idle timeout passively closes the link, the serial port device switches to the device ready state, that is, state2; when the configuration of the serial port device is modified (the administrator modifies the configuration locally or the server pushes the configuration), the state of the serial port device switches from state2 to state1; when the serial port device is in the connected state and the link is abnormally interrupted due to an abnormal situation, the state of the serial port device switches from state4 to state3; when the serial port device is in the connecting state, due to exceeding the maximum number of retries or (administrator, server) actively closing, the state of the serial port device switches from state3 to state2.
[0135] In the embodiment of the present application, when the remote serial port device is powered on, it will experience a state transition from the 'power off' state to the 'self-test' state and then to the 'device ready' state. In addition to the 'power off' state, the main tasks of the remote serial port device in the 'self-test' state or the 'device ready' state include device self-test, module initialization and device login operation. Specifically, the execution sequence is as follows Fig.18As shown: Serial port device 1 is in shutdown state at the beginning. When receiving the power-on command transmitted by the administrator, it is in self-check and initialization state, and starts to execute the device self-check program to initialize each module in the device. After self-check and initialization, the serial port device enters the device ready state. In this state, serial port device 1 transmits a login command to the business server, and the business server performs an authentication operation on the first remote serial port device. If the authentication is successful, the business server sends a third response message of successful authentication to serial port device 1. Serial port device 1 determines that the login is successful on the business server, and then pushes device information to the business server (sends the first device information). The business server updates the device information, queries the information of the opposite device (target device, i.e., serial port device 2) (target device information of the target device), and sends the target device information to serial port device 1. Then serial port device 1 updates the local configuration and reinitializes the relevant modules in serial port device 1. When serial port device 2 (target device) is online, the business server will send the first device information of serial port device 1 (push device 1 information) to serial port device 2, and serial port device 2 will update the local configuration and reinitialize the relevant modules in serial port device 2. If serial port device 1 or serial port device 2 fails to log in, it will resend the login instruction to the business server to execute the login operation of serial port device 1 or serial port device 2 on the business server.
[0136] It should be noted that after the serial port device 1 completes initialization and enters the 'ready' state, the serial port device 1 will start the background task - trying to log in to the business server. At the same time, the serial port device 1 is also ready to establish a virtual link (target communication link) with the remote device or business server. After the serial port device 1 successfully logs in, it will push its own information (i.e., the first device information, including: login address, port, etc.) to the business server, and the business server will push it to the peer device (i.e., push it to the serial port device 2. If the peer device is not online at this time, the server will save the data until the peer device logs in and pushes it). After the serial port device 1 successfully logs in, it will send a heartbeat packet to the business server at regular intervals. After the serial port device 1 successfully logs in, the business server will push relevant data to the serial port device 1 (such as: the device's own encryption and decryption method and key or certificate, peer login information, etc.). Only when the serial port device 1 is in the ready state will the configuration modification operation (such as reinitializing related modules, etc.) sent by the business server be executed immediately; if the serial port device 1 is in the 'connecting' or 'connected' state at this time, the device will save the relevant configuration information until the serial port device 1 returns to the 'ready' state before performing the configuration modification operation. After the serial port device 1 logs in to the business server, if the serial port device 1 is in the 'connecting' or 'connected' state, the business server can control the serial port device 1 to disconnect and return to the 'ready' state.
[0137] In the embodiment of the present application, the serial port device 1 is configured in two ways: local configuration and service server configuration. Local configuration means that the operator configures the serial port device 1 through the configuration interface (supporting but not limited to TTL interface); service server configuration means that the administrator configures the specific serial port device 1 (or devices with certain common attributes, such as the same software version number, etc.) through the service server. The local configuration sequence diagram is shown in FIG. Fig.19 As shown: After the operator modifies the configuration of the local serial port device 1 to obtain the changed configuration information, the operator saves the changed configuration information (saves the configuration). After the serial port device 1 reinitializes the relevant submodules (reinitializes the relevant modules), the changed configuration information (including the current device login method, etc.) will be pushed (push configuration information) to the business server, and the business server updates the configuration information. When the peer device (serial port device 2) is online, the business server immediately pushes the data (configuration information) to the peer device (serial port device 2). When the peer device is not online, the business server will perform a push operation (push configuration information to serial port device 2) after the peer device is online (serial port device 2 sends a login instruction to the business server, the business server executes the login process, and successfully logs in). Serial port device 2 updates the received updated configuration information, updates the peer configuration information, and reinitializes the relevant modules.
[0138] In the embodiment of the present application, the sequence of the operator configuring from the server is as follows: Fig. 20 As shown: When the operator receives the changed configuration information corresponding to the managed device transmitted by the administrator on the business server, the operator saves the changed configuration information. When the local managed device (serial port device 1) is online, the business server sends the changed configuration information (pushes the configuration information) to the managed device (serial port device 1) so that the managed device can reinitialize the relevant modules according to the changed configuration information. When the managed device is offline, the business server stores the changed configuration information and performs data push (push configuration information) operation after the managed device is online (serial port device 1 is started and successfully logged in on the business server) so that the managed device can reinitialize the relevant modules according to the changed configuration information. The logic of pushing data to the peer device is the same as the server push logic during local configuration, and will not be repeated here.
[0139] S202: Acquire a target device identifier of a target device, and generate a logical link establishment instruction including the target device identifier.
[0140] In the embodiment of the present application, after the first remote serial port device determines the target device to be connected, it obtains the target device identifier of the target device and generates a logical link establishment instruction including the target device identifier.
[0141] In the embodiment of the present application, after the first remote serial port device generates a logical link establishment instruction including a target device identifier, it transmits the logical link establishment instruction to the target device to establish a target communication link according to the logical link establishment instruction.
[0142] In an embodiment of the present application, when the first remote serial port device receives an instruction to establish a serial port connection, before determining the target device to be connected, upon receiving a power-on instruction, it executes a power-on self-test program; when the self-test is successful, it sends a login instruction to the business server; when receiving a third response information, it obtains the first device information and transmits the first device information to the business server; when receiving the target device information of the target device transmitted by the business server, it executes an initialization process according to the target device information.
[0143] In the embodiment of the present application, the first device information may be device information of the first remote serial port device.
[0144] S203: Transmit a logical link establishment instruction to the service server to establish a target communication link according to the logical link establishment instruction.
[0145] In an embodiment of the present application, the first remote serial port device obtains the target device identifier of the target device, generates a logical link establishment instruction including the target device identifier, and then transmits the logical link establishment instruction to the service server to establish the target communication link according to the logical link establishment instruction.
[0146] In the embodiments of the present application, direct connection between two paired remote serial port devices is a common application scenario. When two remote serial port devices are configured for direct connection mode and are in the same local area network (or the two remote serial port devices are in different regions but can be directly connected through the network, such as: having a public IP in an IPv4 environment or having an accessible IPv6 address, etc.), a direct link (target communication link) can be established between the two remote serial port devices, and thereby a virtual serial port line from remote serial port device 1 to remote serial port device 2 is established, so that terminal 1 (connected to remote serial port device 1 via a serial port) and terminal 2 (connected to remote serial port device 2 via a serial port) can communicate using the target communication link established from remote serial port device 1 to remote serial port device 2. The timing of creating a virtual serial port link (target communication link) between terminal 1 and terminal 2 is as follows: Fig.21As shown: When both devices are ready (i.e., both remote serial port device 1 and remote serial port device 2 are in the device ready state), the administrator can initiate the serial port connection operation by interacting with remote serial port device 1 (transmitting the serial port connection establishment command to the remote serial port device). Then remote serial port device 1 starts to create a logical link with remote serial port device 2: remote serial port device 1 sends an application to establish a logical link (target communication link) to remote serial port device 2, and remote serial port device 2 returns the result of the logical link establishment to remote serial port device 1. If the logical link is not successfully established, remote serial port device 1 will continue to initiate a request to establish a virtual link. When the link (target communication link) is established, remote serial port device 1 and remote serial port device 2 start to initialize the serial port respectively. After that, external terminal 1 and external terminal 2 can exchange data through the established virtual serial port line (target communication link).
[0147] In the embodiment of the present application, the terminal 1 and the terminal 2 cannot perceive the difference between the virtual serial port link and the real serial port line. In other words, the virtual serial port link is transparent to the terminal 1 and the terminal 2 except for the physical interfaces at both ends.
[0148] It should be noted that in the direct connection between remote serial port device 1 and remote serial port device 2 to establish the target communication link, the administrator can directly interact with the remote serial port device to initiate a link (target communication link) establishment event. When the remote serial port device 1 has logged in to the business server, the administrator can also initiate a link establishment event through the business server management interface; it can also be configured to automatically initiate a link establishment operation after the remote serial port device is powered on. Except for the different event initiation methods, the subsequent processes are the same and will not be repeated here. The initiator of the connection event is the remote serial port device 1 for example only. Both paired remote serial port devices can actively initiate a connection request (it can be the remote serial port device 1 that initiates a request to establish a target communication link between the remote serial port device 1 and the remote serial port device 2, or it can be the remote serial port device 2 that initiates a request to establish a target communication link between the remote serial port device 1 and the remote serial port device 2). The process of establishing a logical link (target communication link) includes two-way authentication (the remote serial port device 1 authenticates the remote serial port device 2; the remote serial port device 2 authenticates the remote serial port device 1) and information interaction (negotiating encryption algorithm, compression method, etc.). When the link between remote serial port device 1 and remote serial port device 2 is interrupted due to network reasons, remote serial port device 2 will close the serial port and return to the ready state; module 1 will close the serial port and enter the 'connecting' state, and remote serial port device 1 will continue to try to re-establish the link connection with remote serial port device 2 until the maximum number of retries is reached (which can be a preset number or infinity) or the administrator interrupts the connection attempt directly or indirectly (directly interacting with the remote serial port device or managing through the business server). After the interruption retry, remote serial port device 1 also returns to the device ready state.
[0149] In the embodiment of the present application, there are three ways to disconnect the direct link between remote serial port devices after the direct link is established:
[0150] (1) The administrator directly interacts with the remote serial port device (ie, the administrator transmits a disconnection instruction to the remote serial port device) to perform the disconnection operation.
[0151] (2) The administrator initiates a disconnection operation through the business server: Although the remote serial port devices use the direct connection mode to establish a link connection, as long as the system configuration and network conditions allow, a management link will also be established between the remote serial port device and the business server. In this case, the administrator initiates a disconnection command to the remote serial port device through the business server, so that the remote serial port device can perform the disconnection operation.
[0152] (3) Due to a long period of no data interaction (the duration of no data transmission between remote serial port devices is greater than or equal to the preset time length), the remote serial port device actively disconnects the link connection.
[0153] It should be noted that the timing of the three disconnection operations is as follows: Fig. 22As shown: In the example where the administrator instructs the remote serial port device to disconnect, the remote serial port device 1 is used as an example to show the timing of the disconnection event: the administrator sends a connection closing instruction to the remote serial port device 1, and when the remote serial port device receives the connection closing instruction, it closes the serial port connection to release resources, and sends a disconnection logical link instruction to the remote serial port device 2, and the remote serial port device 2 closes the serial port connection and releases resources. Specifically, both paired remote serial port devices can actively initiate a connection disconnection operation according to the administrator's instruction. In the example where the administrator interrupts the connection through the business server, the timing of the disconnection event is shown by taking the remote serial port device 1 as an example: the administrator sends a notification to close the serial port to the business server; the business server transmits the notification to the remote serial port device 1, and then the remote serial port device 1 closes the serial port connection to release resources, and sends a disconnection logical link instruction to the remote serial port device 2, and the remote serial port device 2 closes the serial port connection and releases resources. Specifically, the business server can send a disconnection instruction to either of the paired remote serial port devices to instruct either of the remote serial port devices to initiate a disconnection operation. Another method is that when the built-in timer in the remote serial port device 1 determines that the length of time without data interaction with the remote serial port device 2 is greater than or equal to the first preset time length (no data interaction for a long time), the built-in timer of the serial port device triggers the timeout switch, the remote serial port device 1 releases resources, sends a command to disconnect the logical link to the remote serial port device 2, and the remote serial port device 2 closes the serial port connection and releases resources. Among them, the idle timeout time configured in the paired remote serial port devices may be different (the first preset time length in the remote serial port device 1 and the second preset time length in the remote serial port device 1 may be different). In other words, both modules (remote serial port device 1 and remote serial port device 2) can trigger a link disconnection event due to the idle timeout of data interaction.
[0154] In the embodiment of the present application, when two paired remote serial port devices cannot be directly connected (e.g., they are in two inaccessible local area networks), a communication link (target communication link) can be established between the two remote serial port devices through the service server transfer method. Fig.23As shown in the figure: when both devices are ready (i.e., both remote serial port device 1 and remote serial port device 2 are in the device ready state), the administrator can initiate the serial port connection operation by interacting with remote serial port device 1 (the administrator transmits the command to establish the serial port connection to the remote serial port device). Since remote serial port device 1 and remote serial port device 2 cannot be directly connected, at this time, remote serial port device 1 initiates a link establishment application to the business server (applies to the business server to establish a logical link). After receiving the request, the server attempts to connect with remote serial port device 2 (the business server forwards the application to establish a logical link to the remote serial port device), and remote serial port device 2 sends the result of the logical link establishment to the business server. After the connection between remote serial port device 1 and remote serial port device 2 is successfully established (the target communication link is established), remote serial port device 1 and remote serial port device 2 start to initialize the serial port respectively, thereby establishing an end-to-end logical link. If any link between remote serial port device 1 and business server, or between business server and remote serial port device 2 is not successfully established, the business server and remote serial port device 2 will release related resources, and remote serial port device 2 will return to the 'device ready' state; remote serial port device 1 will continue to initiate attempts to establish a virtual link (target communication link) to the business server. When the virtual serial port (target communication link) is established, terminal 1 will perform long-distance serial port data transmission with terminal 2 through remote serial port device 1, business server, remote serial port device 2. At this time, for terminal 1 and terminal 2, they are directly connected through a serial port line, and terminal 1 and terminal 2 cannot perceive the difference between this virtual serial port link and the real serial port line.
[0155] It should be noted that in this embodiment, the administrator directly interacts with the remote serial port device 1 to initiate a link (target communication link) establishment event. The administrator can also initiate a link establishment event through the business server management interface; it can also be configured so that the remote serial port device automatically initiates a link establishment operation after powering on. Except for the different event initiation methods, the subsequent processes are the same and will not be repeated here. The initiator of the connection event is the remote serial port device 1 for example only. Both paired remote serial port devices can actively initiate a connection request (that is, the remote serial port device 1 can initiate a request to establish a target communication link between the remote serial port device 1 and the remote serial port device 2 through the business server, or the remote serial port device 2 can initiate a request to establish a target communication link between the remote serial port device 1 and the remote serial port device 2 through the business server). The process of establishing a logical link (target communication link) includes two-way authentication and information interaction (negotiated encryption algorithm, compression method, etc.). When the virtual serial port link (target communication link) between remote serial port device 1 and remote serial port device 2 is interrupted due to network reasons, the business server and remote serial port device 2 will release related resources (e.g., remote serial port device 2 will close the serial port and return to the ready state); remote serial port device 1 will close the serial port and enter the 'connecting' state, and continuously try to re-establish the link (target communication link) connection with remote serial port device 2 through the business server until the maximum number of retries is reached (which can be a preset number or infinity) or the administrator interrupts the connection attempt directly or indirectly (directly interacting with the remote serial port device or managing through the business server). After the interruption of the retry, remote serial port device 1 also returns to the device ready state.
[0156] In the embodiment of the present application, after the target communication link between the remote serial port devices is established, there are three ways to disconnect the direct link:
[0157] (1) The administrator directly interacts with the remote serial port device (ie, the administrator transmits a disconnection instruction to the remote serial port device) to perform the disconnection operation.
[0158] (2) The administrator initiates a disconnection instruction to the remote serial port device through the business server, so that the remote serial port device can perform the disconnection operation.
[0159] (3) Due to a long period of no data interaction (the duration of no data transmission between the remote serial port device and the service server is greater than or equal to the preset time length), the remote serial port device or the service server actively disconnects the link connection.
[0160] In the embodiment of the present application, the timing of the disconnection operation is as follows: Fig.24As shown: In the example of the operation in which the administrator instructs the remote serial port device to disconnect, the remote serial port device 1 is used as an example to show the timing of the disconnection event: the administrator sends a command to close the connection to the remote serial port device 1. When the remote serial port device receives the command to close the connection, it sends a command to disconnect the logical link to the business server, and the serial port connection of the remote serial port device 1 is released, and the business server releases the resources when receiving the command to disconnect the logical link sent by the remote serial port device 1, and sends a command to disconnect the logical link to the remote serial port device 2, and the remote serial port device 2 closes the serial port connection. Release resources. Specifically, both paired remote serial port devices can actively initiate a connection disconnection operation according to the administrator's instructions. In the example in which the administrator disconnects the connection through the business server, the timing of the disconnection event is shown by taking the remote serial port device 1 as an example: the administrator sends a command to close the connection to the business server; the business server sends a command to disconnect the logical link to the remote serial port device 1, instructing the remote serial port device 1 to close the serial port connection and release resources, and the business server also sends a command to disconnect the logical link to the remote serial port device 2, instructing the remote serial port device 2 to close the serial port connection and release resources. Another is that when the timer (device timer) in the remote serial port device 1 determines that the length of time without data interaction with the business server is greater than or equal to the first preset time length (no data interaction for a long time), the device timer triggers the timeout switch, and the remote serial port device 1 transmits an instruction to disconnect the logical link to the business server, closes the serial port connection, and releases resources; when the business server receives the instruction to disconnect the logical link, it transmits the instruction to disconnect the logical link to the remote serial port device 2, and when the remote serial port device 2 receives the instruction to disconnect the logical link, it closes the serial port connection and releases resources. Or when the timer (server timer) in the business server determines that the length of time without data interaction with the remote serial port device 1 and the remote serial port device 2 is greater than or equal to the third preset time length (no data interaction for a long time), the business server sends an instruction to disconnect the logical link to the remote serial port device 1, instructing the remote serial port device 1 to close the serial port connection and release resources, and the business server also sends an instruction to disconnect the logical link to the remote serial port device 2, instructing the remote serial port device 2 to close the serial port connection and release resources. Among them, the idle timeout time configured in the paired remote serial port devices and the business server may be different. Both modules (remote serial port device 1 and remote serial port device 2) or the service server may trigger a link disconnection event due to idle timeout of data interaction.
[0161] In the embodiment of the present application, the cluster management mode is used for the service server to directly manage the terminal through the remote serial port device, that is, to collect data from the terminal and send control instructions to the terminal. This working mode is suitable for centralized management of terminals of the same type, such as centralized management of home gateways, set-top boxes, etc. by embedding remote serial port devices in the terminal. The link establishment sequence in the cluster management mode is as follows: Fig.25 As shown in the figure: When the remote serial port device is in the device ready state, the administrator can initiate a link establishment application by interacting with the remote serial port device (transmitting a serial port connection establishment instruction to the remote serial port device). After receiving the instruction, the business server will initialize the corresponding processing unit. When the processing unit returns the initialization result, the business server will transmit the result of establishing the logical link to the remote serial port device. After the connection (target communication link) is successfully established, the remote serial port device starts to initialize the serial port, thereby establishing a logical link between the terminal and the server processing unit. If the link (target communication link) is not successfully established, the business server and the corresponding processing unit of the business server will release the relevant resources; the remote serial port device will return to the "connecting" state and continue to initiate the instruction to establish a virtual link to the business server. When the virtual serial port link (target communication link) is established, the terminal will report data to the server processing unit through the remote serial port device and the business server, and receive various instructions and data from the business server processing unit.
[0162] It should be noted that in this embodiment, the administrator can directly interact with the remote serial port device to initiate a link (target communication link) establishment event, or initiate a link establishment event through the business server management interface; it can also be configured that the remote serial port device automatically initiates a link establishment operation after powering on. Except for the different event initiation methods, the subsequent processes are the same and will not be repeated here. The establishment process of the logical link (target communication link) includes two-way authentication and information interaction (negotiated encryption algorithm, compression method, etc.). When the virtual serial port link between the remote serial port device and the business server logic processing unit is interrupted due to network reasons, the business server and the logic processing unit therein will release related resources; the remote serial port device will close the serial port and enter the "connecting" state, and the remote serial port device will continue to try to re-establish the link connection until the maximum number of retries is reached (which can be a preset number or infinity) or the administrator interrupts the connection attempt by direct or indirect means (directly interacting with the remote serial port device or managing through the business server). After the interruption of the retry, the remote serial port device also returns to the device ready state. The business processing unit can provide an external interface for the administrator or a third-party system to configure and manage the terminal.
[0163] In the embodiment of the present application, the cluster-data push mode is used for the business server to collect data from the terminal through the remote serial port device, and after processing to obtain the processing result, the processing result is pushed to the target server. This working mode is suitable for centrally collecting data from the same type of terminals and reporting the data processing results on demand, such as: the processing unit collects data from the field agricultural sensor through the embedded remote serial port device, and reports it to the target server after analysis and processing. The link establishment timing in the cluster-data push mode is as follows Fig.26 As shown in the figure: When the remote serial port device is in the device ready state, the administrator can initiate a link establishment application by interacting with the remote serial port device (transmitting a serial port connection establishment instruction to the remote serial port device). After receiving the request (application), the business server will initialize the corresponding processing unit to establish a link between the processing unit of the server (business server) and the target server. The target server returns the link establishment result to the processing unit of the server, and the processing unit of the server returns the initialization result to the business server. The business server returns the logical link establishment result to the remote serial port device. After the connection (target communication link) is successfully established, the remote serial port device starts to initialize the serial port, thereby establishing a logical link from the terminal to the server processing unit. If the link (target communication link) is not successfully established, the business server and the corresponding processing unit of the server will release the relevant resources; the remote serial port device will return to the 'connecting' state and continue to initiate instructions to establish a virtual link to the business server. When the virtual serial port link (target communication link) is successfully established, the terminal will report data to the server processing unit through the remote serial port device and business server, and receive various instructions and data from the server processing unit; or the server processing unit will push the analysis and processing results to the target server after summarizing, analyzing and processing the data from the terminal.
[0164] It should be noted that in this embodiment, the administrator can directly interact with the remote serial port device to initiate a link (target communication link) establishment event, and the administrator can also initiate a link establishment event through the business server management interface; it can also be configured that the remote serial port device automatically initiates a link establishment operation after powering on. Except for the different event initiation methods, the subsequent processes are the same and will not be repeated here. The establishment process of the logical link (target communication link) includes two-way authentication and information interaction (negotiated encryption algorithm, compression method, etc.). When the virtual serial port link between the remote serial port device and the server logic processing unit is interrupted due to network reasons, the business server and the logic processing unit therein will release related resources; the remote serial port device will close the serial port and enter the "connecting" state, and the remote serial port device will continue to try to re-establish the link connection until the maximum number of retries is reached (which can be a preset number or infinity) or the administrator interrupts the connection attempt by direct or indirect means (directly interacting with the remote serial port device or through business server management). After the retry is interrupted, the remote serial port device also returns to the device ready state.
[0165] In the embodiment of the present application, the cluster-data interaction mode is an extension of the cluster-data push mode, that is, the one-way data push to the target server in the cluster-data interaction mode is extended to: in addition to the northward push result data, the target server can also send data to the controlled terminal. The cluster-data interaction mode is suitable for the centralized management of devices with data interaction requirements, such as: the target server pushes advertising information to the managed outdoor advertising terminal through this system. The link establishment timing of the cluster-data interaction mode is as follows: Fig. 27As shown: When the remote serial port device is in the device ready state, the administrator can initiate a link establishment application by interacting with the remote serial port device (transmitting a serial port connection establishment instruction to the remote serial port device). After receiving the request (application), the business server will initialize the corresponding processing unit to establish a link between the processing unit of the server (business server) and the target server. The target service returns the link establishment result to the processing unit of the server, and the processing unit of the server returns the initialization result to the business server. The business server returns the logical link establishment result to the remote serial port device. After the connection (target communication link) is successfully established, the remote serial port device starts to initialize the serial port, thereby establishing a two-way data interaction logical link to the target server. If the link (target communication link) is not successfully created, the business server and the corresponding processing unit of the server will release the relevant resources; (target communication link) will return to the 'connecting' state and continue to initiate an application to establish a virtual link to the business server. When the virtual serial port link (target communication link) is successfully established, the terminal will report the data in the terminal to the target server through the remote serial port device, the business server, and the server processing unit (the terminal transmits the collected data to the remote serial port device, the remote serial port device encodes the collected data and transmits it to the business server, the business server distributes the encoded collected data to the processing unit, the processing unit processes the collected data to obtain the processing result, and then pushes the processing result to the target server); the target server also pushes the downstream data to the corresponding terminal through the business server's internal processing unit, the business server, and the remote serial port device (the target server pushes the downstream data to the processing unit, the processing unit processes the downstream data to obtain the downstream processing result, and then forwards the downstream processing result to the business server, and the business server forwards the downstream processing result to the terminal through the remote serial port device).
[0166] It should be noted that in this embodiment, the administrator can directly interact with the remote serial port device to initiate a link (target communication link) establishment event, and the administrator can also initiate a link establishment event through the business server management interface; it can also be configured that the remote serial port device automatically initiates a link establishment operation after powering on. Except for the different event initiation methods, the subsequent processes are the same and will not be repeated here. The establishment process of the logical link (target communication link) includes two-way authentication and information interaction (negotiated encryption algorithm, compression method, etc.). When the virtual serial port link between the remote serial port device and the server logic processing unit is interrupted due to network reasons, the business server and the logic processing unit therein will release related resources; the remote serial port device will close the serial port and enter the "connecting" state, and the remote serial port device will continue to try to re-establish the link connection until the maximum number of retries is reached (which can be a preset number or infinity) or the administrator interrupts the connection attempt by direct or indirect means (directly interacting with the remote serial port device or through business server management). After the retry is interrupted, the remote serial port device also returns to the device ready state.
[0167] Exemplarily, the remote serial port device and the service server can be combined into a variety of application scenarios, including: remote device debugging is a typical application scenario of two remote serial port devices paired. Fig.28 As shown: When in use, at the remote device site, connect a configured remote serial port device (serial port device-1) to the debugged terminal through a serial port line; when the two paired remote serial port devices (serial port device 1 and serial port device 2) establish a link connection (target communication link), the local debugging terminal connects to the local remote serial port device (serial port device-2) through the serial port line, just like the serial port line is directly inserted into the serial port of the remote debugged device, and the remote device debugging work can be directly carried out. Through this solution, the developer can change the device joint debugging work that must be carried out on site in person every time to remote debugging, which not only saves a lot of manpower and material expenditures caused by frequent business trips to thread debugging, but also greatly improves work efficiency.
[0168] Application scenarios of device function splitting. The common data acquisition and processing all-in-one device (integrated device) has a logic processing unit, which makes it difficult to further reduce the size and power consumption of the integrated device. By using the paired remote serial port device in the SoC mode in the embodiment of the present application, the data acquisition component (sensor) and the data processing component (logic processing unit) in the original system can be split: that is, only the most basic sensors are retained at the work site, and the logic processing unit is placed in the local environment. Fig.29As shown in the figure: the sensor is connected to the serial port device-1 (the first remote serial port device) by serial port, the target communication link is established between the serial port device-1 (the first remote serial port device) and the serial port device-2 (the second remote serial port device), and the logic processing unit is connected to the serial port device-2 (the second remote serial port device) by serial port. After the sensor and the logic processing unit are separated, the sensor placed at the remote site can be extremely small and extremely low in power consumption; while the logic processing unit with complex logic, high power consumption, high heat generation and large size can be guaranteed to operate in the local computer room.
[0169] Ordinary household appliances and industrial control equipment can be integrated with remote serial port devices and supported by business servers to have networking capabilities at a low cost. Fig.30 As shown in the figure: ordinary household appliances or industrial control modules can upload data in the local industrial control module to the interface module of the business server through a remote serial port device (serial port device), and then transmit it to the processing unit of the business server through the interface module, and use the processing unit for further analysis and processing; the industrial control module can also receive various control instructions (such as: equipment control, system upgrade, etc.) from the processing unit in the business server. In this way, ordinary household appliances and industrial control equipment (industrial control modules) can be IoT-based at low cost, thus transforming into smart terminals.
[0170] like Fig.31 As shown, many emerging medium, micro and small technology companies and technology enthusiasts often have the idea of IoT-ing existing products and projects, but they are often limited by funding, technology and other aspects. By combining the product with the remote serial port device of this proposal, with the support of the business server, third-party manufacturers and enthusiasts can connect their own devices with the standard network interface protocol. That is, the data in the industrial control module is transmitted to the third-party server through the serial port device and the business server, or the control instructions of the third-party server are transmitted to the serial port device through the business server and the serial port device.
[0171] It can be understood that when the first remote serial port device receives an instruction to establish a serial port connection, it determines the target device to be connected, generates a logical link establishment instruction including a target device identifier corresponding to the target device, and transmits the logical link establishment instruction to the business server, so as to establish a target communication link between the business server and the first remote serial port device according to the logical link establishment instruction, so that the data collection, processing and terminal control capabilities of the processing unit in the business server can be utilized to manage the first remote serial port device and the terminal connected to the first remote serial port device. In the case where there are multiple first serial port devices and multiple terminals, cluster management of multiple similar terminals can be implemented, thereby realizing platform-based management of IoT devices and improving the intelligence of managing the first remote serial port device and multiple terminals.
[0172] Based on the same inventive concept as the above-mentioned information processing method, the embodiment of the present application provides a business server 1, corresponding to an information processing method; Fig.32 A schematic diagram of the structure of a service server provided in an embodiment of the present application Figure 1 , the business server 1 may include:
[0173] The first acquisition unit 11 is used to acquire the target device identifier from the logical link establishment instruction when receiving the logical link establishment instruction; the logical link establishment instruction is an instruction transmitted by an administrator, or an instruction transmitted by a first remote serial port device; the first remote serial port device is a device connected to a terminal;
[0174] A first determining unit 12, configured to determine a target device according to the target device identifier;
[0175] The establishing unit 13 is used to establish a target communication link between the target device and the first remote serial port device.
[0176] In some embodiments of the present application, the server further includes a second transmission unit;
[0177] The establishing unit 13 is used to establish a first communication link with the first remote serial port device when the target device is a second remote serial port device;
[0178] The second transmission unit is used to transmit the logical link establishment instruction to the second remote serial port device so as to establish a second communication link with the second remote serial port device;
[0179] The first determining unit 12 is configured to use the first communication link and the second communication link as the target communication links.
[0180] In some embodiments of the present application, the server further includes a second generating unit;
[0181] The second generating unit is used to generate the second response information of successful establishment of the target communication link when receiving the first response information of successful establishment of the second communication link transmitted by the second remote serial port device;
[0182] The second transmission unit is used to transmit the second response information to the first remote serial port device.
[0183] In some embodiments of the present application, the server further includes an initialization unit;
[0184] The initialization unit is used to initialize the processing unit of the service server when the target device is the service server;
[0185] The first determining unit 12 is configured to determine that the target communication link is successfully established if the processing unit is successfully initialized.
[0186] In some embodiments of the present application, the initialization unit is used to initialize the processing unit of the service server when the target device is a target server;
[0187] The establishing unit 13 is used to establish the target communication link with the target server when the processing unit is initialized successfully.
[0188] In some embodiments of the present application, the second generating unit is used to generate response information that the target communication link is successfully established;
[0189] The second transmission unit is used to transmit the response information to the first remote serial port device.
[0190] In some embodiments of the present application, the establishing unit 13 is used to establish a bidirectional data transmission link with the first remote serial port device; establish a unidirectional data transmission link to the target server;
[0191] The first determining unit 12 is configured to use the bidirectional data transmission link and the unidirectional data transmission link as the target communication links.
[0192] In some embodiments of the present application, the server further includes a disconnect unit;
[0193] The disconnection unit is used to disconnect the target communication link when receiving a link disconnection instruction of the target communication link; the link disconnection instruction is an instruction transmitted by an administrator, or an instruction transmitted by the first remote serial port device, or an instruction transmitted by the second remote serial port device; or, when the time when no data is transmitted in the target communication link is greater than or equal to a preset time length, disconnect the target communication link.
[0194] In some embodiments of the present application, the server further includes a first sending unit;
[0195] The first acquisition unit 11 is used to acquire the first device identification of the first remote serial port device from the login instruction when receiving the login instruction transmitted by the first remote serial port device; and acquire the target device information of the target device;
[0196] The first sending unit is configured to send third response information indicating successful authentication to the first remote serial port device when the first remote serial port device is successfully authenticated according to the first device identifier; send the target device information to the first remote serial port device, and send the first device information to the target device, so that the first remote serial port device performs an initialization process according to the target device information, and the target device performs an initialization process according to the first device information;
[0197] The first determining unit 12 is configured to determine a target device corresponding to the first remote serial port device upon receiving the first device information sent by the first remote serial port device.
[0198] In some embodiments of the present application, the first determining unit 12 is used to determine a second remote serial port device corresponding to the first remote serial port device;
[0199] The first acquisition unit 11 is used to acquire second device information of the second remote serial port device;
[0200] The first sending unit is used to send the second device information to the first remote serial port device, and send the first device information to the second remote serial port device, so that the first remote serial port device performs an initialization process according to the second device information, and the second remote serial port device performs an initialization process according to the first device information.
[0201] It should be noted that, in actual applications, the above-mentioned first acquisition unit 11, the first determination unit 12, and the establishment unit 13 can be implemented by the first processor 14 on the business server 1, specifically a CPU (Central Processing Unit), an MPU (Microprocessor Unit), a DSP (Digital Signal Processing) or a field programmable gate array (FPGA), etc.; the above-mentioned data storage can be implemented by the first memory 15 on the business server 1.
[0202] The present application embodiment also provides a service server 1, such as Fig.33 As shown, the business server 1 includes: a first processor 14, a first memory 15 and a first communication bus 16. The first memory 15 communicates with the first processor 14 through the first communication bus 16. The first memory 15 stores a program executable by the first processor 14. When the program is executed, the information processing method described above is executed by the first processor 14.
[0203] In practical applications, the first memory 15 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above types of memories, and provide instructions and data to the first processor 14.
[0204] An embodiment of the present application provides a computer-readable storage medium having a computer program thereon, and when the program is executed by the first processor 14, the information processing method as described above is implemented.
[0205] It can be understood that the business server establishes a target communication link with the first remote serial port device, so that the data collection, processing and terminal management capabilities of the processing unit in the business server can be utilized to manage the first remote serial port device and the terminal connected to the first remote serial port device. When there are multiple first serial port devices and terminals, cluster management of multiple similar terminals can be achieved, thereby realizing platform management of IoT devices and improving the intelligence of managing the first remote serial port device and multiple terminals.
[0206] Based on the same inventive concept as the above-mentioned information processing method, the embodiment of the present application provides a first remote serial port device 2, corresponding to an information processing method; Fig.34 A schematic diagram of the composition structure of a first remote serial port device provided in an embodiment of the present application Figure 1 , the first remote serial port device 2 may include:
[0207] The second determining unit 21 is used to determine the target device to be connected when receiving the instruction to establish the serial port connection;
[0208] A second acquiring unit 22, configured to acquire a target device identifier of the target device;
[0209] A first generating unit 23, configured to generate a logical link establishment instruction including the target device identifier;
[0210] The first transmission unit 24 is used to transmit a logical link establishment instruction to the service server, so as to establish a target communication link according to the logical link establishment instruction.
[0211] In some embodiments of the present application, the first transmission unit 24 is used to transmit the logical link establishment instruction to the target device to establish a target communication link according to the logical link establishment instruction.
[0212] In some embodiments of the present application, the device further includes an execution unit and a second sending unit;
[0213] The execution unit is used to execute a power-on self-test program when receiving a power-on instruction; and execute an initialization process according to the target device information when receiving the target device information transmitted by the service server;
[0214] The second sending unit is used to send a login instruction to the business server when the self-check is successful;
[0215] The second acquiring unit 22 is configured to acquire the first device information when receiving the third response information;
[0216] The first transmission unit 24 is configured to transmit the first device information to the service server.
[0217] It should be noted that, in actual applications, the above-mentioned second determination unit 21, the second acquisition unit 22, the first generation unit 23 and the first transmission unit 24 can be implemented by the second processor 25 on the first remote serial port device 2, specifically a CPU (Central Processing Unit), an MPU (Microprocessor Unit), a DSP (Digital Signal Processing) or a field programmable gate array (FPGA), etc.; the above-mentioned data storage can be implemented by the second memory 26 on the first remote serial port device 2.
[0218] The present application embodiment also provides a first remote serial port device 2, such as Fig.35 As shown, the first remote serial port device 2 includes: a second processor 25, a second memory 26 and a second communication bus 27. The second memory 26 communicates with the second processor 25 via the second communication bus 27. The second memory 26 stores a program executable by the second processor 25. When the program is executed, the information processing method described above is executed by the second processor 25.
[0219] In practical applications, the second memory 26 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or a combination of the above types of memories, and provide instructions and data to the second processor 25.
[0220] An embodiment of the present application provides a computer-readable storage medium having a computer program thereon, and when the program is executed by the second processor 25, the information processing method as described above is implemented.
[0221] It can be understood that when the first remote serial port device receives an instruction to establish a serial port connection, it determines the target device to be connected, generates a logical link establishment instruction including a target device identifier corresponding to the target device, and transmits the logical link establishment instruction to the business server, so as to establish a target communication link between the business server and the first remote serial port device according to the logical link establishment instruction, so that the data collection, processing and terminal control capabilities of the processing unit in the business server can be utilized to manage the first remote serial port device and the terminal connected to the first remote serial port device. In the case where there are multiple first serial port devices and multiple terminals, cluster management of multiple similar terminals can be implemented, thereby realizing platform-based management of IoT devices and improving the intelligence of managing the first remote serial port device and multiple terminals.
[0222] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0223] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0224] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0225] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0226] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. An information processing method, characterized in that: Applied to a business server, the method comprises: When receiving a logical link establishment instruction, obtaining a target device identifier from the logical link establishment instruction; the logical link establishment instruction is an instruction transmitted by an administrator, or an instruction transmitted by a first remote serial port device; the first remote serial port device is a device connected to a terminal; Determine the target device according to the target device identifier; A target communication link is established between the target device and the first remote serial port device.
2. The method according to claim 1, characterized in that The establishing of a target communication link between the target device and the first remote serial port device comprises: When the target device is a second remote serial port device, establishing a first communication link with the first remote serial port device; Transmitting the logical link establishment instruction to the second remote serial port device to establish a second communication link with the second remote serial port device; The first communication link and the second communication link are used as the target communication links.
3. The method according to claim 2, characterized in that After transmitting the logical link establishment instruction to the second remote serial port device, the method further includes: Upon receiving the first response information transmitted by the second remote serial port device indicating that the second communication link is successfully established, generating the second response information indicating that the target communication link is successfully established; The second response information is transmitted to the first remote serial port device.
4. The method according to claim 1, characterized in that: The establishing of a target communication link between the target device and the first remote serial port device comprises: In a case where the target device is the service server, initializing a processing unit of the service server; In the case where the processing unit is successfully initialized, it is determined that the target communication link is successfully established.
5. The method according to claim 1, characterized in that The establishing of a target communication link between the target device and the first remote serial port device comprises: In the case where the target device is a target server, initializing a processing unit of the service server; When the processing unit is successfully initialized, the target communication link with the target server is established.
6. The method according to any one of claims 4 or 5, characterized in that: The determining that the target communication link is successfully established includes: Generate response information that the target communication link is successfully established; The response information is transmitted to the first remote serial port device.
7. The method according to claim 5, characterized in that The establishing of the target communication link with the target server comprises: Establishing a bidirectional data transmission link with the first remote serial port device; Establishing a one-way data transmission link to the target server; The bidirectional data transmission link and the unidirectional data transmission link are used as the target communication links.
8. The method according to claim 1, characterized in that After establishing the target communication link between the target device and the first remote serial port device, the method further includes: Upon receiving a link disconnection instruction of the target communication link, disconnecting the target communication link; the link disconnection instruction is an instruction transmitted by an administrator, or an instruction transmitted by the first remote serial port device, or an instruction transmitted by the second remote serial port device; Alternatively, when the time for which no data is transmitted in the target communication link is greater than or equal to a preset time length, the target communication link is disconnected.
9. The method according to claim 1, characterized in that: In the case where the logical link establishment instruction is received, before obtaining the target device identifier from the logical link establishment instruction, the method further includes: Upon receiving the login instruction transmitted by the first remote serial port device, obtaining a first device identifier of the first remote serial port device from the login instruction; When the first remote serial port device is successfully authenticated according to the first device identifier, third response information of successful authentication is sent to the first remote serial port device; Upon receiving the first device information sent by the first remote serial port device, determining a target device corresponding to the first remote serial port device; Acquire target device information of the target device; The target device information is sent to the first remote serial port device, and the first device information is sent to the target device, so that the first remote serial port device performs an initialization process according to the target device information, and the target device performs an initialization process according to the first device information.
10. The method according to claim 9, characterized in that The determining a target device corresponding to the first remote serial port device includes: Determine a second remote serial port device corresponding to the first remote serial port device; Correspondingly, the step of acquiring target device information of the target device includes: Obtain second device information of the second remote serial port device; Correspondingly, the process of sending the target device information to the first remote serial port device, sending the first device information to the target device so that the first remote serial port device performs initialization according to the target device information, and the process of the target device performing initialization according to the first device information includes: The second device information is sent to the first remote serial port device, and the first device information is sent to the second remote serial port device, so that the first remote serial port device performs an initialization process according to the second device information, and the second remote serial port device performs an initialization process according to the first device information.
11. An information processing method, characterized in that: Applied to a first remote serial port device, the method comprises: Upon receiving an instruction to establish a serial port connection, determining a target device for connection; Acquire a target device identifier of the target device, and generate a logical link establishment instruction including the target device identifier; The logical link establishment instruction is transmitted to the service server to establish the target communication link according to the logical link establishment instruction.
12. The method according to claim 11, characterized in that After generating the logical link establishment instruction including the target device identifier, the method further includes: The logical link establishment instruction is transmitted to the target device to establish a target communication link according to the logical link establishment instruction.
13. The method according to claim 11, characterized in that In the case of receiving an instruction to establish a serial port connection, before determining a target device to be connected, the method further includes: When receiving a power-on command, executing a power-on self-test procedure; If the self-check is successful, sending a login instruction to the business server; When receiving the third response information, obtaining the first device information and transmitting the first device information to the service server; In case of receiving the target device information of the target device transmitted by the service server, an initialization process is performed according to the target device information.
14. A business server, characterized in that: The business server comprises: a first acquisition unit, configured to acquire a target device identifier from the logical link establishment instruction when receiving the logical link establishment instruction; the logical link establishment instruction is an instruction transmitted by an administrator, or an instruction transmitted by a first remote serial port device; the first remote serial port device is a device connected to a terminal; A first determining unit, configured to determine a target device according to the target device identifier; An establishing unit is used to establish a target communication link between the target device and the first remote serial port device.
15. A first remote serial port device, characterized in that: The first remote serial port device comprises: A second determining unit is used to determine a target device for connection when receiving an instruction to establish a serial port connection; A second acquiring unit, configured to acquire a target device identifier of the target device; A first generating unit, configured to generate a logical link establishment instruction including the target device identifier; The first transmission unit is used to transmit a logical link establishment instruction to the service server, so as to establish a target communication link according to the logical link establishment instruction.
16. A business server, characterized in that: The business server comprises: A first memory, a first processor and a first communication bus, wherein the first memory communicates with the first processor via the first communication bus, the first memory stores an information processing program executable by the first processor, and when the information processing program is executed, the method described in any one of claims 1 to 10 is performed by the first processor.
17. A first remote serial port device, characterized in that: The first remote serial port device comprises: A second memory, a second processor and a second communication bus, wherein the second memory communicates with the second processor via the second communication bus, and the second memory stores an information processing program executable by the second processor. When the information processing program is executed, the method described in any one of claims 11 to 13 is performed by the second processor.
18. A storage medium having a computer program stored thereon, applied to a service server and a first remote serial port device, characterized in that: When the computer program is executed by a first processor, the method described in any one of claims 1 to 10 is implemented; when the computer program is executed by a second processor, the method described in any one of claims 11 to 13 is implemented.