Method and system for quickly accessing user information transmission device to fire fighting system platform

By realizing automatic data acquisition and remote upgrade functions in the user information transmission device, and using the equipment management platform for data encryption transmission and script development, the complex problem of adapting to the fire alarm host protocol in the existing technology is solved, and the compatibility and easy maintenance of the system are improved.

CN119854005APending Publication Date: 2025-04-18SHENZHEN PENGXIN DATA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510019978.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-07
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

When the existing user information transmission device is adapted to the fire alarm host protocol, construction personnel need to manually collect data and upgrade procedures. The process is complex and error-prone, resulting in poor system compatibility and maintenance.

Method used

By realizing automatic data acquisition and remote upgrade functions in the user information transmission device, using the equipment management platform for data encryption transmission and script development, simplifying the operation of construction personnel, and remote debugging is realized through reverse SSH tunnels.

Benefits of technology

It improves the compatibility and easy maintenance of user information transmission devices, reduces the operational complexity and error rate of construction personnel, and ensures the safety of the system and data integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854005A_ABST
    Figure CN119854005A_ABST
Patent Text Reader

Abstract

The invention relates to a method and system for quickly accessing a user information transmission device to a fire fighting system platform, and the method comprises the steps: transmitting an alarm host protocol to a user information transmission device manufacturer before the user information transmission device is installed on site; after a user information transmission device is installed on site, the device is accessed to an external network, defaults to establish network communication connection with a manufacturer platform, actively triggers an alarm host to give an alarm, sends original data of the alarm host to a manufacturer equipment management platform, carries out script development according to an alarm host protocol and the original data of the alarm host, and publishes the script to the manufacturer equipment management platform; the user information transmission device communicates with the manufacturer equipment management platform and downloads an adaptive script; original data acquisition of the alarm host is relatively convenient, the cost of docking and adapting to an alarm host protocol is relatively low, and the requirement on constructors is relatively low; equipment program debugging and upgrading are simple; the program framework ensures system security and data security, and prevents system crash caused by abnormality of the adaptive script.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fire protection systems, and more specifically, to a method and system for quickly accessing a user information transmission device to a fire protection system platform. Background Art

[0002] The user information transmission device is the core front-end device of the urban fire remote monitoring center, which is used to obtain and transmit various user alarm information and equipment status information obtained from the user fire control host. Due to the large number of existing traditional fire protection system brands, various host models, and no unified host access methods and access protocols, the user information transmission device is the core link of the access capability of the traditional fire protection system in the urban fire remote monitoring center. Its compatibility, adaptability and maintainability are extremely important.

[0003] Figure 1 The basic architecture diagram of the user information transmission device is shown. The user information transmission device generally uses a wired method (such as CAN / Ethernet / RS232 / RS485 serial port) to connect and obtain data from the fire alarm host, and transmits this data to the city fire remote monitoring center through a wired network or a wireless network (such as 2G / 4G / 5G);

[0004] like Figure 2 As shown, the process of developing existing user information transmission devices to adapt to the protocols of various brands of fire alarm hosts is as follows:

[0005] 1. Construction workers usually use a computer to connect to the alarm host through the serial port on site, and manually trigger the alarm host to alarm. At this time, the original data of the alarm message is collected through the serial port.

[0006] This process has the following disadvantages:

[0007] a. Construction personnel need to master the method of collecting the original data of alarm messages through the serial port, and have certain requirements on the serial port software configuration and operation capabilities of construction personnel.

[0008] b. Due to the performance issues of the computer serial port tool, the collected data may be incomplete or disordered.

[0009] 2. The construction personnel will send the original data and alarm host protocol to the manufacturer of the user information transmission device on site, and the manufacturer's developers will develop and adapt it.

[0010] 3. Since the adaptation program takes several days to develop, the construction workers temporarily leave the construction site after installing the user information transmission device, connecting the equipment to the alarm host, and connecting to the city remote monitoring center through the network.

[0011] This process has the following disadvantages:

[0012] a. The manufacturer's developers cannot verify the integrity of the collected data in a timely manner and can only verify it after obtaining the collected data.

[0013] b. When the manufacturer's developers are developing the adapter program, if they find that the collected data is incomplete, the construction personnel will need to return to the site to collect data again. This will not only increase the construction and debugging costs, but also extend the development time.

[0014] 4. The manufacturer of the user information transmission device sends the adapter program to the construction personnel, who then go to the site to upgrade the program.

[0015] This process has the following disadvantages:

[0016] a. Construction personnel need to be trained on program upgrades, which not only increases communication costs, but also places certain requirements on the software operation capabilities of construction personnel.

[0017] b. There is a possibility of upgrade failure during the program upgrade process, which may cause the system to crash and make it impossible to start the system.

[0018] c. If the system cannot be started, the device needs to be returned to the factory for repair.

[0019] 5. The construction personnel conduct debugging on site and feedback the problems to the manufacturer of the user information transmission device.

[0020] This process has the following disadvantages:

[0021] a. Problem location and debugging are very troublesome. The manufacturer's developers cannot remotely connect to the device to locate the problem, and can only guide the construction personnel to do some simple problem location and log collection through remote guidance.

[0022] b. It takes a certain amount of time for the manufacturer to fix the program problem. After the manufacturer fixes the program problem, the new program still needs to be sent to the construction personnel. The construction personnel need to go to the site again to upgrade the program and do testing.

[0023] c. Since the manufacturer's developers cannot remotely connect to the device to locate the problem, they can only guess the problem based on communication with the construction personnel and make program repairs. Since there may be deviations in the communication between the two parties, it may be necessary to modify the program multiple times, and the construction personnel may have to go to the site to upgrade the program multiple times.

[0024] In order to solve the above problems, a new method and system for quickly accessing a user information transmission device to a fire protection system platform is needed. Summary of the invention

[0025] The technical problem to be solved by the present invention is to provide a method for quickly accessing a user information transmission device to a fire protection system platform in view of the above-mentioned defects of the prior art, and also provide a system for quickly accessing a user information transmission device to a fire protection system platform.

[0026] The technical solution adopted by the present invention to solve its technical problem is:

[0027] A method for quickly accessing a fire protection system platform to a user information transmission device is constructed, wherein the method comprises the steps of:

[0028] Before installing the user information transmission device on site, send the alarm host protocol to the user information transmission device manufacturer;

[0029] After the user information transmission device is installed on site, the device is connected to the external network. According to the settings, the user information transmission device establishes a network communication connection with the manufacturer's platform by default to perform data encryption transmission;

[0030] Actively trigger the alarm host to alarm, and automatically send the collected alarm host original data to the manufacturer's equipment management platform according to the set user information transmission device, so that the integrity of the data can be obtained and verified in real time on the manufacturer's equipment management platform;

[0031] After developing the script based on the alarm host protocol and the original data of the alarm host, the adaptation script will be published to the manufacturer's equipment management platform;

[0032] After uploading, the management platform detection program automatically verifies the script syntax. When the script passes the verification, it is officially released and the MD5 value and version number of the file are automatically generated.

[0033] The user information transmission device communicates with the manufacturer's equipment management platform to obtain the latest version number of the specified adaptation script and compares it with the current version number of the local script. If it is detected that the version number of the management platform adaptation script has been updated, it will automatically request the management platform to download the adaptation script, otherwise no action will be taken.

[0034] The method for quickly accessing a user information transmission device to a fire protection system platform of the present invention further comprises remotely debugging the user information transmission device, wherein the remote debugging adopts:

[0035] Send a reverse SSH connection instruction to the user information transmission device through the device management platform, which includes the remote SSH server address, port, user name, and password information;

[0036] After receiving the reverse SSH connection instruction, the user information transmission device verifies the instruction, and after the verification instruction passes, initiates an SSH connection to the remote SSH device;

[0037] The remote SSH server receives the reverse SSH connection request and establishes a reverse SSH tunnel connection;

[0038] The remote SSH server sends a reverse SSH connection success response to the user information transmission device;

[0039] On the remote SSH server, remotely access the user information transmission device through the reverse SSH tunnel to remotely locate and repair problems.

[0040] The method for quickly accessing the user information transmission device to the fire protection system platform of the present invention, wherein the user information transmission device is remotely accessed through a reverse SSH tunnel, and remote positioning and problem repair are performed by:

[0041] The device management platform sends an SSH connection request to the remote SSH server;

[0042] The remote SSH server forwards the SSH connection request of the device management platform to the user information transmission device through the reverse SSH tunnel;

[0043] The user information transmission device receives the SSH connection request and returns a connection request success response to the remote SSH server through the reverse SSH tunnel;

[0044] The remote SSH server sends a successful SSH connection response to the device management platform;

[0045] The remote debugging interface of the device management platform prompts the developer that remote debugging has been successfully enabled.

[0046] The method for quickly accessing the fire protection system platform by the user information transmission device of the present invention, wherein the user information transmission device and the manufacturer management platform perform data encryption transmission using:

[0047] The user information transmission device provides AK and encryption algorithm to the manufacturer's equipment management platform;

[0048] The manufacturer management platform uses the AK / SK authentication mechanism in its authorization inspection process. When the user information transmission device reports data, it will bring AK and signature for request;

[0049] The manufacturer management platform decrypts the request according to the algorithm and verifies the content of the request. Only requests that pass the verification will be executed.

[0050] The method for quickly accessing a user information transmission device to a fire protection system platform described in the present invention, wherein the user information transmission device supports wired network and 2G / 4G / 5G wireless network communication with the manufacturer's equipment management platform; the user information transmission device provides HTTPS POST+JSON or MQTT+SSL+JSON to establish a communication connection with the manufacturer's equipment management platform; the data transmitted between the user information transmission device and the manufacturer's equipment management platform includes the device information and status of the user information transmission device, alarm host alarm data, fire protection facility data, reverse connection instructions, control instructions, and upgrade programs.

[0051] A system for quickly accessing a user information transmission device to a fire protection system platform, used to implement the method for quickly accessing a user information transmission device to a fire protection system platform as described above, wherein the system comprises an alarm host and a user information transmission device; the alarm host comprises a protocol adapter module; the user information transmission device comprises a data acquisition module, a management platform communication module and a remote upgrade module;

[0052] The data acquisition module is used to communicate with the alarm host and collect the original data of the alarm host;

[0053] The management platform communication module is used for encrypted transmission communication with the manufacturer's equipment management platform;

[0054] The protocol adapter module is used to parse the alarm host data;

[0055] The remote upgrade module is used to automatically detect and download the update adaptation script and upgrade it.

[0056] The user information transmission device of the present invention is quickly connected to the system of the fire protection system platform, wherein the user information transmission device also includes a remote debugging module;

[0057] The remote debugging module is used for remote debugging. The remote debugging adopts:

[0058] Send a reverse SSH connection instruction to the user information transmission device through the device management platform, which includes the remote SSH server address, port, user name, and password information;

[0059] After receiving the reverse SSH connection instruction, the user information transmission device verifies the instruction, and after the verification instruction passes, initiates an SSH connection to the remote SSH device;

[0060] The remote SSH server receives the reverse SSH connection request and establishes a reverse SSH tunnel connection;

[0061] The remote SSH server sends a reverse SSH connection success response to the user information transmission device;

[0062] On the remote SSH server, the user information transmission device is remotely accessed through the reverse SSH tunnel to perform remote positioning and problem repair.

[0063] The user information transmission device of the present invention is quickly connected to the system of the fire protection system platform, wherein the user information transmission device is remotely accessed through a reverse SSH tunnel, and remote positioning and problem repair are performed using:

[0064] The device management platform sends an SSH connection request to the remote SSH server;

[0065] The remote SSH server forwards the SSH connection request of the device management platform to the user information transmission device through the reverse SSH tunnel;

[0066] The user information transmission device receives the SSH connection request and returns a connection request success response to the remote SSH server through the reverse SSH tunnel;

[0067] The remote SSH server sends a successful SSH connection response to the device management platform;

[0068] The remote debugging interface of the device management platform prompts the developer that remote debugging has been successfully enabled.

[0069] The user information transmission device of the present invention is quickly connected to the fire protection system platform, wherein the user information transmission device and the manufacturer management platform perform data encryption transmission using:

[0070] The user information transmission device provides AK and encryption algorithm to the manufacturer's equipment management platform;

[0071] The manufacturer management platform uses the AK / SK authentication mechanism in its authorization inspection process. When the user information transmission device reports data, it will bring AK and signature for request;

[0072] The manufacturer management platform decrypts the request according to the algorithm and verifies the content of the request. Only requests that pass the verification will be executed.

[0073] The user information transmission device described in the present invention quickly accesses the system of the fire protection system platform, wherein the protocol adaptation module runs in a set safe sandbox / sandbox environment, is an adaptation script for the alarm host, different brands of alarm hosts correspond to different adaptation scripts, and each adaptation script is used to parse the data format protocol of a certain brand of alarm host; the module is developed in the lua scripting language and can be run directly without compilation, and takes effect immediately after loading without restarting.

[0074] The beneficial effects of the present invention are: applying the method of the present application has at least the following advantages:

[0075] 1. The original data collection of the alarm host is relatively convenient, the cost of docking and adapting the alarm host protocol is low, and the requirements for construction personnel are relatively low;

[0076] 2.Equipment program debugging and upgrading are simple;

[0077] 3. The program framework ensures system security and data security, and prevents system crashes caused by abnormal adaptation scripts. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be further described below in conjunction with the accompanying drawings and embodiments. The drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work:

[0079] Figure 1 It is a basic architecture diagram of an existing user information transmission device;

[0080] Figure 2 It is the process of developing existing user information transmission devices to adapt to the protocols of fire alarm hosts of various brands;

[0081] Figure 3 It is a flow chart of a method for quickly accessing a fire protection system platform by a user information transmission device according to a preferred embodiment of the present invention;

[0082] Figure 4 It is a method for quickly accessing the fire protection system platform by a user information transmission device of a preferred embodiment of the present invention;

[0083] Figure 5 It is a method for quickly accessing the fire protection system platform by a user information transmission device of a preferred embodiment of the present invention;

[0084] Figure 6 It is a method for quickly accessing the fire protection system platform by a user information transmission device of a preferred embodiment of the present invention;

[0085] Figure 7 It is a system principle block diagram of the user information transmission device of the preferred embodiment of the present invention quickly accessing the fire protection system platform. DETAILED DESCRIPTION

[0086] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the following will be described clearly and completely in combination with the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are partial embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.

[0087] A method and system for quickly accessing a fire protection system platform through a user information transmission device in a preferred embodiment of the present invention, such as Figure 3 See also Figure 4-Figure 6 , the method comprises the steps of:

[0088] S01: Before installing the user information transmission device on site, send the alarm host protocol to the manufacturer of the user information transmission device;

[0089] S02: After the user information transmission device is installed on site, the device is connected to the external network. According to the settings, the user information transmission device establishes a network communication connection with the manufacturer's platform by default to perform data encryption transmission;

[0090] S01 and S02 specifically include:

[0091] Before going to the site, the construction personnel will send the alarm host protocol to the manufacturer of the user information transmission device in advance, so that the manufacturer's developers can be familiar with the alarm host protocol in advance.

[0092] The construction personnel install the user information transmission device on site, connect the device to the alarm host, and access the external network. At this time, the user information transmission device will be connected to the manufacturer's equipment management platform by default.

[0093] The user information transmission device and the manufacturer's equipment management platform support multiple communication methods such as wired network, 2G / 4G / 5G wireless network, etc.

[0094] The user information transmission device provides HTTPS POST+JSON or MQTT+SSL+JSON to establish a communication connection with the manufacturer's equipment management platform, and performs encrypted data transmission to ensure data integrity and secure transmission.

[0095] The data transmitted between the user information transmission device and the manufacturer's equipment management platform includes the user information transmission device equipment information and status, alarm host alarm data, fire protection facility data, reverse connection instructions, control instructions, upgrade programs, etc.;

[0096] S03: Actively trigger the alarm host to alarm, and automatically send the collected original data of the alarm host to the manufacturer's equipment management platform according to the set user information transmission device, so that the integrity of the data can be obtained and verified in real time on the manufacturer's equipment management platform;

[0097] Specifically include:

[0098] The user information transmission device provides AK (Access Key ID), SK (Secret Access Key) and encryption algorithm to the manufacturer's equipment management platform.

[0099] The manufacturer management platform uses the AK / SK authentication mechanism in its authorization verification process. When the user information transmission device reports data, it will bring AK and signature (the signature obtained by encrypting the content using SK) for request.

[0100] The manufacturer management platform decrypts the request according to the algorithm and verifies the content of the request. Only requests that pass the verification will be executed.

[0101] When construction workers manually trigger the alarm host to alarm on site, the user information transmission device will automatically send the collected original data of the alarm host to the manufacturer's equipment management platform through an encrypted channel.

[0102] The manufacturer's equipment management platform stores the original data of the alarm host collected by the user's information transmission device locally for the manufacturer's developers to obtain.

[0103] Manufacturer developers can obtain and verify the integrity of data in real time on the manufacturer's equipment management platform;

[0104] S04: After developing the script according to the alarm host protocol and the original data of the alarm host, the adaptation script is published to the manufacturer's equipment management platform;

[0105] S05: After the upload is completed, the management platform detection program automatically verifies the script syntax of the adaptation script. When the script passes the verification, it is officially released and the MD5 value and version number of the file are automatically generated;

[0106] S06: The user information transmission device communicates with the manufacturer's equipment management platform to obtain the latest version number of the specified adaptation script, and compares it with the current version number of the local script. If it is detected that the version number of the adaptation script of the management platform has been updated, it automatically requests the management platform to download the adaptation script, otherwise no action is taken;

[0107] S04, S05 and S06 specifically include:

[0108] The manufacturer's developers will publish the adaptation script to the manufacturer's equipment management platform. After the upload is completed, the management platform detection program will automatically perform a syntax check on the script. Only scripts that pass the check will be officially released, and the MD5 value and version number of the file will be automatically generated.

[0109] The user information transmission device communicates with the manufacturer's equipment management platform, regularly obtains the latest version number of the specified adaptation script, and compares it with the current version number of the local script. If it detects that the version number of the management platform's adaptation script has been updated, it automatically requests the management platform to download the adaptation script. The management platform's adaptation script supports downloading via HTTP, FTP, etc.

[0110] After the user information transmission device downloads the latest version of the adaptation script to the local computer, before the script takes effect, the detection program automatically performs a syntax check on the script, and after the syntax check passes, an integrity check is also performed. The new version of the adaptation script will only be loaded and take effect by the main program after passing the syntax check and integrity check;

[0111] Compared with the existing technical solutions, the present invention only needs to install the user information transmission device, and the device will be connected to the manufacturer's platform by default as long as it is connected to the external network. The construction personnel only need to manually trigger the alarm host alarm on site, and the device will automatically send the collected alarm host original data to the manufacturer's platform; the alarm host original data collected by the present invention will be transmitted to the manufacturer's platform in real time, and the manufacturer's developers can obtain and verify the integrity of the data in the manufacturer's platform in real time;

[0112] It has at least the following advantages:

[0113] 1. The original data collection of the alarm host is relatively convenient, the cost of docking and adapting the alarm host protocol is low, and the requirements for construction personnel are relatively low;

[0114] 2.Equipment program debugging and upgrading are simple;

[0115] 3. The program framework ensures system security and data security, and prevents system crashes caused by abnormal adaptation scripts.

[0116] The method also includes:

[0117] S07: remotely debug the user information transmission device;

[0118] Specifically include:

[0119] The user information transmission device is generally installed in the on-site LAN environment, and the manufacturer's developers cannot directly access the device remotely in the external network. Therefore, the present invention adopts SSH reverse tunnel technology to realize remote access to the device.

[0120] The developer sends a reverse SSH connection instruction to the user information transmission device through the device management platform. The instruction contains information such as the remote SSH server address, port, user name, and password.

[0121] After receiving the reverse SSH connection instruction, the user information transmission device initiates an SSH connection to the remote SSH device and establishes a reverse SSH tunnel.

[0122] Developers can remotely access the user information transmission device through the reverse SSH tunnel on the remote SSH server to remotely locate and fix problems.

[0123] The specific implementation is described as follows:

[0124] like Figure 4As shown in the figure, the specific steps of the alarm host raw data collection process are as follows:

[0125] 1. After the user information transmission device is installed and connected to the external network, it will send a connection request to the manufacturer's equipment management platform by default.

[0126] 2. After receiving the device connection request, the manufacturer's device management platform verifies the request and establishes a network communication connection after the verification passes.

[0127] 3. The manufacturer's equipment management platform returns a connection success response to the user's information transmission device, and the two parties can subsequently perform encrypted data transmission through the connection.

[0128] 4. Construction workers manually trigger the alarm host to alarm on site.

[0129] 5. The alarm host generates alarm information.

[0130] 6. The user information transmission device will automatically collect the original data generated by the alarm host.

[0131] 7. The user information transmission device encrypts and transmits the alarm data to the manufacturer's equipment management platform.

[0132] 8. The manufacturer's equipment management platform stores the original data of the alarm host collected by the user information transmission device locally for the manufacturer's developers to obtain.

[0133] like Figure 5 As shown, the specific steps of the remote upgrade process of the user information transmission device are as follows:

[0134] 1. The manufacturer's developers publish the adaptation script to the manufacturer's device management platform.

[0135] 2. After the adaptation script is uploaded, the management platform detection program automatically verifies the script syntax. Only scripts that pass the verification will be officially released.

[0136] 3. The management platform passes the verification and returns a successful response to the script release.

[0137] 4. The user information transmission device communicates with the manufacturer's equipment management platform and regularly requests the latest version information of the specified adaptation script.

[0138] 5. The management platform returns the latest version information of the specified adaptation script, which includes the version number, file MD5 value, etc.

[0139] 6. The user information transmission device compares the latest version number of the adaptation script with the current version number of the local script. If the latest version number is greater than the current version number, it is considered that the adaptation script has been updated.

[0140] 7. If the user information transmission device detects that the version number of the management platform adaptation script has been updated, it will automatically request the management platform to download the adaptation script, and supports downloading via HTTP, FTP, etc.

[0141] 8. The management platform returns the latest version of the script file.

[0142] 9. After the user information transmission device downloads the latest version of the adaptation script to the local computer, the detection program automatically performs a syntax check on the script before the script takes effect. After the syntax check passes, an integrity check is also performed. The new version of the adaptation script will only be loaded and take effect by the main program after passing the syntax check and integrity check.

[0143] like Figure 6 As shown, the specific steps of the remote debugging process of the user information transmission device are as follows:

[0144] 1. The developer operates the device management platform interface and requests remote debugging operations.

[0145] 2. The device management platform sends a reverse SSH connection instruction to the user information transmission device, which contains information such as the remote SSH server address, port, user name, password, etc.

[0146] 3. After receiving the reverse SSH connection instruction, the user information transmission device verifies the instruction.

[0147] 4. After the user information transmission device verifies the instruction, it initiates a reverse SSH connection request to the remote SSH server.

[0148] 5. The remote SSH server receives the reverse SSH connection request and establishes a reverse SSH tunnel connection.

[0149] 6. The remote SSH server sends a reverse SSH connection success response to the user information transmission device.

[0150] 7. The user information transmission device sends a successful command execution response to the device management platform.

[0151] 8. The device management platform pops up a prompt "Remote debugging preparation is complete" in the interface.

[0152] 9. The developer operates the device management platform interface to open the remote debugging interface.

[0153] 10. The device management platform sends an SSH connection request to the remote SSH server.

[0154] 11. The remote SSH server forwards the SSH connection request of the device management platform to the user information transmission device through the reverse SSH tunnel.

[0155] 12. The user information transmission device receives the SSH connection request and returns a successful response to the connection request to the remote SSH server through the reverse SSH tunnel.

[0156] 13. The remote SSH server sends a successful SSH connection response to the device management platform.

[0157] 14. The remote debugging interface of the device management platform prompts the developer that "remote debugging is started successfully". Subsequent developers enter standard SSH commands in the remote debugging interface, which will be forwarded to the user information transmission device through the reverse SSH tunnel previously established on the remote SSH server. The user information transmission device receives the SSH command and returns the result of executing the command to the device management platform through the tunnel and displays it in the remote debugging interface.

[0158] A system for quickly accessing a user information transmission device to a fire protection system platform, used to implement the method for quickly accessing a user information transmission device to a fire protection system platform as described above, such as Figure 7 As shown, the system includes an alarm host and a user information transmission device; the alarm host includes a protocol adaptation module 100; the user information transmission device includes a data acquisition module 101, a management platform communication module 102 and a remote upgrade module 103;

[0159] The data acquisition module 101 is used to communicate with the alarm host and collect the original data of the alarm host; the module supports multiple communication modes such as 232 serial port, 485 serial port, CAN port, Ethernet port, etc.;

[0160] Management platform communication module 102, used for encrypted transmission communication with the manufacturer's equipment management platform;

[0161] The management platform communication module 102 specifically includes:

[0162] 1. The module supports multiple communication modes such as wired network, 2G / 4G / 5G wireless network, etc.

[0163] 2. The module provides HTTPS POST+JSON or MQTT+SSL+JSON to establish a communication connection with the manufacturer's device management platform, and encrypts data transmission to ensure data integrity and secure transmission.

[0164] 3. The data transmitted between this module and the manufacturer's equipment management platform includes the equipment information and status of the user information transmission device, alarm host alarm data, fire protection facility data, reverse connection instructions, control instructions, upgrade programs, etc.

[0165] The protocol adapter module 100 is used to parse the alarm host data;

[0166] The protocol adaptation module 100 specifically includes:

[0167] 1. The core of this module is the adaptation script of the alarm host. Different brands of alarm hosts correspond to different adaptation scripts. Each adaptation script is used to parse the data format protocol of a certain brand of alarm host.

[0168] 2. This module is developed with the Lua scripting language and can be run directly without compilation. It takes effect immediately after loading without restarting, making it convenient for developers to quickly debug and modify.

[0169] 3. The module runs in a specially built secure Sandbox environment. Even if the adapter has serious defects, it will not affect the external main program and operating system, and will not cause the system to crash;

[0170] Remote upgrade module 103, used for automatically detecting and downloading update adaptation scripts and upgrading;

[0171] The remote upgrade module 103 specifically includes:

[0172] 1. The module communicates with the manufacturer's equipment management platform, regularly obtains the latest version number of the specified adaptation script, and compares it with the current version number of the local script.

[0173] 2. If the module detects that the version number of the management platform adaptation script has been updated, it will automatically request the management platform to download the adaptation script. HTTP / FTP remote network download is supported.

[0174] 3. After the module downloads the latest version of the adaptation script to the local computer, it automatically performs a syntax check on the script before the script takes effect. After the syntax check passes, an integrity check is also performed. The new version of the adaptation script will only be loaded and take effect by the module after passing the syntax check and integrity check.

[0175] The user information transmission device further includes a remote debugging module 104; the remote debugging module is used to perform remote debugging;

[0176] The remote debugging module 104 specifically includes:

[0177] 1. This module can receive the reverse SSH connection instruction issued by the manufacturer's equipment management platform, initiate an SSH connection to the remote SSH server according to the remote SSH server address, port, user name, password and other information contained in the instruction, and establish a reverse SSH tunnel.

[0178] 2. Developers can remotely access the user information transmission device through the reverse SSH tunnel on the remote SSH server to remotely locate and fix problems.

[0179] 3. The module can receive and execute reset, restart and other remote debugging instructions issued by the manufacturer's equipment management platform.

[0180] The protocol adaptation module runs in a set safe sandbox environment. It is an adaptation script for the alarm host. Different brands of alarm hosts correspond to different adaptation scripts. Each adaptation script is used to parse the data format protocol of a certain brand of alarm host. The module is developed in the lua scripting language and can be run directly without compilation. It takes effect immediately after loading without restarting.

[0181] The program framework of the user information transmission device in the present invention includes two parts: one is the main application program, which is developed in C language. No matter what brand of alarm host is connected, the same set of main application programs are run; the other is the alarm host protocol adapter program, which is a script program written in Lua and runs in a specially constructed safe Sandbox environment. Each alarm host brand corresponds to an adapter script. This has the following advantages:

[0182] 1. The adapter is developed in the Lua scripting language and can be run directly without compilation, making it convenient for developers to quickly debug and modify.

[0183] 2. Sandbox is a security mechanism that allows programs to run in a relatively independent and isolated environment so that they do not affect external programs and ensure system security. When the adapter runs in a sandbox environment, even if the adapter has serious defects, it will not affect the external main program and operating system, and will not cause the system to crash.

[0184] 3. The adapter program supports remote upgrades. When upgrading, you only need to update the adapter program without upgrading the entire main program. At the same time, the program upgrade does not need to be restarted to take effect. This not only avoids the problem of construction personnel needing to upgrade the program on site, but also avoids the problem of upgrading the main program version incorrectly.

[0185] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.

Claims

1. A method for quickly accessing a fire protection system platform by a user information transmission device, characterized in that: The method comprises the steps of: Before installing the user information transmission device on site, send the alarm host protocol to the user information transmission device manufacturer; After the user information transmission device is installed on site, the device is connected to the external network. According to the settings, the user information transmission device establishes a network communication connection with the manufacturer's platform by default to perform data encryption transmission; Actively trigger the alarm host to alarm, and automatically send the collected alarm host original data to the manufacturer's equipment management platform according to the set user information transmission device, so that the integrity of the data can be obtained and verified in real time on the manufacturer's equipment management platform; After developing the script based on the alarm host protocol and the original data of the alarm host, the adaptation script will be published to the manufacturer's equipment management platform; After uploading, the management platform detection program automatically verifies the script syntax. When the script passes the verification, it is officially released and the MD5 value and version number of the file are automatically generated. The user information transmission device communicates with the manufacturer's equipment management platform to obtain the latest version number of the specified adaptation script and compares it with the current version number of the local script. If it is detected that the version number of the management platform adaptation script has been updated, it will automatically request the management platform to download the adaptation script, otherwise no action will be taken.

2. The method for quickly accessing a fire protection system platform by a user information transmission device according to claim 1, characterized in that: The method further includes remote debugging of the user information transmission device, wherein the remote debugging adopts: Send a reverse SSH connection instruction to the user information transmission device through the device management platform, which includes the remote SSH server address, port, user name, and password information; After receiving the reverse SSH connection instruction, the user information transmission device verifies the instruction, and after the verification instruction passes, initiates an SSH connection to the remote SSH device; The remote SSH server receives the reverse SSH connection request and establishes a reverse SSH tunnel connection; The remote SSH server sends a reverse SSH connection success response to the user information transmission device; On the remote SSH server, remotely access the user information transmission device through the reverse SSH tunnel to remotely locate and repair problems.

3. The method for quickly accessing a fire protection system platform by a user information transmission device according to claim 2, characterized in that: Remotely access the user information transmission device through the reverse SSH tunnel to remotely locate and repair the problem: The device management platform sends an SSH connection request to the remote SSH server; The remote SSH server forwards the SSH connection request of the device management platform to the user information transmission device through the reverse SSH tunnel; The user information transmission device receives the SSH connection request and returns a connection request success response to the remote SSH server through the reverse SSH tunnel; The remote SSH server sends a successful SSH connection response to the device management platform; The remote debugging interface of the device management platform prompts the developer that remote debugging has been successfully started.

4. The method for quickly accessing a fire protection system platform by a user information transmission device according to claim 1, characterized in that: The user information transmission device and the manufacturer management platform perform data encryption transmission using: The user information transmission device provides AK and encryption algorithm to the manufacturer's equipment management platform; The manufacturer management platform uses the AK / SK authentication mechanism in its authorization verification process. When the user information transmission device reports data, it will bring AK and signature for request; The manufacturer management platform decrypts the request according to the algorithm and verifies the content of the request. Only requests that pass the verification will be executed.

5. The method for quickly accessing a user information transmission device to a fire protection system platform according to claim 1, characterized in that: The user information transmission device and the manufacturer's equipment management platform support wired network and 2G / 4G / 5G wireless network communication; the user information transmission device provides HTTPS POST+JSON or MQTT+SSL+JSON to establish a communication connection with the manufacturer's equipment management platform; the data transmitted between the user information transmission device and the manufacturer's equipment management platform includes the user information transmission device equipment information and status, alarm host alarm data, fire protection facility data, reverse connection instructions, control instructions, and upgrade programs.

6. A system for quickly accessing a user information transmission device to a fire protection system platform, used to implement the method for quickly accessing a user information transmission device to a fire protection system platform as described in any one of claims 1 to 5, characterized in that: The system includes an alarm host and a user information transmission device; the alarm host includes a protocol adaptation module; the user information transmission device includes a data acquisition module, a management platform communication module and a remote upgrade module; The data acquisition module is used to communicate with the alarm host and collect the original data of the alarm host; The management platform communication module is used for encrypted transmission communication with the manufacturer's equipment management platform; The protocol adapter module is used to parse the alarm host data; The remote upgrade module is used to automatically detect and download the update adaptation script and upgrade it.

7. The system for quickly accessing the user information transmission device to the fire protection system platform according to claim 6 is characterized in that: The user information transmission device also includes a remote debugging module; The remote debugging module is used for remote debugging. The remote debugging adopts: Send a reverse SSH connection instruction to the user information transmission device through the device management platform, which includes the remote SSH server address, port, user name, and password information; After receiving the reverse SSH connection instruction, the user information transmission device verifies the instruction, and after the verification instruction passes, initiates an SSH connection to the remote SSH device; The remote SSH server receives the reverse SSH connection request and establishes a reverse SSH tunnel connection; The remote SSH server sends a reverse SSH connection success response to the user information transmission device; On the remote SSH server, the user information transmission device is remotely accessed through the reverse SSH tunnel to perform remote positioning and problem repair.

8. The system for quickly accessing the user information transmission device to the fire protection system platform according to claim 7 is characterized in that: Remotely access the user information transmission device through the reverse SSH tunnel to remotely locate and repair the problem: The device management platform sends an SSH connection request to the remote SSH server; The remote SSH server forwards the SSH connection request of the device management platform to the user information transmission device through the reverse SSH tunnel; The user information transmission device receives the SSH connection request and returns a connection request success response to the remote SSH server through the reverse SSH tunnel; The remote SSH server sends a successful SSH connection response to the device management platform; The remote debugging interface of the device management platform prompts the developer that remote debugging has been successfully started.

9. The system for quickly accessing the user information transmission device to the fire protection system platform according to claim 6, characterized in that: The user information transmission device and the manufacturer management platform use the following method to encrypt and transmit data: The user information transmission device provides AK and encryption algorithm to the manufacturer's equipment management platform; The manufacturer management platform uses the AK / SK authentication mechanism in its authorization verification process. When the user information transmission device reports data, it will bring AK and signature for request; The manufacturer management platform decrypts the request according to the algorithm and verifies the content of the request. Only requests that pass the verification will be executed.

10. The system for quickly accessing the user information transmission device to the fire protection system platform according to claim 6, characterized in that: The protocol adaptation module runs in a set safe sandbox environment and is an adaptation script for the alarm host. Different brands of alarm hosts correspond to different adaptation scripts, and each adaptation script is used to parse the data format protocol of a certain brand of alarm host; This module is developed with the Lua scripting language and can be run directly without compilation. It takes effect immediately after loading without restarting.