Method for detecting and checking FXS interface state of far-end access equipment
FXS interface pictures are obtained and processed through high-definition cameras, combined with deep learning models or feature extraction and hashing algorithm technology to determine the interface status, solve the problems of high cost, technical difficulty and data deviation of detecting the FXS interface status in the prior art, and achieve fast and accurate interface status detection.
Patent Information
- Application Number
- CN202411559483.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-03-07
AI Technical Summary
The prior art has problems such as high cost, high technical difficulty, and data deviation when detecting the status of the FXS interface, and it is impossible for remote personnel to intuitively view the status of the interface.
The high-definition camera is used to obtain FXS interface pictures, and the deformity correction is performed through perspective transformation technology, median filtering and denoising, contrast stretching enhancement pictures, and then the interface status is judged by deep learning models or feature extraction and hashing algorithm technology, and the status information and pictures are automatically sent to the remote server.
It realizes the rapid and accurate acquisition of FXS interface status information, reduces the need for on-site inspection, avoids data deviation, and is low in cost and technical difficulty.
Smart Images

Figure CN119580182A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of interface status detection, and in particular to a method for detecting and checking the status of an FXS interface of a remote access device. Background Art
[0002] FXS interface is a voice interface, which is a line-end connection between a digital telephone exchange system and a POTS phone. It simulates the extension interface of PABX and can realize the connection between an ordinary telephone and a multiplexer; in short, it is an interface directly connected to ordinary analog telephones, fax machines, and IP phones.
[0003] For example, in the existing patent named: Digital Switch Test System, Digital Switch and Computer (patent application number CN200910112194.3), the name of the network card and the first interface status return value are obtained through the input and output control request associated with the network socket; after the UDP socket is created, the file descriptor of the PROC file system can be obtained, and the name of the network card in the router and the WAN interface status return value can be obtained by using the obtained file descriptor and the input and output control request associated with the UDP socket. The WAN interface status return value is 0x0 or 0x10, wherein when the first interface status return value is 0x0, it indicates that the first interface is in a disconnected state. When the first interface status return value is 0x10, it indicates that the first interface is in a connected state, but a virtual file system needs to be created, which is costly and technically difficult; and due to electromagnetic interference in the operation of the equipment around the FXS interface, the collected interface status information has data deviation and other problems.
[0004] To this end, we provide a method for detecting and checking the status of the FXS interface of a remote access device to solve the above problem. Summary of the invention
[0005] In view of the problems existing in the above-mentioned prior art, the present invention provides a method for detecting and verifying the status of an FXS interface of a remote access device, which solves the problems of high cost, great technical difficulty, data deviation, etc. when detecting an FXS interface in the prior art.
[0006] In order to achieve the above object, the present invention adopts a method for detecting the status of an FXS interface of a remote access device, comprising the following steps:
[0007] S1: Obtain the FXS interface image by using a high-definition camera to take a picture of the FXS interface of the remote access device;
[0008] S2: Image distortion correction, using perspective transformation technology to correct the distortion of FXS interface images;
[0009] S3: Image denoising, using median filtering to remove impulse noise in the image and retain the edge and structural features of the image;
[0010] S4: Image enhancement, using the contrast stretching method to enhance the contrast of the image after removing noise;
[0011] S5: Image comparison: FXS interface images of different states are stored in the system database of the remote server. Based on the deep learning model, the similarity of the images is measured by training the neural network to determine the state of the FXS interface image.
[0012] S6: The data is automatically sent to the remote server. The acquired status information of the FXS interface image and the corresponding FXS interface image are sent to the remote server by using a wireless sending device or a network cable. The remote personnel can intuitively obtain the status information and the FXS interface image of the FXS interface through the display screen on the remote server.
[0013] As a further optimization of the above solution, in S1, at least two symmetrical sides and front and rear outer ends of the FXS interface are photographed, and at least three pictures are retained.
[0014] As a further optimization of the above solution, the FXS interface pictures in different states in S5 include FXS interface pictures in a disconnected state, a connected state, and a semi-connected state;
[0015] There are at least three pictures in each state, which are pictures of the opposite side and the external end around the FXS interface.
[0016] As a further optimization of the above solution, in S6, the remote personnel further checks through the FXS interface picture to verify whether the status information of the FXS interface obtained by the detection and inspection method is correct.
[0017] As a further optimization of the above solution, the FXS interface picture is in color.
[0018] As a further optimization of the above solution, scale lines are provided on the outer surface of the external device port at the FXS interface.
[0019] As a further optimization of the above solution, a plurality of scale lines are provided, the plurality of scale lines are equidistantly distributed along the depth direction of the external device port at the FXS interface, and the plurality of scale lines have different colors.
[0020] As a further optimization of the above scheme, the perspective transformation technology is used in S2 to perform perspective transformation processing on the FXS interface image when performing deformity correction on the FXS interface image. The original image is projected and mapped and transformed to a new image plane to eliminate the distortion caused by the shooting angle and the curvature of the device surface.
[0021] As a further optimization of the above solution, the comparison of pictures in S5 is implemented based on feature extraction and matching technology and hash algorithm technology.
[0022] As a further optimization of the above scheme, the feature extraction and matching technology is to extract features from images and then compare the similarity of the features;
[0023] The hash algorithm-based technology generates a "fingerprint" string for each image, and then compares the fingerprints of different images.
[0024] The present invention provides a method for detecting and verifying the status of an FXS interface of a remote access device, which has the following beneficial effects:
[0025] The present invention provides a method for detecting and inspecting the status of an FXS interface of a remote access device. The method for detecting and inspecting the status of an FXS interface of a remote access device helps remote personnel to quickly and accurately obtain the status information of the FXS interface, replacing on-site inspection. The method for capturing the status of the FXS interface of the remote access device based on a high-definition camera not only replaces the problem of data deviation easily occurring through various sensors and system detection in the prior art, but also solves the problem that the remote personnel cannot directly see the FXS interface picture to directly determine the status of the FXS interface through various sensors and system detection. The method has low cost and low technical difficulty.
[0026] With reference to the following description and drawings, a specific embodiment of the present invention is disclosed in detail, indicating the manner in which the principles of the present invention can be adopted. It should be understood that the scope of the embodiments of the present invention is not limited thereby, and within the spirit and scope of the appended claims, the embodiments of the present invention include many changes, modifications and equivalents. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A flow chart of a method for detecting and checking the status of an FXS interface of a remote access device according to the present invention;
[0028] Figure 2 A first relative side view of the periphery of the FXS interface of the present invention;
[0029] Figure 3 A second relative side view of the periphery of the FXS interface of the present invention;
[0030] Figure 4 This is a picture of the external end of the FXS interface of the present invention;
[0031] Figure 5 This is a third side view of the FXS interface periphery of the present invention;
[0032] Figure 6This is a picture showing that the outer surface of the external device port at the FXS interface of the present invention is provided with scale lines. DETAILED DESCRIPTION
[0033] Please refer to the instruction manual Figure 1-6 The present invention provides a technical solution: a method for detecting the status of an FXS interface of a remote access device, comprising the following steps:
[0034] The first step is to obtain the FXS interface image. Use a high-definition camera to photograph the FXS interface of the remote access device. During the shooting process, at least take pictures of the symmetrical two sides and the front and back ends of the FXS interface, and keep at least three pictures.
[0035] Among them, refer to the attached Figure 2 As shown in the figure, the left and right sides of the picture are the FXS interface cable and the FXS interface device. Figure 2 This is a picture of the outer side of the FXS interface; Figure 3 Another picture of the FXS interface periphery (with the attached Figure 2 the opposite side); Figure 4 This is a picture of the external end of the FXS interface (intuitively indicating the status of the FXS interface); Figure 4 Usually, the shooting angle is controlled at an inclination of 5-30°, which is more convenient for intuitively capturing the status of the FXS interface. The remote personnel can intuitively determine the status of the FXS interface through the external image of the FXS interface.
[0036] It should be noted that the pictures actually taken are in color, which is more intuitive, and as an extension, please refer to the attached Figure 6 As shown, the present invention can also make a more intuitive judgment by providing scale lines on the outer surface of the external device port at the FXS interface.
[0037] The second step is to correct the image distortion. The perspective transformation technology is used to correct the distortion of the FXS interface image. The perspective transformation processing is performed on the FXS interface image. The original image is projected and mapped and transformed to the new image plane to eliminate the distortion caused by the shooting angle and the curvature of the device surface.
[0038] The third step is image denoising, which uses the median filtering method to remove impulse noise in the image and retain the edge and structural features of the image.
[0039] The fourth step is image enhancement, which uses the contrast stretching method to enhance the contrast of the image after removing noise.
[0040] In the present invention, by sequentially performing deformity correction, noise reduction and enhancement on the image, the clarity of the image can be increased, the accuracy of the data can be ensured, and the problem of electromagnetic interference can be reduced.
[0041] The fifth step is image comparison. The system database of the remote server stores images of FXS interfaces in different states, such as disconnected state (images of the area around and outside the FXS interface), connected state (images of the area around and outside the FXS interface), and semi-connected state (images of the area around and outside the FXS interface). Based on the deep learning model, the neural network is trained to measure the similarity of images, thereby determining the state of the FXS interface image.
[0042] As an alternative, the present invention can also use feature extraction and matching technology and hash algorithm technology to achieve image comparison; specifically, feature extraction and matching technology is to extract features from images and then compare the similarity of features. The feature matching method can better handle the geometric transformation and illumination changes of images, and is suitable for image comparison in complex scenes; based on the hash algorithm technology, a "fingerprint" string is generated for each image, and then the fingerprints of different images are compared. Commonly used hash algorithms include aHash and pHash. This method is suitable for fast retrieval and similarity calculation of large-scale image databases.
[0043] In the sixth step, the data is automatically sent to the remote server. The status information of the FXS interface image and the corresponding FXS interface image are sent to the remote server by a wireless sending device or a network cable. The remote personnel can intuitively obtain the status information and FXS interface image of the FXS interface through the display screen on the remote server. The personnel can also further spot check whether the status information of the FXS interface obtained by the detection and inspection method is correct through the FXS interface image.
[0044] In summary, the FXS interface status detection and inspection method of the remote access device of the present invention helps remote personnel to quickly and accurately obtain FXS interface status information, replacing on-site inspection; and the acquisition method of photographing the FXS interface of the remote access device based on a high-definition camera not only replaces the problems of data deviation that are prone to occur through various sensors and system detection in the prior art, but also solves the problem that various sensors and system detections cannot enable remote personnel to directly see the FXS interface picture to directly determine the FXS interface status.
Claims
1. A method for detecting and checking the status of an FXS interface of a remote access device, characterized in that: The following steps are involved: S1: Obtain the FXS interface image by using a high-definition camera to take a picture of the FXS interface of the remote access device; S2: Image distortion correction, using perspective transformation technology to correct the distortion of FXS interface images; S3: Image denoising, using median filtering to remove impulse noise in the image and retain the edge and structural features of the image; S4 : Image enhancement, using the contrast stretching method to enhance the contrast of the image after removing noise; S5: Image comparison: FXS interface images of different states are stored in the system database of the remote server. Based on the deep learning model, the similarity of the images is measured by training the neural network to determine the state of the FXS interface image. S6: The data is automatically sent to the remote server. The acquired status information of the FXS interface image and the corresponding FXS interface image are sent to the remote server by using a wireless sending device or a network cable. The remote personnel can intuitively obtain the status information and the FXS interface image of the FXS interface through the display screen on the remote server.
2. A method for detecting and verifying the status of an FXS interface of a remote access device according to claim 1, characterized in that: In S1, at least two symmetrical sides and front and rear outer ends of the FXS interface are photographed, and at least three pictures are retained.
3. A method for detecting and verifying the status of an FXS interface of a remote access device according to claim 1, characterized in that: The FXS interface images in different states in S5 include FXS interface images in a disconnected state, a connected state, and a semi-connected state; There are at least three pictures in each state, which are pictures of the opposite side and the external end around the FXS interface.
4. A method for detecting and verifying the status of an FXS interface of a remote access device according to claim 1, characterized in that: In S6, the remote personnel further checks the FXS interface picture to verify whether the status information of the FXS interface obtained by the detection and inspection method is correct.
5. The method for detecting and verifying the status of the FXS interface of a remote access device according to claim 1, characterized in that: The FXS interface pictures are in color.
6. A method for detecting and verifying the status of an FXS interface of a remote access device according to claim 1, characterized in that: The outer surface of the external device port at the FXS interface is provided with scale lines.
7. A method for detecting and verifying the status of an FXS interface of a remote access device according to claim 6, characterized in that: There are a plurality of scale lines, which are equally spaced along the depth direction of the external device port at the FXS interface, and have different colors.
8. A method for detecting and verifying the status of an FXS interface of a remote access device according to claim 1, characterized in that: When the perspective transformation technology is used in S2 to correct the deformity of the FXS interface image, the perspective transformation processing is performed on the FXS interface image. The original image is projected and mapped and transformed to a new image plane to eliminate the distortion caused by the shooting angle and the curvature of the device surface.
9. A method for detecting and verifying the status of an FXS interface of a remote access device according to claim 1, characterized in that: The comparison of the images in S5 is implemented by using a feature extraction and matching technology and a hash algorithm technology.
10. A method for detecting and verifying the status of an FXS interface of a remote access device according to claim 9, characterized in that: The feature extraction and matching technology is to extract features from images and then compare the similarity of the features; The hash algorithm-based technology generates a "fingerprint" string for each image, and then compares the fingerprints of different images.
Citation Information
Patent Citations
Digital exchange test system, digital exchange and computer
CN101610428A