CN115103021B - Gateway access management method based on GAT1400 protocol - Google Patents
Gateway access management method based on GAT1400 protocol Download PDFInfo
- Publication number
- CN115103021B CN115103021B CN202210550666.9A CN202210550666A CN115103021B CN 115103021 B CN115103021 B CN 115103021B CN 202210550666 A CN202210550666 A CN 202210550666A CN 115103021 B CN115103021 B CN 115103021B
- Authority
- CN
- China
- Prior art keywords
- gat1400
- image data
- request
- target device
- protocol
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/26—Special purpose or proprietary protocols or architectures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/32—Circuits or arrangements for control or supervision between transmitter and receiver or between image input and image output device, e.g. between a still-image camera and its memory or between a still-image camera and a printer device
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides a gateway access management method based on a GAT1400 protocol, which is characterized in that a GAT1400 server process is set in a server corresponding to a gateway port so as to monitor and intercept a GAT1400 request from terminal equipment; and judging the support condition of the target device to the GAT1400 protocol, to which the GAT1400 request needs to be sent, so as to determine whether to convert the GAT1400 request; if conversion is not needed, the GAT1400 request is directly sent to the target equipment, and image data transmission between the terminal equipment and the target equipment is realized; if conversion is needed, when the number of the GAT1400 requests obtained by monitoring and intercepting meets a preset condition, a private SDK interface is called to convert each GAT1400 request, and then the converted GAT1400 requests are sent to target equipment, so that the SDK interface does not need to be called each time to perform request processing, the transmission efficiency of data files is improved, the data processing workload of a gateway port is reduced, and the data transmission efficiency of the gateway port is ensured.
Description
Technical Field
The invention relates to the technical field of gateway data transmission management, in particular to a gateway access management method based on a GAT1400 protocol.
Background
The GAT1400 is a transmission protocol for data files of pictures or video segments, which enables fast lossless transmission of corresponding data files. The GAT1400 is a specific data transmission protocol, and during the actual operation process, it needs to call the private SDK interface of the device itself to implement the corresponding data conversion transmission. When a plurality of devices are connected to a gateway port at the same time, in order to implement data file transmission under the GAT1400 transport protocol, an SDK interface needs to be respectively called for each device, which may reduce the transmission efficiency of the data file and increase the data processing workload of the gateway port, and thus the data transmission efficiency of the gateway port cannot be ensured.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a gateway access management method based on a GAT1400 protocol, which sets a GAT1400 server process in a server corresponding to a gateway port so as to monitor and intercept a GAT1400 request from terminal equipment; and judging the support condition of the target device to the GAT1400 protocol, to which the GAT1400 request needs to be sent, so as to determine whether to convert the GAT1400 request; if conversion is not needed, the GAT1400 request is directly sent to the target equipment, and image data transmission between the terminal equipment and the target equipment is realized; if conversion is needed, when the number of the intercepted GAT1400 requests meets a preset condition, a private SDK interface is called to convert each GAT1400 request, and then the converted GAT1400 requests are sent to target equipment; the management method distinguishes and identifies the intercepted GAT1400 request, and does not need to transfer an SDK interface for request processing every time, so that the transmission efficiency of the data file is improved, the data processing workload of the gateway port is reduced, and the data transmission efficiency of the gateway port is ensured.
The invention provides a gateway access management method based on a GAT1400 protocol, which comprises the following steps:
step S1, a GAT1400 server process is set in a server corresponding to a gateway port, and after the gateway port is started, the GAT1400 server process is indicated to enter a monitoring working mode so as to intercept a GAT1400 request from terminal equipment;
step S2, analyzing and processing the GAT1400 request, and determining target equipment to which the GAT1400 request needs to be sent; judging whether the GAT1400 request needs to be converted according to the support condition of the target device to the GAT1400 protocol;
step S3, if the GAT1400 request does not need to be converted, the GAT1400 request is directly sent to target equipment; according to the GAT1400 request, image data transmission between the terminal equipment and the target equipment is realized;
and step S4, if the GAT1400 requests need to be converted, when the number of the intercepted GAT1400 requests meets a preset condition, calling a private SDK interface to convert each GAT1400 request, and then sending the converted GAT1400 requests to target equipment.
Further, in step S1, setting a GAT1400 server process in a server corresponding to the gateway port specifically includes:
and loading the GAT1400 server process in the operating system of the server corresponding to the gateway port.
Further, in the step S1, after the gateway port is started, instructing the GAT1400 server process to enter a monitoring operation mode, so that intercepting the GAT1400 request from the terminal device specifically includes:
when the server is powered on to work or is awakened from a sleep state, the GAT1400 server process is instructed to enter a monitoring work mode, and an image data transmission request from external terminal equipment is monitored at a preset frequency;
analyzing and processing the image data transmission request obtained by monitoring, and determining a transmission protocol type corresponding to the image data transmission request; if the transmission protocol type belongs to the GAT1400 protocol, intercepting a corresponding image data transmission request so as to obtain a GAT1400 request from the terminal equipment; and if the transmission protocol type does not belong to the GAT1400, discarding the corresponding image data transmission request.
Further, in the step S2, analyzing the GAT1400 request, and determining the target device to which the GAT1400 request needs to be sent specifically includes:
extracting and obtaining the device address information of the target device to which the GAT1400 request needs to be sent from the GAT1400 request; and acquiring the operating system type information of the target equipment according to the equipment address information.
Further, in the step S2, determining whether the GAT1400 request needs to be converted according to the support of the target device to the GAT1400 protocol specifically includes:
determining whether the operating system version of the target device is compatible with and supports the GAT1400 protocol according to the operating system type information of the target device;
if the compatibility supports the GAT1400 protocol, the GAT1400 request does not need to be converted;
if the GAT1400 protocol is not compatibly supported, the GAT1400 request needs to be translated.
Further, in the step S3, if the GAT1400 request does not need to be converted, the GAT1400 request is directly sent to the target device; and according to the GAT1400 request, implementing image data transmission between the terminal device and the target device specifically includes:
and if the GAT1400 request does not need to be converted, directly sending the GAT1400 request to a target device, and constructing an image data transmission link between the terminal device and the target device according to the device address information of the target device contained in the GAT1400 request, so as to send the static image data or the dynamic image data from the terminal device to the target device.
Further, in the step S3, if the GAT1400 request does not need to be converted, the GAT1400 request is directly sent to the target device; and according to the GAT1400 request, implementing image data transmission between the terminal device and the target device further includes:
sending the static image data or the dynamic image data from a terminal device to a target device, obtaining a plurality of groups of row and column check values according to the static image data or the dynamic image data, and checking the data after the transmission of the static image data or the dynamic image data, wherein the process comprises the following steps:
step S301, obtaining a plurality of groups of row and column check values on the terminal equipment according to the static image data or the dynamic image data by using the following formula (1) and marking the values on the static image data or the dynamic image data,
in the above formula (1), F (i, m + 1) represents a result of calculationThe parity value of the ith row of the static image data or the dynamic image data is marked at the position of the (m + 1) th column of the ith row of the static image data or the dynamic image data; h (i, j) represents the pixel value at the position of the ith row and jth column pixel point of the static image data or the dynamic image data; m represents the number of pixel points of each line of the static image data or the dynamic image data; [] 2 Indicating that the data in the brackets is converted into binary data; sum of 2 { } represents the total number of digits with the value of 1 in the binary number in the brackets; (n +1,j) represents the calculated checking value of the jth column of the static image data or the dynamic image data and is marked at the position of the jth column of the n +1 row of the static image data or the dynamic image data; n represents the number of pixels in each column of the static image data or the dynamic image data;
step S302, obtaining a comprehensive check value according to the plurality of groups of row and column check values and labeling the comprehensive check value on the static image data or the dynamic image data by using the following formula (2) on the terminal equipment,
in the above formula (2), F (n +1, m + 1) represents the calculated integrated parity of the still image data or the moving image data and is marked at the position of the (n + 1) th row and the (m + 1) th column of the still image data or the moving image data;
step S303, sending the marked still image data or the marked moving image data to a target device, performing a comprehensive verification on the received still image data or the moving image data by the target device using the following formula (3), and controlling whether the target device discards the received still image data or the moving image data,
in the formula (3), N represents the number of pixels in each column of the still image data or the moving image data received by the target device; m represents the number of pixels in each line in the still image data or the moving image data received by the target device; h (a, b) represents the pixel value at the position of the pixel point at the row a and column b in the static image data or the dynamic image data received by the target device; h (a, M) represents a pixel value at the position of the pixel point at the mth row in the static image data or the dynamic image data received by the target device; h (N, b) represents a pixel value at a position of an nth row and a b th column of pixel points in the still image data or the moving image data received by the target device; | | represents the absolute value;
the static image data or the dynamic image data received by the target device need to be calculated and judged from top to bottom according to the formula (3), if the equality is found to be not established in the calculation and judgment process, the calculation is immediately stopped, namely the static image data or the dynamic image data received by the target device is incorrect, the target device needs to be controlled to discard the currently received static image data or the currently received dynamic image data, and the next time of receiving the static image data or the dynamic image data is waited; and if all formulas of the formula (3) are calculated and judged to be satisfied, removing the data of the last row and the last column of the received static image data or dynamic image data, and if the remaining data is accurate image data, indicating that the image data is successfully transmitted.
Further, in the step S3, if the GAT1400 requests need to be converted, when the number of the intercepted GAT1400 requests meets a predetermined condition, invoking a private SDK interface to convert each GAT1400 request specifically includes:
if the GAT1400 requests need to be converted, when the number of such GAT1400 requests obtained by interception reaches a preset number threshold, the private SDK interface is called from the server to sequentially convert all the intercepted GAT1400 requests, so that each GAT1400 request is converted into a request compatible with the transport protocol of the target device.
Further, in the step S4, the method further includes:
and sending the converted GAT1400 request to the target equipment, and then sending the GAT1400 request to the target equipment to construct an image data transmission link between the terminal equipment and the target equipment, so that the static image data or the dynamic image data is sent to the target equipment from the terminal equipment.
Compared with the prior art, the gateway access management method based on the GAT1400 protocol sets the GAT1400 server process in the server corresponding to the gateway port, so as to monitor and intercept the GAT1400 request from the terminal equipment; and judging the support condition of the target device to the GAT1400 protocol, to which the GAT1400 request needs to be sent, so as to determine whether to convert the GAT1400 request; if conversion is not needed, the GAT1400 request is directly sent to the target equipment, and image data transmission between the terminal equipment and the target equipment is realized; if conversion is needed, when the number of the intercepted GAT1400 requests meets a preset condition, a private SDK interface is called to convert each GAT1400 request, and then the converted GAT1400 requests are sent to target equipment; the management method distinguishes and identifies the intercepted GAT1400 request, and does not need to transfer an SDK interface for request processing every time, so that the transmission efficiency of the data file is improved, the data processing workload of the gateway port is reduced, and the data transmission efficiency of the gateway port is ensured.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a gateway access management method based on a GAT1400 protocol according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
Fig. 1 is a schematic flowchart of a gateway access management method based on the GAT1400 protocol according to an embodiment of the present invention. The gateway access management method based on the GAT1400 protocol comprises the following steps:
step S1, a GAT1400 server process is set in a server corresponding to a gateway port, and after the gateway port is started, the GAT1400 server process is indicated to enter a monitoring working mode so as to intercept a GAT1400 request from terminal equipment;
step S2, analyzing and processing the GAT1400 request, and determining target equipment to which the GAT1400 request needs to be sent; judging whether the GAT1400 request needs to be converted according to the support condition of the target device to the GAT1400 protocol;
step S3, if the GAT1400 request does not need to be converted, directly sending the GAT1400 request to a target device; according to the GAT1400 request, image data transmission between the terminal equipment and the target equipment is realized;
and step S4, if the GAT1400 requests need to be converted, when the number of the intercepted GAT1400 requests meets a preset condition, calling a private SDK interface to convert each GAT1400 request, and then sending the converted GAT1400 requests to target equipment.
The beneficial effects of the above technical scheme are: the gateway access management method based on the GAT1400 protocol sets a GAT1400 server process in a server corresponding to a gateway port so as to monitor and intercept a GAT1400 request from terminal equipment; and judging the support situation of the target equipment to the GAT1400 protocol, to which the GAT1400 request needs to be sent, so as to determine whether to convert the GAT1400 request; if conversion is not needed, the GAT1400 request is directly sent to the target equipment, and image data transmission between the terminal equipment and the target equipment is realized; if conversion is needed, when the number of the intercepted GAT1400 requests meets a preset condition, a private SDK interface is called to convert each GAT1400 request, and then the converted GAT1400 requests are sent to target equipment; the management method distinguishes and identifies the intercepted GAT1400 request, and does not need to transfer an SDK interface for request processing every time, so that the transmission efficiency of the data file is improved, the data processing workload of the gateway port is reduced, and the data transmission efficiency of the gateway port is ensured.
Preferably, in the step S1, the setting of the GAT1400 server process in the server corresponding to the gateway port specifically includes:
and loading the GAT1400 server process in the operating system of the server corresponding to the gateway port.
The beneficial effects of the above technical scheme are: and loading a corresponding GAT1400 server process in an operating system of a server corresponding to the gateway port, wherein the GAT1400 server process is specially used for monitoring a request corresponding to a GAT1400 transmission protocol, so that the GAT1400 request can be intercepted automatically, timely and comprehensively.
Preferably, in the step S1, after the gateway port is started, the step of instructing the GAT1400 server process to enter the monitoring operation mode, so that intercepting the GAT1400 request from the terminal device specifically includes:
when the server is powered on to work or is awakened from a sleep state, the GAT1400 server process is instructed to enter a monitoring work mode, and an image data transmission request from external terminal equipment is monitored at a preset frequency;
analyzing and processing the image data transmission request obtained by monitoring, and determining a transmission protocol type corresponding to the image data transmission request; if the transmission protocol type belongs to the GAT1400 protocol, intercepting a corresponding image data transmission request so as to obtain a GAT1400 request from the terminal equipment; and if the transmission protocol type does not belong to the GAT1400, discarding the corresponding image data transmission request.
The beneficial effects of the above technical scheme are: when the gateway port is started, the server enters a working state, the GAT1400 server process is indicated to enter a monitoring working mode, because the server corresponding to the gateway port is simultaneously connected with a plurality of external terminal devices, the GAT1400 server process can monitor image data transmission requests from different external terminal devices at a preset frequency, then the image data transmission requests are analyzed, and the image data transmission requests belonging to the GAT1400 requests are screened out, so that only the GAT1400 requests in the GAT1400 server process are reserved, and the GAT1400 requests are conveniently subjected to special analysis processing.
Preferably, in the step S2, analyzing the GAT1400 request, and determining the target device to which the GAT1400 request needs to be sent specifically includes:
extracting and obtaining the device address information of the target device to which the GAT1400 request needs to be sent from the GAT1400 request; and acquiring the operating system type information of the target equipment according to the equipment address information.
The beneficial effects of the above technical scheme are: the device address information of the target device to which the GAT1400 request needs to be sent is extracted from the GAT1400 request, so that the target device can be positioned in the whole network, and the transmission accuracy of subsequent image data is ensured.
Preferably, in the step S2, determining whether the GAT1400 request needs to be converted according to the support of the target device to the GAT1400 protocol specifically includes:
determining whether the operating system version of the target device is compatible with the GAT1400 protocol according to the operating system type information of the target device;
if the compatibility supports the GAT1400 protocol, the GAT1400 request does not need to be converted;
if the GAT1400 protocol is not compatibly supported, the GAT1400 request needs to be translated.
The beneficial effects of the above technical scheme are: by taking the operating system type information of the target equipment as a reference, whether the operating system version of the target equipment is compatible with and supports the GAT1400 protocol is judged, so that conversion of all GAT1400 requests can be avoided, and the request conversion workload of a server is reduced.
Preferably, in the step S3, if the GAT1400 request does not need to be converted, the GAT1400 request is directly sent to the target device; and according to the GAT1400 request, implementing image data transmission between the terminal device and the target device specifically includes:
and if the GAT1400 request does not need to be converted, directly sending the GAT1400 request to a target device, and constructing an image data transmission link between the terminal device and the target device according to the device address information of the target device contained in the GAT1400 request, so as to send the static image data or the dynamic image data from the terminal device to the target device.
The beneficial effects of the above technical scheme are: if the GAT1400 request does not need to be converted, the GAT1400 request is directly sent to the target device, so that an image data transmission link between the terminal device and the target device is directly constructed, static image data or dynamic image data is sent to the target device from the terminal device, and the image data can be quickly and efficiently transmitted without conversion processing of the GAT1400 request.
Preferably, in the step S3, if the GAT1400 request does not need to be converted, the GAT1400 request is directly sent to the target device; and according to the GAT1400 request, implementing image data transmission between the terminal device and the target device further includes:
sending the static image data or the dynamic image data from the terminal equipment to the target equipment, and obtaining a plurality of groups of row-column check values according to the static image data or the dynamic image data so as to check the data after the transmission of the static image data or the dynamic image data, wherein the process comprises the following steps:
step S301, using the following formula (1) on the terminal device, obtaining a plurality of groups of row and column check values according to the static image data or the dynamic image data and marking the values on the static image data or the dynamic image data,
in the above formula (1), F (i, m + 1) represents the calculated parity of the ith row of the still image data or the moving image data and is marked at the position of the (m + 1) th column of the ith row of the still image data or the moving image data; h (i, j) represents the pixel value at the pixel position of the ith row and the jth column of the static image data or the dynamic image data; m represents the number of pixels in each line of the static image data or the dynamic image data; [] 2 Indicating that the data in the brackets is converted into binary data; sum 2 { } represents the total number of digits with the value of 1 in the binary number in the brackets; (n +1,j) indicating the calculated checking value of the jth row of the static image data or the motion image data and labeling the position of the jth row of the n +1 row of the static image data or the motion image data; n represents the number of pixels in each column of the static image data or the dynamic image data;
step S302, using the following formula (2) on the terminal device, obtaining the comprehensive verification value according to the multiple groups of row and column verification values and labeling on the static image data or the dynamic image data,
in the above formula (2), F (n +1, m + 1) represents the calculated integrated parity of the still image data or the moving image data and is marked at the position of the (n + 1) th row and (m + 1) th column of the still image data or the moving image data;
step S303, sending the marked still image data or the marked moving image data to a target device, performing a comprehensive verification on the received still image data or the moving image data by the target device using the following formula (3), and controlling whether the target device discards the received still image data or the moving image data,
in the formula (3), N represents the number of pixels in each column of the still image data or the moving image data received by the target device; m represents the number of pixels in each line in the static image data or the dynamic image data received by the target device; h (a, b) represents the pixel value at the position of the pixel point in the row a and the column b in the static image data or the dynamic image data received by the target device; h (a, M) represents a pixel value at the position of the pixel point in the mth row of the static image data or the dynamic image data received by the target device; h (N, b) represents a pixel value at a position of a b-th row pixel point in the static image data or the dynamic image data received by the target device; the absolute value is obtained;
the static image data or the dynamic image data received by the target device needs to be calculated and judged from top to bottom according to the formula (3), if the equality is found not to be established in the calculation and judgment process, the calculation is immediately stopped, namely, the static image data or the dynamic image data received by the target device is incorrect, the target device needs to be controlled to discard the currently received static image data or the currently received dynamic image data, and the next time of receiving the static image data or the dynamic image data is waited; if all the formulas of the formula (3) are satisfied, the received data of the last row and the last column of the static image data or the dynamic image data are removed, and the remaining data is accurate image data, which indicates that the image data is successfully transmitted.
The beneficial effects of the above technical scheme are: by utilizing the formula (1), a plurality of groups of row and column check values are obtained according to the static image data or the dynamic image data and are marked on the static image data or the dynamic image data, so that the calculated check values of different formulas are carried out on rows and columns, and the reliability of later-period rechecking can be ensured; then, obtaining a comprehensive check value according to a plurality of groups of row and column check values by using the formula (2) and marking the comprehensive check value on the static image data or the dynamic image data, so as to obtain the check value again for the check value and achieve the purpose of double insurance check; and finally, comprehensively checking the received static image data or dynamic image data by using the formula (3), and controlling whether the target device discards the received static image data or dynamic image data, thereby verifying all checks, completing the successful reception of the static image data or dynamic image data under the condition of ensuring that all check information is successfully checked, and ensuring the accuracy and the transmission reliability of the static image data or dynamic image data.
Preferably, in the step S3, if the GAT1400 requests need to be converted, when the number of the intercepted GAT1400 requests meets a predetermined condition, invoking a private SDK interface to convert each GAT1400 request specifically includes:
if the GAT1400 requests need to be converted, when the number of such GAT1400 requests obtained by interception reaches a preset number threshold, calling a private SDK interface from the server to sequentially convert all the GAT1400 requests intercepted by interception, thereby converting each GAT1400 request into a request compatible with the target device in terms of transmission protocol.
The beneficial effects of the above technical scheme are: if the GAT1400 requests need to be converted, after a certain number of GAT1400 requests needing to be converted are intercepted and collected in a centralized mode, a private SDK interface is called from the server to convert all the intercepted GAT1400 requests, and the conversion efficiency is improved.
Preferably, in step S4, the method further comprises:
and sending the converted GAT1400 request to the target equipment, and then sending the GAT1400 request to the target equipment to construct an image data transmission link between the terminal equipment and the target equipment, so that the static image data or the dynamic image data is sent to the target equipment from the terminal equipment.
The beneficial effects of the above technical scheme are: and sending the converted GAT1400 request to the target equipment, and then sending the GAT1400 request to the target equipment, so that image data transmission links between different terminal equipment and the target equipment can be established at the same time, and parallel transmission of image data is realized.
As can be seen from the content of the foregoing embodiment, in the gateway access management method based on the GAT1400 protocol, a GAT1400 server process is set in a server corresponding to a gateway port, so as to monitor and intercept a GAT1400 request from a terminal device; and judging the support condition of the target device to the GAT1400 protocol, to which the GAT1400 request needs to be sent, so as to determine whether to convert the GAT1400 request; if conversion is not needed, the GAT1400 request is directly sent to the target equipment, and image data transmission between the terminal equipment and the target equipment is realized; if conversion is needed, when the number of the GAT1400 requests obtained by monitoring and intercepting meets a preset condition, a private SDK interface is called to convert each GAT1400 request, and then the converted GAT1400 requests are sent to target equipment; the management method distinguishes and identifies the intercepted GAT1400 request, and does not need to transfer an SDK interface for request processing every time, so that the transmission efficiency of the data file is improved, the data processing workload of the gateway port is reduced, and the data transmission efficiency of the gateway port is ensured.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (9)
1. The gateway access management method based on the GAT1400 protocol is characterized by comprising the following steps:
step S1, a GAT1400 server process is set in a server corresponding to a gateway port, and after the gateway port is started, the GAT1400 server process is indicated to enter a monitoring working mode so as to intercept a GAT1400 request from terminal equipment;
step S2, analyzing and processing the GAT1400 request, and determining target equipment to which the GAT1400 request needs to be sent; judging whether the GAT1400 request needs to be converted according to the support condition of the target device to the GAT1400 protocol;
step S3, if the GAT1400 request does not need to be converted, the GAT1400 request is directly sent to target equipment; realizing image data transmission between the terminal equipment and the target equipment according to the GAT1400 request;
and step S4, if the GAT1400 requests need to be converted, when the number of the intercepted GAT1400 requests meets a preset condition, calling a private SDK interface to convert each GAT1400 request, and then sending the converted GAT1400 requests to target equipment.
2. The gateway access management method based on GAT1400 protocol of claim 1, wherein:
in step S1, the setting of the GAT1400 server process in the server corresponding to the gateway port specifically includes:
and loading the GAT1400 server process in the operating system of the server corresponding to the gateway port.
3. The gateway access management method based on the GAT1400 protocol of claim 2, wherein:
in the step S1, after the gateway port is started, instructing the GAT1400 server process to enter a monitoring operation mode, so that intercepting the GAT1400 request from the terminal device specifically includes:
when the server is powered on to work or is awakened from a sleep state, the GAT1400 server process is instructed to enter a monitoring work mode, and an image data transmission request from external terminal equipment is monitored at a preset frequency;
analyzing and processing the image data transmission request obtained by monitoring, and determining a transmission protocol type corresponding to the image data transmission request; if the transmission protocol type belongs to the GAT1400 protocol, intercepting a corresponding image data transmission request so as to obtain a GAT1400 request from the terminal equipment; and if the transmission protocol type does not belong to the GAT1400, discarding the corresponding image data transmission request.
4. The gateway access management method based on GAT1400 protocol according to claim 1, wherein:
in step S2, analyzing the GAT1400 request, and determining the target device to which the GAT1400 request needs to be sent specifically includes:
extracting and obtaining the device address information of the target device to which the GAT1400 request needs to be sent from the GAT1400 request; and acquiring the operating system type information of the target equipment according to the equipment address information.
5. The gateway access management method based on the GAT1400 protocol of claim 4, wherein:
in the step S2, determining whether the GAT1400 request needs to be converted according to the support of the target device to the GAT1400 protocol specifically includes:
determining whether the operating system version of the target device is compatible with and supports the GAT1400 protocol according to the operating system type information of the target device;
if the compatibility supports the GAT1400 protocol, the GAT1400 request does not need to be converted; if the GAT1400 protocol is not compatibly supported, the GAT1400 request needs to be translated.
6. The gateway access management method based on GAT1400 protocol of claim 1, wherein:
in the step S3, if the GAT1400 request does not need to be converted, the GAT1400 request is directly sent to the target device; and according to the GAT1400 request, implementing image data transmission between the terminal device and the target device specifically includes:
and if the GAT1400 request does not need to be converted, directly sending the GAT1400 request to a target device, and constructing an image data transmission link between the terminal device and the target device according to the device address information of the target device contained in the GAT1400 request, so as to send the static image data or the dynamic image data from the terminal device to the target device.
7. The gateway access management method based on the GAT1400 protocol of claim 6, wherein:
in the step S3, if the GAT1400 request does not need to be converted, the GAT1400 request is directly sent to the target device; and according to the GAT1400 request, implementing image data transmission between the terminal device and the target device further includes:
sending the static image data or the dynamic image data from a terminal device to a target device, and obtaining a plurality of groups of row-column check values according to the static image data or the dynamic image data, thereby checking the data after the transmission of the static image data or the dynamic image data, wherein the process is as follows:
step S301, obtaining a plurality of groups of row and column check values on the terminal equipment according to the static image data or the dynamic image data by using the following formula (1) and marking the values on the static image data or the dynamic image data,
in the above formula (1), F (i, m + 1) represents a check value of the ith row of the still image data or the moving image data obtained by calculation and is marked on the still image dataOr the position of the ith row and the (m + 1) th column of the dynamic image data; h (i, j) represents the pixel value at the position of the ith row and jth column pixel point of the static image data or the dynamic image data; m represents the number of pixel points of each line of the static image data or the dynamic image data; [] 2 Indicating that the data in the brackets is converted into binary data; sum 2 { } represents the total number of digits with the value of 1 in the binary number in the brackets; (n +1,j) represents the calculated checking value of the jth column of the static image data or the dynamic image data and is marked at the position of the jth column of the n +1 row of the static image data or the dynamic image data; n represents the number of pixels in each column of the static image data or the dynamic image data;
step S302, obtaining a comprehensive check value according to the plurality of groups of row and column check values and marking the comprehensive check value on the static image data or the dynamic image data by using the following formula (2) on the terminal equipment,
in the above formula (2), F (n +1, m + 1) represents the calculated integrated parity of the still image data or the moving image data and is marked at the position of the (n + 1) th row and (m + 1) th column of the still image data or the moving image data;
step S303, sending the marked still image data or the marked moving image data to a target device, performing a comprehensive verification on the received still image data or the moving image data by the target device using the following formula (3), and controlling whether the target device discards the received still image data or the moving image data,
in the formula (3), N represents the number of pixels in each column of the still image data or the moving image data received by the target device; m represents the number of pixels in each line in the still image data or the moving image data received by the target device; h (a, b) represents the pixel value at the position of the pixel point at the row a and column b in the static image data or the dynamic image data received by the target device; h (a, M) represents a pixel value at the position of the pixel point at the mth row in the static image data or the dynamic image data received by the target device; h (N, b) represents a pixel value at the position of the pixel point at the line b of the N-th row in the static image data or the dynamic image data received by the target device; the absolute value is obtained;
the static image data or the dynamic image data received by the target device needs to be calculated and judged from top to bottom according to the formula (3), if the equality is found not to be established in the calculation and judgment process, the calculation is immediately stopped, namely, the static image data or the dynamic image data received by the target device is incorrect, the target device needs to be controlled to discard the currently received static image data or the currently received dynamic image data, and the next time of receiving the static image data or the dynamic image data is waited; and if all formulas of the formula (3) are calculated and judged to be satisfied, removing the data of the last row and the last column of the received static image data or dynamic image data, and if the remaining data is accurate image data, indicating that the image data is successfully transmitted.
8. The gateway access management method based on GAT1400 protocol of claim 1, wherein:
in the step S4, if the GAT1400 requests need to be converted, when the number of the intercepted GAT1400 requests meets a predetermined condition, invoking a private SDK interface to convert each GAT1400 request specifically includes:
if the GAT1400 requests need to be converted, when the number of such GAT1400 requests obtained by interception reaches a preset number threshold, the private SDK interface is called from the server to sequentially convert all the intercepted GAT1400 requests, so that each GAT1400 request is converted into a request compatible with the transport protocol of the target device.
9. The gateway access management method based on the GAT1400 protocol of claim 8, wherein:
in step S4, the method further includes:
and sending the converted GAT1400 request to the target device, and constructing an image data transmission link between the terminal device and the target device, so as to send the static image data or the dynamic image data from the terminal device to the target device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210550666.9A CN115103021B (en) | 2022-05-18 | 2022-05-18 | Gateway access management method based on GAT1400 protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210550666.9A CN115103021B (en) | 2022-05-18 | 2022-05-18 | Gateway access management method based on GAT1400 protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115103021A CN115103021A (en) | 2022-09-23 |
CN115103021B true CN115103021B (en) | 2023-03-24 |
Family
ID=83289706
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210550666.9A Active CN115103021B (en) | 2022-05-18 | 2022-05-18 | Gateway access management method based on GAT1400 protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115103021B (en) |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10325225B2 (en) * | 2012-05-09 | 2019-06-18 | Nasdaq Technology Ab | Methods and arrangements for an automated exchange system |
CN111064694A (en) * | 2018-10-16 | 2020-04-24 | 深圳市云帆加速科技有限公司 | Method and device for realizing protocol gateway |
CN111405035A (en) * | 2020-03-13 | 2020-07-10 | 北京旷视科技有限公司 | Data transmission method and data channel system |
-
2022
- 2022-05-18 CN CN202210550666.9A patent/CN115103021B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN115103021A (en) | 2022-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110062025B (en) | Data acquisition method, device, server and storage medium | |
CN107688530B (en) | Software testing method and device | |
CN109684155B (en) | Monitoring configuration method, device, equipment and readable storage medium | |
CN110231998B (en) | Detection method and device for distributed timing task and storage medium | |
CN115103021B (en) | Gateway access management method based on GAT1400 protocol | |
CN109194755B (en) | MQ-based mobile device data processing method and system | |
CN115545058A (en) | Water meter data analysis method and system and readable storage medium | |
CN115220995A (en) | Agent probe-based micro-service full-link analysis method | |
CN1925432A (en) | Method for realizing tax controlled data monitoring of POS system | |
CN1097371C (en) | Network manager system | |
CN115951923B (en) | Subscription event management method, display system, device and storage medium | |
CN117271234A (en) | Fault diagnosis method and device, storage medium and electronic device | |
CN111324482A (en) | Computer application program running data fault processing system | |
CN1744514A (en) | Method and device for obtaining information of operation and failure state for network equipment | |
CN115473666A (en) | Intelligent Internet of things data transmission method and system | |
CN107193933A (en) | A kind of source pump Mobile Server control system and method | |
CN113965447B (en) | Online cloud diagnosis method, device, system, equipment and storage medium | |
CN100340991C (en) | Cross-platform computer testing system and method | |
CN114245070B (en) | Method and system for centralized viewing of regional monitoring content | |
CN111224823A (en) | Method based on different network log analysis | |
EP4300306A1 (en) | Streaming media processing method and apparatus based on inference service and electronic device | |
CN117061072B (en) | Message transmission method, device, equipment and storage medium | |
CN110990147B (en) | Method and system for processing task | |
CN115174693B (en) | Hierarchical blockchain cross-chain interaction method | |
CN114547129B (en) | Distributed satellite data receiving system and method based on big data storage platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |