CN116915329A - Terminal automatic access method, terminal, base station, communication system and storage medium - Google Patents

Terminal automatic access method, terminal, base station, communication system and storage medium Download PDF

Info

Publication number
CN116915329A
CN116915329A CN202311178524.5A CN202311178524A CN116915329A CN 116915329 A CN116915329 A CN 116915329A CN 202311178524 A CN202311178524 A CN 202311178524A CN 116915329 A CN116915329 A CN 116915329A
Authority
CN
China
Prior art keywords
terminal
vibration
vibration signal
data stream
base station
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.)
Granted
Application number
CN202311178524.5A
Other languages
Chinese (zh)
Other versions
CN116915329B (en
Inventor
邓林波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qualsen International Technologies Co Ltd
Original Assignee
Qualsen International Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Qualsen International Technologies Co Ltd filed Critical Qualsen International Technologies Co Ltd
Priority to CN202311178524.5A priority Critical patent/CN116915329B/en
Publication of CN116915329A publication Critical patent/CN116915329A/en
Application granted granted Critical
Publication of CN116915329B publication Critical patent/CN116915329B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to the field of optical fiber communication, and discloses an automatic terminal access method, a terminal, a base station, a communication system and a storage medium. The method comprises the following steps: the terminal sends a first vibration signal with specific frequency, the base station samples based on the first vibration signal, the access position of the terminal is determined according to the sampling result, the terminal registers based on a second vibration signal carrying a registration packet sent by the equipment information, the base station analyzes the second vibration signal sent by the terminal at the access position, judges whether the second vibration signal accords with a verification rule, if so, the terminal at the access position is confirmed to be successfully registered, and the automatic access configuration of the terminal is finished. The method detects the vibration signal of the optical sensing communication terminal and verifies the data packet through the base station equipment, automatically confirms the access address of the optical sensing communication terminal, simplifies equipment and manpower when accessing the terminal equipment, and can detect abnormal phenomena such as position movement, loose hardware equipment installation and the like possibly occurring in the optical sensing communication terminal equipment.

Description

Terminal automatic access method, terminal, base station, communication system and storage medium
Technical Field
The invention relates to the field of optical fiber communication, in particular to an automatic terminal access method, a terminal, a base station, a communication system and a storage medium.
Background
The optical fiber sensing communication system is one kind of one-to-many transmission system for transmitting information via optical fiber vibration and consists of base station equipment, optical fiber and terminal equipment. In the traditional technical scheme, if the optical sensing communication terminal equipment needs to be accessed, firstly, an access position is found by means of DVS (Distributed Optical Fiber Vibration Sensing System, distributed optical fiber sensing system) equipment in a vibration mode, then the optical sensing communication terminal equipment is fixed on an optical fiber, and finally, the DVS equipment is replaced by final optical fiber sensing communication equipment. In the mode, the position where the optical sensing communication terminal needs to be accessed is found by independently detecting the vibration position by using the DVS equipment, and the DVS equipment and the final optical fiber communication base station equipment are at least needed to be operated by two persons through other communication modes in the actual operation process, so that the existing terminal access mode needs additional equipment and manual intervention to obtain the vibration point position on one hand, and on the other hand, if the equipment is affected by external force, the terminal is abnormal, such as position movement, equipment loosening and short-time failure and the like, the transmission cannot be automatically recovered after the information cannot be normally transmitted, and the equipment state of the terminal cannot be collected by the base station equipment.
Disclosure of Invention
The invention mainly aims to solve the technical problems that the existing terminal access method needs to depend on other devices additionally, cannot be separated from manual automatic access and cannot detect abnormal phenomena.
The first aspect of the present invention provides a terminal automatic access method, applied to a base station in a communication system, the communication system including a base station and a terminal, the base station being configured to connect one end of an optical fiber, the terminal being coupled to the optical fiber and configured to load vibration on the optical fiber, the terminal automatic access method comprising: receiving a first vibration signal output by the terminal at a specific frequency through the optical fiber, wherein the first vibration signal lasts for a preset time length; sampling based on the first vibration signal, and transforming the sampling result to obtain an access position of the terminal; receiving a second vibration signal sent by the terminal based on the access position, analyzing the second vibration signal to obtain a corresponding data stream, and judging whether the data stream accords with a verification rule, wherein the data stream is obtained by converting the content of a registration packet by the terminal, the second vibration signal is generated by the terminal based on the corresponding vibration frequency matched by the data stream from a preset corresponding relation table, and the corresponding relation table is a corresponding relation table between transmission symbols in the data stream and the vibration frequency; if yes, the successful receiving of the registration packet sent by the terminal is confirmed, and the automatic access configuration of the terminal is finished.
Optionally, in a first implementation manner of the first aspect of the present invention, the sampling based on the first vibration signal and transforming a sampling result to obtain an access position of the terminal includes: determining the time interval of the pulse sent by the base station based on the frequency of the vibration signal to obtain the sampling frequency; sampling the first vibration signal based on the sampling frequency to obtain a sampling result; converting the sampling result from a time domain to a frequency domain to obtain the amplitude of a vibration signal sent by the terminal; carrying out time summation average on the amplitude of the vibration signal, and judging whether the average value exceeds a valve value; if yes, the access of the terminal equipment is confirmed, and the access position of the terminal is determined according to the influence range of the vibration signal.
Optionally, in a second implementation manner of the first aspect of the present invention, the receiving, based on the access location, a second vibration signal sent by the terminal, analyzing the second vibration signal to obtain a corresponding data stream, and determining whether the data stream meets a verification rule, includes: obtaining the vibration frequency of each vibration signal in the second vibration signal based on the change of the received optical fiber signal; arranging the vibration frequency of each vibration signal according to the time sequence received by the base station to obtain the vibration frequency of a second vibration signal; and analyzing the second vibration signal according to the vibration frequency and a preset corresponding relation table to obtain a data stream corresponding to the second vibration signal, and judging whether the data stream accords with a verification rule.
Optionally, in a third implementation manner of the first aspect of the present invention, the analyzing the second vibration signal according to the vibration frequency and a preset correspondence table to obtain a data stream corresponding to the second vibration signal, and determining whether the data stream meets a verification rule includes: matching the vibration frequency with corresponding binary numbers from a preset corresponding relation table to obtain the data stream, wherein the data stream is a transmission symbol string composed of a plurality of binary numbers; converting each system number in the data stream, and obtaining a registration packet of the terminal based on a conversion result and a preset character string format; and checking the content of the registration packet, and judging whether the content accords with a check rule.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the verifying the content of the registration packet, determining whether the content meets a verification rule includes: performing verification operation on each byte in the registration packet character string to obtain an operation result; extracting a specific byte from the operation result, performing error checking on the content of the specific byte, and judging whether the content is a preset value or not; if yes, confirming that the content of the registration packet accords with the verification rule.
The second aspect of the present invention provides an automatic terminal access method applied to a terminal in a communication system, the communication system including a base station and a terminal, the base station being configured to connect to one end of an optical fiber, the terminal being coupled to the optical fiber and configured to load vibration on the optical fiber, the automatic terminal access method comprising: outputting a first vibration signal with a specific frequency to act on the optical fiber for a preset time length, wherein the first vibration signal is used for indicating the base station to analyze according to the specific frequency to obtain an access position of the terminal and receiving the vibration signal of the terminal based on the access position; after the first vibration signal is vibrated, acquiring equipment information of the terminal, extracting registration information in the equipment information, generating a registration packet based on the registration information, and converting the content of the registration packet into a data stream, wherein the data stream is a transmission symbol string composed of a plurality of section numbers; matching corresponding vibration frequencies from a preset corresponding relation table based on the data stream, and generating a second vibration signal based on the vibration frequencies, wherein the corresponding relation table is a corresponding relation table between transmission symbols in the data stream and the vibration frequencies; and applying the second vibration signal to the optical fiber, wherein the second vibration signal is used for indicating the base station to analyze the second vibration signal to obtain the data stream, indicating the base station to judge whether the data stream accords with a verification rule, and if so, confirming that the registration packet sent by the terminal is successfully received, and ending the automatic terminal access configuration.
Optionally, in a first implementation manner of the second aspect of the present invention, the extracting registration information in the device information, generating a registration packet based on the registration information, and converting content of the registration packet into a data stream includes: extracting registration information in the equipment information and determining a bit value of the registration information; according to a preset character string format, the registration information is distributed to each byte in the character string format on average based on the bit value, and a registration packet is obtained; and converting the registration information on each byte in the registration packet into a binary number to obtain a data stream corresponding to the registration information.
Optionally, in a second implementation manner of the second aspect of the present invention, the matching, based on the data stream, a corresponding vibration frequency from a preset correspondence table, and generating a second vibration signal based on the vibration frequency includes: extracting each section of the number in the transmission symbol string; matching the vibration frequency corresponding to the binary number based on a preset corresponding relation table, and constructing a corresponding vibration signal based on the vibration frequency; and combining vibration signals corresponding to each binary number according to the ordering sequence of the binary numbers in the transmission symbol string to obtain a second vibration signal.
A third aspect of the present invention provides an optical sensing communication base station applied to a communication system including an optical sensing communication base station for connecting one end of an optical fiber and an optical sensing communication terminal coupled to the optical fiber for loading vibration on the optical fiber, the optical sensing communication base station comprising: the receiving module is used for receiving a first vibration signal output by the terminal at a specific frequency through the optical fiber, wherein the first vibration signal lasts for a preset time length; the sampling module is used for sampling based on the first vibration signal and transforming the sampling result to obtain the access position of the terminal; the analysis module is used for receiving a second vibration signal sent by the terminal based on the access position, analyzing the second vibration signal to obtain a corresponding data stream, and judging whether the data stream accords with a verification rule, wherein the data stream is obtained by converting the content of a registration packet by the terminal, the second vibration signal is generated by the terminal based on the corresponding vibration frequency matched by the data stream from a preset corresponding relation table, and the corresponding relation table is a corresponding relation table between transmission symbols in the data stream and the vibration frequency; and the access module is used for confirming that the registration packet sent by the terminal is successfully received if the verification rule is met, and ending the automatic access configuration of the terminal.
Optionally, in a first implementation manner of the third aspect of the present invention, the sampling module includes:
the signal sampling unit is used for determining the time interval of the pulse sent by the base station based on the frequency of the vibration signal to obtain the sampling frequency; sampling the first vibration signal based on the sampling frequency to obtain a sampling result;
the conversion unit is used for converting the sampling result from a time domain to a frequency domain to obtain the amplitude of a vibration signal sent by the terminal;
the calculation judging unit is used for carrying out summation average on the amplitude of the vibration signal in time and judging whether the average value exceeds a valve value or not; if yes, the access of the terminal equipment is confirmed, and the access position of the terminal is determined according to the influence range of the vibration signal.
Optionally, in a second implementation manner of the third aspect of the present invention, the parsing module includes:
a receiving demodulation unit, configured to obtain a vibration frequency of each vibration signal in the second vibration signal based on a change of the received optical fiber signal;
the sequencing unit is used for sequencing the vibration frequency of each vibration signal according to the time sequence received by the base station to obtain the vibration frequency of the second vibration signal;
And the analysis and verification unit is used for analyzing the second vibration signal according to the vibration frequency and a preset corresponding relation table to obtain a data stream corresponding to the second vibration signal, and judging whether the data stream accords with a verification rule.
Optionally, in a third implementation manner of the third aspect of the present invention, the parsing and checking unit is further configured to match the vibration frequency with a corresponding number of bins from a preset correspondence table, so as to obtain the data stream, where the data stream is a transmission symbol string composed of a plurality of bins; converting each system number in the data stream, and obtaining a registration packet of the terminal based on a conversion result and a preset character string format; and checking the content of the registration packet, and judging whether the content accords with a check rule.
Optionally, in a fourth implementation manner of the third aspect of the present invention, the parsing and checking unit is specifically configured to: performing verification operation on each byte in the registration packet character string to obtain an operation result; extracting a specific byte from the operation result, performing error checking on the content of the specific byte, and judging whether the content is a preset value or not; if yes, confirming that the content of the registration packet accords with the verification rule.
A fourth aspect of the present invention provides an optical sensing communication terminal applied to a communication system including an optical sensing communication base station for connecting one end of an optical fiber and an optical sensing communication terminal coupled to the optical fiber for loading vibration on the optical fiber, the optical sensing communication terminal comprising: the first vibration module is used for outputting a first vibration signal at a specific frequency to act on the optical fiber and lasting for a preset time length, wherein the first vibration signal is used for indicating the base station to analyze according to the specific frequency to obtain an access position of the terminal and receiving the vibration signal of the terminal based on the access position; the conversion module is used for acquiring equipment information of the terminal after the first vibration signal is vibrated, extracting registration information in the equipment information, generating a registration packet based on the registration information, and converting the content of the registration packet into a data stream, wherein the data stream is a transmission symbol string composed of a plurality of section numbers; the second vibration module is used for matching corresponding vibration frequencies from a preset corresponding relation table based on the data stream and generating a second vibration signal based on the vibration frequencies, wherein the corresponding relation table is a corresponding relation table between transmission symbols in the data stream and the vibration frequencies; and the transmission module is used for acting the second vibration signal on the optical fiber, wherein the second vibration signal is used for indicating the base station to analyze the second vibration signal to obtain the data stream, judging whether the data stream accords with a verification rule, if so, confirming that the registration packet sent by the terminal is successfully received, and ending the automatic terminal access configuration.
Optionally, in a first implementation manner of the fourth aspect of the present invention, the conversion module includes:
a first extracting unit configured to extract registration information in the device information and determine a bit value of the registration information;
the distribution unit is used for distributing the registration information to each byte in the character string format on average based on the bit value according to a preset character string format to obtain a registration packet;
and the conversion combination unit is used for converting the registration information on each byte in the registration packet into a binary number to obtain a data stream corresponding to the registration information.
Optionally, in a second implementation manner of the fourth aspect of the present invention, the second vibration module includes:
a second extraction unit for extracting each of the binary numbers in the transmission symbol string;
the matching construction unit is used for matching the vibration frequency corresponding to the binary number based on a preset corresponding relation table and constructing a corresponding vibration signal based on the vibration frequency;
and the sequencing and combining unit is used for combining the vibration signals corresponding to each section of the binary numbers according to the sequencing order of the binary numbers in the transmission symbol string to obtain a second vibration signal.
A fifth aspect of the present invention provides a communication system including an optical sensing communication base station for connecting one end of an optical fiber and an optical sensing communication terminal coupled to the optical fiber for loading vibration on the optical fiber; the optical sensing communication base station is used for executing the terminal automatic access method; the optical sensing communication terminal is used for executing the terminal automatic access method.
A sixth aspect of the present invention provides a computer readable storage medium having instructions stored thereon, which when executed by a processor, implement the steps of the terminal automatic access method as described above.
According to the technical scheme provided by the invention, the optical sensing communication terminal is used for transmitting a first vibration signal with a specific frequency, the optical sensing communication base station is used for sampling based on the first vibration signal, determining the access position of the terminal according to the sampling result, transmitting a second vibration signal carrying a registration packet based on equipment information by the terminal for registering, analyzing the second vibration signal by the base station, judging whether the analysis result accords with a verification rule or not, if so, confirming that the registration packet transmitted by the terminal at the access position is successfully received, and ending the automatic access configuration of the terminal. According to the scheme, the base station equipment detects the vibration signal of the terminal and verifies the data packet, the access address of the terminal is automatically confirmed, equipment and manpower when the terminal equipment is accessed are simplified, and meanwhile abnormal phenomena such as position movement and loose hardware equipment installation which possibly occur to the terminal equipment can be detected.
Drawings
Fig. 1 is a schematic diagram of a first embodiment of an automatic terminal access method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a second embodiment of an automatic terminal access method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a third embodiment of an automatic terminal access method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of the result of FFT processing based on the sample rate 6400Hz and the sampled data points 128 according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of vibration waveforms of vibration signals with different vibration frequencies in a vibration period according to an embodiment of the present invention;
fig. 6 is a schematic frequency diagram corresponding to a maximum amplitude point in 512-point sample data after FFT according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a packet format according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an optical sensing communication base station according to an embodiment of the present invention;
fig. 9 is a schematic diagram of another structure of an optical sensing communication base station according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an optical sensing communication terminal according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of another optical sensing communication terminal according to an embodiment of the present invention;
Fig. 12 is a schematic hardware diagram of a communication system according to an embodiment of the present application.
Detailed Description
Aiming at the problems that the existing optical sensing communication terminal access mode depends on DVS equipment and manually-carried terminal access, other equipment is required to be additionally relied on, manual automatic access cannot be separated, and abnormal phenomenon detection cannot be carried out.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, apparatus, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For easy understanding, the following describes a specific flow of an embodiment of the present invention, and please refer to fig. 1 for a schematic diagram of a first embodiment of an automatic terminal access method provided in the embodiment of the present invention, where the method specifically includes the following steps:
101. a first vibration signal output by a terminal at a specific frequency is received.
In this scheme, the optical sensing communication base station is hereinafter referred to as a base station, and the optical sensing communication terminal is hereinafter referred to as a terminal. The base station detects the intensity of the received optical fiber signals and demodulates corresponding vibration signals based on the change of the intensity; judging whether a front section signal of the vibration signal is of a specific frequency and the vibration time is greater than a preset time threshold; if yes, recording the optical fiber signal as a first vibration signal, and recording the access position of the optical fiber signal as the position where the terminal is accessed. Specifically, the intensity of the received optical fiber signal is detected, the vibration signal carrying information is demodulated based on the change of the intensity, the vibration signal is determined to be a first vibration signal, the first vibration signal is that the terminal vibrates for a fixed time with a specific frequency, the specific frequency of the first vibration signal sent by the terminal is required to meet the receiving requirement of the base station, namely, the base station initiates vibration to the registered terminal, and after the first vibration signal is received for a certain time, the vibration signal is determined to be sent by the terminal at the specific access position.
Wherein the vibration time of the first vibration signal is longer than a preset time threshold. The communication system is a multi-to-one unidirectional transmission system for transmitting information by utilizing optical fiber vibration, and comprises a base station and a terminal, wherein the base station is used for connecting one end of an optical fiber, the terminal is coupled to the optical fiber and used for loading vibration on the optical fiber, the base station equipment comprises a narrow-band pulse laser, periodic pulse laser is emitted to the optical fiber through the pulse laser, and reflected light in the optical fiber is collected, and the reflected light is formed by Rayleigh scattering, raman scattering and Brillouin scattering generated by the vibration of the optical fiber. The base station obtains the electric signal from the reflected light through photoelectric conversion, obtains the electric signal transmitted by the laser on the optical fiber through signal amplification and shaping, and then inputs the electric signal into the digital system for processing through ADC sampling.
The terminal is coupled with the optical fiber and is used for loading vibration to the optical fiber, and the coupling of the terminal with the optical cable and the optical fiber is physical contact, and the vibration component in the terminal is abutted with the optical cable or the optical fiber by way of example, namely the terminal can be accessed without cutting the optical cable. After the terminal equipment is powered on, firstly, the optical fiber is vibrated for 5 seconds by using the frequency of 500Hz, the base station equipment detects 500Hz vibration, at the moment, 500Hz is the appointed receiving frequency of the base station, when the 500Hz vibration lasts for more than 2 seconds, at the moment, 2 seconds is a certain time instant threshold value for the signal duration, the time is smaller than the first time length of the terminal vibration, a new terminal is considered to be connected to the position of the optical fiber, a front section signal of the vibration signal is used as a first vibration signal, and a rear section vibration signal is received to obtain a second vibration signal.
102. Sampling is carried out based on the first vibration signal, and the sampling result is transformed to obtain the access position of the terminal.
Determining the time interval of the pulse sent by the base station based on the frequency of the vibration signal to obtain the sampling frequency; sampling the first vibration signal based on the sampling frequency to obtain a sampling result; converting the sampling result from a time domain to a frequency domain to obtain the amplitude of a vibration signal sent by the terminal; carrying out time summation average on the amplitude of the vibration signal, and judging whether the average value exceeds a valve value; if yes, the access of the terminal equipment is confirmed, and the access position of the terminal is determined according to the influence range of the vibration signal.
The sampling refers to a process of extracting a series of discrete samples from a signal by using a sampling pulse sequence to make the discrete samples become a sampling signal, in general, the higher the sampling frequency is, the denser the sampling point is, the more the obtained digital signal approaches to the original signal, and the sampling frequency can be determined according to the frequency of the highest frequency component in the original signal. In this embodiment, according to the frequency of the vibration signal in the preset correspondence table of the registration packet being 400Hz-1100Hz, in order to be able to collect all vibration signals as completely as possible, the sampling frequency should be 2.56 times of the analysis frequency, where the sampling frequency may be 6400Hz, that is, the base station transmits 6400 laser pulses in one second, so as to sample the vibration signal on the optical fiber.
The vibration signal is subjected to Fourier series expansion or transformation to convert a time domain signal into a frequency domain signal, otherwise, the frequency domain signal can be converted into the time domain signal through inverse Fourier transformation, the purpose of Discrete Fourier Transformation (DFT) is to transform the signal from the time domain into the frequency domain, so that the information can be analyzed in the frequency domain, the obtained result is converted into the time domain through inverse DFT, wherein the Fourier series is used for converting a periodic signal, the Fourier transformation is used for converting an aperiodic signal, and the non-convergence signal is converted by means of Laplacian transformation. Discrete Fourier transform is performed on the signals with time sequence in the embodiment, and expected value calculation is performed on the amplitude. After the amplitude of 500Hz is summed and averaged in time, if the average value exceeds a valve value Y, a certain position of the optical fiber is considered to be detected to have terminal access, and the sensitivity of signal access can be controlled by setting the size of the valve Y.
103. And based on the second vibration signal sent by the access position receiving terminal, analyzing the second vibration signal to obtain a corresponding data stream, and judging whether the data stream accords with the verification rule.
The data stream is obtained by converting the content of the registration packet by the terminal. When the optical fiber is disturbed by external environment parameters, laser phase information in the optical fiber can change, the change of the optical signal phase can be converted into the change of laser intensity by constructing an optical fiber interference structure, after photoelectric conversion of a photoelectric detector, signal phase analysis is completed by a digital signal processing technology, the intensity, the phase, the wavelength and the like of the optical fiber signal can be detected, the demodulation of the optical fiber signal is carried out, the frequency of a vibration signal is obtained, the vibration signal of a registration packet is obtained, the vibration signal is arranged according to time sequence, namely, a terminal analyzes the vibration signal according to the vibration signal sent by the registration information and obtains the registration packet for the terminal application access registration according to the reverse sealing step.
In this embodiment, the reverse sealing includes converting the vibration signal of the registration packet into registration information, that is, obtaining the vibration frequency of the vibration signal based on the change of the optical fiber signal, matching the vibration frequency with a preset corresponding relation table to obtain character strings of 0 and 1 of the registration information, at this time, directly performing error checking on the character strings, that is, performing polynomial calculation on the data, and attaching the obtained result to the back of the frame, that is, the check code used for checking, where the number is a binary sequence, generating a new frame, where the additional number is to enable a certain specific number selected by the sending end and the receiving end together to be divided by using a modulo-2 division, and the base station divides the received new frame by using the selected divisor to determine whether there is a remainder, if there is a remainder, then indicating that an error occurs in the registration packet in the transmission process. And carrying out binary number conversion on the character strings of 0 and 1 of the registration information, obtaining a registration packet of the terminal based on the conversion result and a preset character string format, carrying out inverse operation on the content of the registration packet according to a transmitted operation rule, judging whether a specific byte in the result is a preset fixed value, and if so, confirming that the content of the registration packet is correctly transmitted.
104. If yes, the registration packet sent by the terminal is confirmed to be successfully received, and the automatic access configuration of the terminal is finished.
And the base station equipment performs data check on the demodulated byte content to accord with CRC, and if the value of the specific byte is a preset value, the data packet is considered to be the correct data packet transmitted by the terminal, and the registration of the terminal is completed according to the registration information of the data packet, so that the automatic access configuration of the terminal is realized.
In the scheme, the base station is used for sampling and analyzing the vibration signal sent by the terminal to obtain the access position of the terminal, judging whether the received registration packet accords with the verification rule, automatically confirming the access address of the terminal, and completing the automatic access to the terminal.
Referring to fig. 2, a second embodiment of an automatic terminal access method according to an embodiment of the present invention is shown, and the method specifically includes the following steps:
201. the first vibration signal is output at a specific frequency to act on the optical fiber for a first time period.
The first vibration signal is used for indicating the base station to analyze according to a specific frequency, so as to obtain an access position of the terminal and receiving the vibration signal of the terminal based on the access position. The terminal needs to convert the transmitted information into physical vibration, then the information is transmitted through the vibration optical fiber, specifically, after the terminal equipment is fixed on the optical fiber, vibration is loaded on the optical fiber, the vibration signal causes the backward Rayleigh scattered light phase in the optical fiber to change, and the phase information of the vibration signal can be obtained by demodulating the backward scattered light signal and the reflected light signal in the optical fiber. The optical time domain reflection technology is based on the obtained amplitude information to realize the positioning of the vibration signal, the phase information reflects the frequency domain change information of the vibration signal, and other characteristics of the vibration signal such as instantaneous frequency, instantaneous energy and the like can be obtained through phase demodulation, so that the vibration device of the terminal is fixed on the optical fiber, and the optical fiber synchronously vibrates along with the vibration device. The terminal comprises a vibration device and a conversion device, wherein the conversion device is used for converting data information into transmissible vibration information, and the vibration device is used for emitting corresponding vibration based on the vibration information and acting on the optical fiber. In the whole process of accessing the terminal into the optical fiber, the vibration device of the terminal sends out vibration, in the scheme, the vibration signal sent out by the terminal can be divided into a first vibration signal positioned at a time front section and a second vibration signal positioned at a time rear section according to the time sequence, in the first section of vibration, the terminal vibrates at a specific frequency for a certain time, namely, the frequency of 500Hz is kept for 5 seconds, wherein the frequency of 500Hz is not fixed, but the frequency of the first vibration signal of the terminal is required to meet the receiving requirement of a base station, the vibration time is not fixed for 5 seconds, but in order to meet the standard of the terminal for receiving the vibration signal, the occurrence of other equipment or faults is prevented, the vibration of a certain frequency is considered to be received, the base station resource is wasted, and the preset time length is greater than the preset time threshold of the base station.
202. After the first vibration signal is vibrated, acquiring equipment information of the terminal, extracting registration information in the equipment information, generating a registration packet based on the registration information, and converting the content of the registration packet into a data stream.
Wherein the correspondence table is a correspondence table between transmission symbols in the data stream and vibration frequencies. The terminal stops for a certain time after the first vibration signal is vibrated, in the scheme, after the terminal completes the vibration with the specific frequency of 500Hz for 5 seconds, the terminal stops for 0.5 seconds, and then the terminal vibrates according to the content of the registration packet. Specifically, device information of the terminal is obtained, the device information includes registration information, device signals and the like, the registration information is extracted to form a registration packet, in general, the registration packet transmitted by the terminal is the same as a data packet format of common transmission data content, but the size of the registration information of the terminal is uncertain, the registration information needs to be converted into a data packet form of common transmission data, namely, the registration information of the terminal needs to be converted into a data packet form which is consistent with the format of the common transmission data and can be received and analyzed by the base station. In this embodiment, a data packet of common transmission data is composed of 48 transmission symbols, the transmission symbols are minimum units of vibration transmission information, the transmission symbols are composed of vibration time and stop time, vibration is performed according to specific frequency in the vibration time, the specific frequency corresponds to bit information transmitted, bit values of registration information are determined according to content of the registration information, the registration information is evenly distributed to each byte in the character string format according to a preset character string format, a registration packet is obtained, 144 bits of information can be carried altogether according to the length of the data packet, namely 48 transmission symbols or 18 bytes, within 18 bytes, a frame header is set to a fixed value, and a last byte is a CRC check code. Based on the format, the registration information is packaged into a special data packet, namely a registration packet, the registration information on each byte is converted into a binary number, generally binary, the registration information in 1 byte is evenly divided into 3 transmission symbols, each transmission symbol carries information composed of 3 bits of 0 and 1, and the registration information of each byte is subjected to the same conversion to obtain a transmissible data stream corresponding to the registration packet.
203. And matching corresponding vibration frequencies from a preset corresponding relation table based on the data stream, and generating a second vibration signal based on the vibration frequencies.
Wherein the correspondence table is a correspondence table between transmission symbols in the data stream and vibration frequencies. And converting the registration information of each byte in the registration packet to obtain a transmissible data stream corresponding to the registration packet, wherein the data stream is a transmission symbol string composed of a plurality of section numbers. Based on the transmittable data stream, extracting each section of the number in the transmission symbol string, namely a character string consisting of 3 bits 0 and 1 in 1 transmission symbol, matching the vibration frequency corresponding to the number in each section of the number from a preset corresponding relation table, constructing a corresponding vibration signal based on the vibration frequency, and combining the vibration signals corresponding to each section of the number according to the ordering sequence of the numbers in the transmission symbol string to obtain a second vibration signal.
In another implementation manner, the device information of the terminal is converted into a data packet with special content, i.e. a registration packet, transmitted by vibration, and sent to the base station for registration. Specifically, extracting a registration packet in the equipment information, and acquiring the data size of the content of the registration packet; determining the size of the transmission content of each transmission symbol based on the data size and the data packet size of the optical fiber transmission; and according to the size of the transmission content, converting the registration packet content into a transmission symbol content to obtain a transmissible data stream. The registration packet is identified according to a specific format and consists of 18 bytes, 144 bits of information are shared, 48 transmitters are needed for transmission when the size of a data packet transmitted by an optical fiber is 3 bits of information, the registration packet is split into bit streams, and the frequency of a vibration signal corresponding to the registration packet, namely a second vibration signal, is obtained based on the content of a single group of bits and a vibration frequency and corresponding bit information correspondence table.
204. The second vibration signal is applied to the optical fiber.
The second vibration signal is used for indicating the base station to analyze the second vibration signal to obtain the data stream, and indicating the base station to judge whether the registration packet accords with a verification rule, if so, the registration packet is confirmed to be successfully received, and the automatic terminal access configuration is finished.
And the second vibration signal is acted on the optical fiber through the vibration device of the terminal, so that the registration packet is sent to carry out registration access. In practical application, after one registration packet is sent, the registration packet can be sent again after a certain time interval, and the whole process lasts for a preset time, for example, according to the time interval of 0.5 seconds of sending each registration packet, the registration packet consists of 48 transmitters, and 1 transmitter consists of 40 milliseconds of single vibration frequency vibration time and 40 milliseconds of stop time, and the total time is 80 milliseconds. Therefore, the transmission time of one registration packet is 3840 ms, that is, 3.84 seconds, so that the vibration duration of each registration packet is 3.84 seconds, the frequency of the vibration signal corresponding to the registration packet is acted on the optical fiber, the access registration of the terminal is realized, and after the registration is successful, the data transmission through the optical fiber is started. Preferably, the terminal sends a registration packet to the base station in a certain time period to perform periodic registration, so that the terminal is prevented from ending registration access due to reasons of position movement, equipment loosening, short-time failure and the like.
According to the scheme, the terminal transmits specific vibration information to the optical fiber, requests access registration to the base station, and transmits a registration packet of the terminal after transmitting a vibration signal with specific frequency to perform registration access, so that automatic access of the terminal equipment is realized.
Referring to fig. 3, a third embodiment of an automatic terminal access method according to an embodiment of the present invention is shown, and the method specifically includes the following steps:
301. the terminal transmits a first vibration signal of a specific frequency.
The terminal vibration device is fixed on the optical fiber, and the terminal needs to convert the transmitted information into physical vibration and then transmit the information through the vibration optical fiber, so that the vibration device of the terminal needs to be fixed on the optical fiber, the optical fiber synchronously vibrates along with the vibration device, the terminal is started and kept at the frequency of 500Hz for 5 seconds, and after the terminal equipment is electrified, the optical fiber is vibrated at the frequency of 500Hz for about 5 seconds at first, so that the base station equipment can be considered that a new terminal is connected at the position of the optical fiber by detecting the vibration of 500Hz for more than 2 seconds.
302. The base station samples based on the first vibration signal and determines the access position of the terminal according to the sampling result.
In the base station apparatus, vibration detection is performed on the entire optical fiber in real time, mainly vibration at a frequency of 500 Hz. The base station equipment samples the vibration signal on the optical fiber according to 6400Hz based on the frequency of 500Hz, then carries out FFT time domain to frequency domain conversion on the vibration signal information to obtain the amplitude of the frequency of 500Hz, carries out time summation and average on the amplitude of 500Hz, and if the average value exceeds a valve value Y, considers that a certain position of the detected optical fiber has terminal access. According to the calculation formula of the FFT, if 128 points are sampled with a sampling frequency of 1000Hz, 128 data of the FFT result, namely corresponding frequency points are respectively 0,1k/128,2k/128,3k/128, … and 127k/128Hz, and the amplitude of the frequency point is the modulus of the complex number of the point divided by half of the sampled data. In the collected data, the data is taken as a frame according to each 128-point data, the frame data is transformed based on the sampling rate of 6400Hz, referring to FIG. 4, the amplitude of the sampled signal is summed and averaged in time based on the sampling rate of 6400Hz and the result of FFT transformation of the sampled data point 128, and if the average value exceeds the valve value Y, a terminal access is considered to be detected at a certain position of the optical fiber.
303. And the terminal sends a second vibration signal carrying registration information according to the equipment information to perform access registration.
After the terminal equipment is started normally, a period of 5 seconds exists, the optical fiber is vibrated at the frequency of 500Hz, then, the optical fiber is stopped for 0.5 seconds, the terminal starts vibrating according to the content of a registration packet, registration information is converted, and a second vibration signal is obtained according to a preset corresponding relation table, bit information corresponding to the frequency is arranged in the preset corresponding relation table, for example, the 400Hz corresponding bit information is 000, the 450Hz corresponding bit information is 001, the 500Hz corresponding bit information is 010 and the like, the registration packet is 48 transmission symbols as a data packet for common data content transmission, each symbol represents 3bit information, the total content is 48 x 3 = 144bit, the 144bit information is calculated according to the 8bit composition into one byte, namely 144/8 = 18 bytes, for example, the content of the registration packet is set as follows: 6D 88 E4 00 01 02 03 04 05 06 07 12 34 56 78 00 5A 32 the registration packet consists of 48 transmitters, a single vibration frequency of 1 transmitter vibrates for 40 ms and stops for 40 ms for a total of 80 ms. Thus, the transmission time of one registration packet is: 48 x 80 = 3840 ms, i.e. 3.84 seconds. That is, the registration packet is a group of special data packets transmitted by the terminal vibration. The base station apparatus judges whether or not registration is completed by detecting the vibration, and after detecting the 500Hz vibration for 5 seconds in succession, within the next 10 seconds, whether or not a data packet (registration packet) of the special content is received.
When the terminal converts a signal to be transmitted into a vibration signal, the method is realized through the following steps: grouping the data to be transmitted; the vibration frequency of each group of signals is corresponding to the response; the sequential vibration of all packet signals is ended at a fixed vibration/stop time of one cycle. Specifically, if the data to be transmitted is: in the group of transmission signals, the total number of the transmission signals is 18 bytes, that is, 18×8=144 bits, in general, the data to be transmitted is expressed by 16 bins, each two numbers form a byte, and the 16 bins of the data to be transmitted are converted into 2 bins of character strings by the conversion rule among different bins to obtain bit streams, so that the bit expression mode of the transmission data is as follows: 011111100001100111010100011001111011001011000000000000000000000000000000000000000000000000000000000000000000000000000000000000001100011000001010, then grouping the 144bit stream data, wherein every three bits are grouped into 48 groups, namely (011) (111) (100) (001) (100) (111) (010) (100) (011) (001) (111) (011) (001) (011) (000) (000) (000) (000) (000) (000) (000) (000) (000) (000) (000) (000) (000) (000) (000) (000) (000) (000) (000) and a) and obtaining the vibration frequency of each group of bit stream data according to the corresponding relation between the grouping signal and the vibration frequency, wherein the corresponding relation between the grouping signal and the transmission frequency point is as follows:
Therefore, the first group has a vibration frequency (011) corresponding to 700Hz, the second group has a vibration frequency (111) corresponding to 1100Hz, the third group has a vibration frequency (100) corresponding to 800Hz, …, and the forty-eight group has a vibration frequency (010) corresponding to 600Hz, and finally, the next group of vibration is stopped for 40 ms after 40 ms according to the vibration period of each group, so as to obtain a final vibration signal. In a transmission frame, 48 groups of transmission signals exist, that is, the conversion from the signals to be transmitted to the vibration signals can be completed according to 48 periods of vibration of the grouping signals, the vibration signals are output to a vibration equipment terminal (such as a resonance loudspeaker, a piezoelectric ceramic device and the like), the process from the signals to be transmitted to the vibration can be completed, the vibration signals are output to the vibration equipment to obtain vibration waveforms, and referring to fig. 5, a schematic diagram of vibration waveforms of vibration signals with different vibration frequencies in one vibration period is provided.
304. The base station analyzes the second vibration signal to obtain a data stream corresponding to the second vibration signal, and judges whether the data stream accords with a verification rule.
In this step, the vibration signal is analyzed to obtain a data stream composed of 0 and 1, the data stream is demodulated, and judgment is made based on the result after demodulation. In a transmission symbol, after FFT change, a corresponding amplitude of a frequency of 0-3150 Hz (the frequency spectrum resolution is 50 Hz) is obtained, if the frequency of the maximum amplitude corresponds to a specific frequency in the table, a corresponding transmission bit is obtained, otherwise, the default transmission is 000, and the accuracy of transmission is further ensured through CRC check of the data packet. The transmission symbol is the minimum unit of vibration transmission information, and consists of vibration time and stop time. And in the vibration time, vibrating according to a specific frequency, wherein the specific frequency corresponds to the transmitted bit information, for example: after the FFT, the FFT result of N points can be obtained, in any transmitted symbol, the front 40 ms vibrates at the frequency of (X) Hz, the back 40 ms is the stop time, after the FFT, the frequency corresponding to the point with the largest amplitude is x=700 Hz, according to the preset corresponding relation table, the transmitted bit information is 011, please refer to fig. 6, the frequency schematic diagram corresponding to the point with the largest amplitude in the sampled data of 512 points after the FFT provided by the embodiment of the invention, and the expression form consisting of 0 and 1, namely the character string consisting of binary numbers, of the whole registration packet can be obtained by performing the operation on the content of the registration packet.
305. If yes, the registration packet sent by the terminal at the access position is confirmed to be successfully received, and the automatic access configuration of the terminal is finished.
In the terminal device, the transmitted data is encapsulated according to a certain format. Referring to fig. 7, in the embodiment of the present invention, the frame header of the registration packet is E7, the last byte is a CRC check code, the base station device performs data check on the demodulated 18 bytes to conform to the CRC, and b0=19, and considers that the data packet is the correct data packet transmitted by the terminal. The result of demodulating the transmitted registration packet is: 7E 19 D4 67 B2 C0 00 00 00 00 00 00 00 00 00 00 C6 0A, the verification rule is met, the successful reception of the registration packet sent by the terminal at the access position is confirmed, and the automatic access configuration of the terminal is finished.
According to the scheme, a first vibration signal with specific frequency is sent through the terminal, the base station samples based on the first vibration signal, the access position of the terminal is determined according to the sampling result, the terminal sends a second vibration signal carrying a registration packet based on equipment information to register, the base station analyzes the second vibration signal, judges whether the analysis result accords with a verification rule, if so, the success of the reception of the registration packet sent by the terminal at the access position is confirmed, and the automatic access configuration of the terminal is finished. According to the scheme, the base station equipment detects the vibration signal of the terminal and verifies the data packet, the access address of the terminal is automatically confirmed, equipment and manpower when the terminal equipment is accessed are simplified, and meanwhile abnormal phenomena such as position movement and loose hardware equipment installation which possibly occur to the terminal equipment can be detected.
The terminal automatic access method in the embodiment of the present invention is described above, and the optical sensing communication terminal and the optical sensing communication base station in the embodiment of the present invention are described in detail from the angle of the modularized functional entity, referring to fig. 8, a schematic structural diagram of the optical sensing communication base station provided in the embodiment of the present invention includes:
a receiving module 401, configured to receive a first vibration signal output by the terminal at a specific frequency, where a vibration time of the first vibration signal is longer than a preset time threshold, and the first vibration signal is located before the second vibration signal;
the sampling module 402 is configured to sample based on the first vibration signal, and transform a sampling result to obtain an access position of the terminal;
the parsing module 403 is configured to receive a second vibration signal sent by the terminal based on the access location, parse the second vibration signal to obtain a corresponding data stream, and determine whether the data stream meets a verification rule, where the data stream is obtained by performing content conversion on a registration packet by the terminal;
and the access module 404 is configured to confirm that the registration packet sent by the terminal is successfully received if the verification rule is met, and the automatic access configuration of the terminal is ended.
In the scheme, the base station is used for sampling and analyzing the vibration signal sent by the terminal to obtain the access position of the terminal, judging whether the received registration packet accords with the verification rule, automatically confirming the access address of the terminal, and completing the automatic access to the terminal.
Referring to fig. 9, another schematic structural diagram of an optical sensing communication base station according to an embodiment of the present invention includes:
a receiving module 401, configured to receive a first vibration signal output by the terminal at a specific frequency, where a vibration time of the first vibration signal is longer than a preset time threshold, and the first vibration signal is located before the second vibration signal;
the sampling module 402 is configured to sample based on the first vibration signal, and transform a sampling result to obtain an access position of the terminal;
the parsing module 403 is configured to receive a second vibration signal sent by the terminal based on the access location, parse the second vibration signal to obtain a corresponding data stream, and determine whether the data stream meets a verification rule, where the data stream is obtained by performing content conversion on a registration packet by the terminal;
and the access module 404 is configured to confirm that the registration packet sent by the terminal is successfully received if the verification rule is met, and the automatic access configuration of the terminal is ended.
In this embodiment, the sampling module 402 includes:
a signal sampling unit 4021 configured to determine a time interval at which a base station transmits a pulse based on a frequency of the vibration signal, to obtain a sampling frequency; sampling the first vibration signal based on the sampling frequency to obtain a sampling result;
a conversion unit 4022, configured to convert the sampling result from a time domain to a frequency domain, so as to obtain an amplitude of a vibration signal sent by the terminal;
a calculation judgment unit 4023 configured to perform a summation average over time on the amplitudes of the vibration signals, and judge whether the average value exceeds a valve value; if yes, the access of the terminal equipment is confirmed, and the access position of the terminal is determined according to the influence range of the vibration signal.
In this embodiment, the parsing module 403 includes:
a reception demodulation unit 4031 for obtaining a vibration frequency of each of the second vibration signals based on a change in the received optical fiber signal;
a sorting unit 4032, configured to sort the vibration frequencies of the vibration signals according to the time sequence received by the base station, so as to obtain the vibration frequency of the second vibration signal;
and the analysis and verification unit 4033 is configured to analyze the second vibration signal according to the vibration frequency and a preset correspondence table, obtain a data stream corresponding to the second vibration signal, and determine whether the data stream meets a verification rule.
In this embodiment, the parsing and checking unit 4033 is specifically configured to:
matching the vibration frequency with corresponding binary numbers from a preset corresponding relation table to obtain the data stream, wherein the data stream is a transmission symbol string composed of a plurality of binary numbers; converting each system number in the data stream, and obtaining a registration packet of the terminal based on a conversion result and a preset character string format; and checking the content of the registration packet, and judging whether the content accords with a check rule.
In this embodiment, the parsing and checking unit 4033 is specifically configured to: performing verification operation on each byte in the registration packet character string to obtain an operation result; extracting a specific byte from the operation result, performing error checking on the content of the specific byte, and judging whether the content is a preset value or not; if yes, confirming that the content of the registration packet accords with the verification rule.
In the scheme, two sections of vibration signals sent by the terminal are respectively sampled, calculated and analyzed through the base station to obtain the access position of the terminal, the second section of vibration signals are analyzed to obtain the registration packet of the terminal, the content of the registration packet is checked and inversely stored, whether the received registration packet accords with the check rule is judged, and if so, the automatic access to the terminal is completed.
Referring to fig. 10, a schematic structural diagram of an optical sensing communication terminal according to an embodiment of the present invention includes:
the first vibration module 501 is configured to output a first vibration signal at a specific frequency, where the first vibration signal is used to instruct the base station to analyze according to the specific frequency, obtain an access position of the terminal, and receive a vibration signal of the terminal based on the access position, where the first vibration signal acts on the optical fiber and lasts for a preset time length;
the conversion module 502 is configured to obtain device information of the terminal after the first vibration signal is vibrated, extract registration information in the device information, generate a registration packet based on the registration information, and convert content of the registration packet into a data stream, where the data stream is a transmission symbol string composed of a plurality of section numbers;
a second vibration module 503, configured to match a corresponding vibration frequency from a preset correspondence table based on the data stream, and generate a second vibration signal based on the vibration frequency, where the correspondence table is a correspondence table between transmission symbols in the data stream and the vibration frequency;
and a transmission module 504, configured to apply the second vibration signal to the optical fiber, where the second vibration signal is used to instruct the base station to analyze the second vibration signal to obtain the data stream, and determine whether the data stream meets a verification rule, and if yes, confirm that the registration packet sent by the terminal is received successfully, and end automatic terminal access configuration.
The terminal transmits specific vibration information to the optical fiber, requests access registration to the base station, transmits a registration packet of the terminal after transmitting a vibration signal with specific frequency, and performs registration access to realize automatic access of the terminal equipment.
Referring to fig. 11, another schematic structural diagram of an optical sensing communication terminal according to an embodiment of the present invention includes:
the first vibration module 501 is configured to output a first vibration signal at a specific frequency, where the first vibration signal is used to instruct the base station to analyze according to the specific frequency, obtain an access position of the terminal, and receive a vibration signal of the terminal based on the access position, where the first vibration signal acts on the optical fiber and lasts for a preset time length;
the conversion module 502 is configured to obtain device information of the terminal after the first vibration signal is vibrated, extract registration information in the device information, generate a registration packet based on the registration information, and convert content of the registration packet into a data stream, where the data stream is a transmission symbol string composed of a plurality of section numbers;
a second vibration module 503, configured to match a corresponding vibration frequency from a preset correspondence table based on the data stream, and generate a second vibration signal based on the vibration frequency, where the correspondence table is a correspondence table between transmission symbols in the data stream and the vibration frequency;
And a transmission module 504, configured to apply the second vibration signal to the optical fiber, where the second vibration signal is used to instruct the base station to analyze the second vibration signal to obtain the data stream, and determine whether the data stream meets a verification rule, and if yes, confirm that the registration packet sent by the terminal is received successfully, and end automatic terminal access configuration.
In this embodiment, the conversion module 502 includes:
a first extracting unit 5021 for extracting registration information in the device information and determining a bit value of the registration information;
the allocation unit 5022 is configured to, according to a preset character string format, evenly allocate the registration information to each byte in the character string format based on the bit value, so as to obtain a registration packet;
and the conversion combination unit 5023 is configured to convert the registration information on each byte in the registration packet into a binary number, so as to obtain a data stream corresponding to the registration information.
In this embodiment, the second vibration module 503 includes:
a second extraction unit 5031 for extracting each of the binary numbers in the transmission symbol string;
a matching construction unit 5032, configured to match the vibration frequencies corresponding to the decimal numbers based on a preset correspondence table, match the vibration frequencies corresponding to the decimal numbers from the preset correspondence table for each decimal number, and construct a corresponding vibration signal based on the vibration frequencies;
The sorting and combining unit 5033 is configured to combine the vibration signals corresponding to each of the binary numbers according to the sorting order of the binary numbers in the transmission symbol string, so as to obtain a second vibration signal.
The terminal transmits specific vibration information to the optical fiber, requests access registration to the base station, acquires registration information of the terminal after transmitting vibration signals with specific frequencies, converts the registration information into a certain format, converts the vibration information into vibration signals again according to specific format contents, acts on the optical fiber, and finally transmits the vibration signals to the base station for registration.
Fig. 8 to 11 above describe the middle optical sensing communication base station and the optical sensing communication terminal in the embodiment of the present invention in detail from the point of view of modularized functional entities, and the communication system in the embodiment of the present invention is described in detail from the point of view of hardware processing. Fig. 12 is a schematic hardware diagram of a communication system according to an embodiment of the present invention, where the communication system includes an optical sensing communication base station and an optical sensing communication terminal, where the optical sensing communication base station is used to connect one end of an optical fiber, and the optical sensing communication terminal is coupled to the optical fiber and used to load vibration on the optical fiber.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and the computer readable storage medium may also be a volatile computer readable storage medium, where instructions are stored in the computer readable storage medium, where the instructions when executed on a computer cause the computer to perform the steps of the terminal automatic access method provided in the foregoing embodiments.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus or device, unit described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. An automatic terminal access method applied to a base station in a communication system, the communication system comprising a base station and a terminal, the base station being used for connecting one end of an optical fiber, the terminal being coupled to the optical fiber for loading vibration on the optical fiber, the automatic terminal access method comprising:
receiving a first vibration signal output by the terminal at a specific frequency through the optical fiber, wherein the first vibration signal lasts for a preset time length;
sampling based on the first vibration signal, and transforming the sampling result to obtain an access position of the terminal;
receiving a second vibration signal sent by the terminal based on the access position, analyzing the second vibration signal to obtain a corresponding data stream, and judging whether the data stream accords with a verification rule, wherein the data stream is obtained by converting the content of a registration packet by the terminal, the second vibration signal is generated by the terminal based on the corresponding vibration frequency matched by the data stream from a preset corresponding relation table, and the corresponding relation table is a corresponding relation table between transmission symbols in the data stream and the vibration frequency;
If yes, the successful receiving of the registration packet sent by the terminal is confirmed, and the automatic access configuration of the terminal is finished.
2. The automatic access method of a terminal according to claim 1, wherein the steps of sampling based on the first vibration signal and transforming the sampling result to obtain the access position of the terminal include:
determining the time interval of the pulse sent by the base station based on the frequency of the vibration signal to obtain the sampling frequency;
sampling the first vibration signal based on the sampling frequency to obtain a sampling result;
converting the sampling result from a time domain to a frequency domain to obtain the amplitude of a vibration signal sent by the terminal;
carrying out time summation average on the amplitude of the vibration signal, and judging whether the average value exceeds a valve value;
if yes, the access of the terminal equipment is confirmed, and the access position of the terminal is determined according to the influence range of the vibration signal.
3. The method for automatically accessing a terminal according to claim 1, wherein the receiving the second vibration signal sent by the terminal based on the access location, analyzing the second vibration signal to obtain a corresponding data stream, and determining whether the data stream meets a verification rule, includes:
Obtaining the vibration frequency of each vibration signal in the second vibration signal based on the change of the received optical fiber signal;
arranging the vibration frequency of each vibration signal according to the time sequence received by the base station to obtain the vibration frequency of a second vibration signal;
and analyzing the second vibration signal according to the vibration frequency and a preset corresponding relation table to obtain a data stream corresponding to the second vibration signal, and judging whether the data stream accords with a verification rule.
4. The automatic terminal access method according to claim 3, wherein the analyzing the second vibration signal according to the vibration frequency and the preset correspondence table to obtain a data stream corresponding to the second vibration signal, and determining whether the data stream meets a verification rule includes:
matching the vibration frequency with corresponding binary numbers from a preset corresponding relation table to obtain the data stream, wherein the data stream is a transmission symbol string composed of a plurality of binary numbers;
converting each system number in the data stream, and obtaining a registration packet of the terminal based on a conversion result and a preset character string format;
and checking the content of the registration packet, and judging whether the content accords with a check rule.
5. The method for automatically accessing a terminal according to claim 4, wherein the verifying the content of the registration packet, determining whether the verification rule is met, comprises:
performing verification operation on each byte in the registration packet character string to obtain an operation result;
extracting a specific byte from the operation result, performing error checking on the content of the specific byte, and judging whether the content is a preset value or not;
if yes, confirming that the content of the registration packet accords with the verification rule.
6. An automatic terminal access method applied to a terminal in a communication system, the communication system including a base station and a terminal, the base station being used for connecting one end of an optical fiber, the terminal being coupled to the optical fiber for loading vibration on the optical fiber, the automatic terminal access method comprising:
outputting a first vibration signal with a specific frequency to act on the optical fiber for a preset time length, wherein the first vibration signal is used for indicating the base station to analyze according to the specific frequency to obtain an access position of the terminal and receiving the vibration signal of the terminal based on the access position;
After the first vibration signal is vibrated, acquiring equipment information of the terminal, extracting registration information in the equipment information, generating a registration packet based on the registration information, and converting the content of the registration packet into a data stream, wherein the data stream is a transmission symbol string composed of a plurality of section numbers;
matching corresponding vibration frequencies from a preset corresponding relation table based on the data stream, and generating a second vibration signal based on the vibration frequencies, wherein the corresponding relation table is a corresponding relation table between transmission symbols in the data stream and the vibration frequencies;
and applying the second vibration signal to the optical fiber, wherein the second vibration signal is used for indicating the base station to analyze the second vibration signal to obtain the data stream, indicating the base station to judge whether the data stream accords with a verification rule, and if so, confirming that the registration packet sent by the terminal is successfully received, and ending the automatic terminal access configuration.
7. The terminal automatic access method according to claim 6, wherein the extracting the registration information in the device information, generating a registration packet based on the registration information, and converting the content of the registration packet into a data stream, comprises:
Extracting registration information in the equipment information and determining a bit value of the registration information;
according to a preset character string format, the registration information is distributed to each byte in the character string format on average based on the bit value, and a registration packet is obtained;
and converting the registration information on each byte in the registration packet into a binary number to obtain a data stream corresponding to the registration information.
8. The method for automatically accessing a terminal according to claim 6, wherein the matching the corresponding vibration frequency from a preset correspondence table based on the data stream, and generating a second vibration signal based on the vibration frequency, comprises:
extracting each section of the number in the transmission symbol string;
matching vibration frequencies corresponding to the binary numbers based on a preset corresponding relation table, and constructing corresponding vibration signals based on the vibration frequencies;
and combining vibration signals corresponding to each binary number according to the ordering sequence of the binary numbers in the transmission symbol string to obtain a second vibration signal.
9. An optical sensing communication base station applied to a communication system, the communication system including an optical sensing communication base station and an optical sensing communication terminal, the optical sensing communication base station being used for connecting one end of an optical fiber, the optical sensing communication terminal being coupled to the optical fiber for loading vibration on the optical fiber, the optical sensing communication base station comprising:
The receiving module is used for receiving a first vibration signal output by the terminal at a specific frequency through the optical fiber, wherein the first vibration signal lasts for a preset time length;
the sampling module is used for sampling based on the first vibration signal and transforming the sampling result to obtain the access position of the terminal;
the analysis module is used for receiving a second vibration signal sent by the terminal based on the access position, analyzing the second vibration signal to obtain a corresponding data stream, and judging whether the data stream accords with a verification rule, wherein the data stream is obtained by converting the content of a registration packet by the terminal, the second vibration signal is generated by the terminal based on the corresponding vibration frequency matched by the data stream from a preset corresponding relation table, and the corresponding relation table is a corresponding relation table between transmission symbols in the data stream and the vibration frequency;
and the access module is used for confirming that the registration packet sent by the terminal is successfully received if the verification rule is met, and ending the automatic access configuration of the terminal.
10. An optical sensing communication terminal, applied to a communication system, the communication system including an optical sensing communication base station and an optical sensing communication terminal, the optical sensing communication base station being used for connecting one end of an optical fiber, the optical sensing communication terminal being coupled to the optical fiber for loading vibration on the optical fiber, the optical sensing communication terminal comprising:
The first vibration module is used for outputting a first vibration signal at a specific frequency to act on the optical fiber and lasting for a preset time length, wherein the first vibration signal is used for indicating the base station to analyze according to the specific frequency to obtain an access position of the terminal and receiving the vibration signal of the terminal based on the access position;
the conversion module is used for acquiring equipment information of the terminal after the first vibration signal is vibrated, extracting registration information in the equipment information, generating a registration packet based on the registration information, and converting the content of the registration packet into a data stream, wherein the data stream is a transmission symbol string composed of a plurality of section numbers;
the second vibration module is used for matching corresponding vibration frequencies from a preset corresponding relation table based on the data stream and generating a second vibration signal based on the vibration frequencies, wherein the corresponding relation table is a corresponding relation table between transmission symbols in the data stream and the vibration frequencies;
and the transmission module is used for acting the second vibration signal on the optical fiber, wherein the second vibration signal is used for indicating the base station to analyze the second vibration signal to obtain the data stream, judging whether the data stream accords with a verification rule, if so, confirming that the registration packet sent by the terminal is successfully received, and ending the automatic terminal access configuration.
11. A communication system comprising an optical sensing communication base station for connecting one end of an optical fiber and an optical sensing communication terminal coupled to the optical fiber for loading vibrations on the optical fiber; wherein the optical sensing communication base station is configured to perform the terminal automatic access method according to any one of claims 1 to 5; the optical sensing communication terminal is configured to perform the terminal automatic access method according to any one of claims 6 to 8.
12. A computer readable storage medium having instructions stored thereon, which when executed by a processor, implement the steps of the terminal automatic access method according to any of claims 1-5 or the steps of the terminal automatic access method according to any of claims 6-8.
CN202311178524.5A 2023-09-13 2023-09-13 Terminal automatic access method, terminal, base station, communication system and storage medium Active CN116915329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311178524.5A CN116915329B (en) 2023-09-13 2023-09-13 Terminal automatic access method, terminal, base station, communication system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311178524.5A CN116915329B (en) 2023-09-13 2023-09-13 Terminal automatic access method, terminal, base station, communication system and storage medium

Publications (2)

Publication Number Publication Date
CN116915329A true CN116915329A (en) 2023-10-20
CN116915329B CN116915329B (en) 2023-12-08

Family

ID=88367305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311178524.5A Active CN116915329B (en) 2023-09-13 2023-09-13 Terminal automatic access method, terminal, base station, communication system and storage medium

Country Status (1)

Country Link
CN (1) CN116915329B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487589A (en) * 2016-10-18 2017-03-08 中国电力科学研究院 A kind of terminal automatically accesses and configuring management method
CN111917472A (en) * 2020-07-24 2020-11-10 中山水木光华电子信息科技有限公司 Bidirectional information transmission system and method based on optical fiber coding
CN113099513A (en) * 2021-03-29 2021-07-09 努比亚技术有限公司 Base station selection method, electronic terminal and computer readable storage medium
CN113541800A (en) * 2021-09-17 2021-10-22 高勘(广州)技术有限公司 Communication method between base station and terminal and corresponding communication system
CN114726442A (en) * 2022-06-02 2022-07-08 高勘(广州)技术有限公司 Distributed communication method, system, device and storage medium based on optical fiber sensing
CN115001841A (en) * 2022-06-23 2022-09-02 北京瑞莱智慧科技有限公司 Identity authentication method, identity authentication device and storage medium
US20220333956A1 (en) * 2021-04-14 2022-10-20 Nec Laboratories America, Inc Mapping using optical fiber sensing
CN115294709A (en) * 2022-08-02 2022-11-04 苏州铁源智能科技有限公司 Optical fiber vibration monitoring model, precaution system, electronic equipment and storage medium
CN115396755A (en) * 2022-10-28 2022-11-25 高勘(广州)技术有限公司 Power pipe gallery operation and maintenance method, device, equipment and storage medium
CN115987386A (en) * 2022-12-06 2023-04-18 武汉光谷互连科技有限公司 Optical cable same-route detection device and method
CN116112832A (en) * 2021-11-11 2023-05-12 华为技术有限公司 Co-route detection method and device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487589A (en) * 2016-10-18 2017-03-08 中国电力科学研究院 A kind of terminal automatically accesses and configuring management method
CN111917472A (en) * 2020-07-24 2020-11-10 中山水木光华电子信息科技有限公司 Bidirectional information transmission system and method based on optical fiber coding
CN113099513A (en) * 2021-03-29 2021-07-09 努比亚技术有限公司 Base station selection method, electronic terminal and computer readable storage medium
US20220333956A1 (en) * 2021-04-14 2022-10-20 Nec Laboratories America, Inc Mapping using optical fiber sensing
CN113541800A (en) * 2021-09-17 2021-10-22 高勘(广州)技术有限公司 Communication method between base station and terminal and corresponding communication system
CN116112832A (en) * 2021-11-11 2023-05-12 华为技术有限公司 Co-route detection method and device
CN114726442A (en) * 2022-06-02 2022-07-08 高勘(广州)技术有限公司 Distributed communication method, system, device and storage medium based on optical fiber sensing
CN115001841A (en) * 2022-06-23 2022-09-02 北京瑞莱智慧科技有限公司 Identity authentication method, identity authentication device and storage medium
CN115294709A (en) * 2022-08-02 2022-11-04 苏州铁源智能科技有限公司 Optical fiber vibration monitoring model, precaution system, electronic equipment and storage medium
CN115396755A (en) * 2022-10-28 2022-11-25 高勘(广州)技术有限公司 Power pipe gallery operation and maintenance method, device, equipment and storage medium
CN115987386A (en) * 2022-12-06 2023-04-18 武汉光谷互连科技有限公司 Optical cable same-route detection device and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵兴群;薛冬青;: "分布式光纤振动传感信号数据采集系统设计", 科技导报, no. 18 *

Also Published As

Publication number Publication date
CN116915329B (en) 2023-12-08

Similar Documents

Publication Publication Date Title
CN110225417B (en) Data processing method and server, and method and server for detecting stuck state
JPH09128342A (en) Tracing device for transaction
WO2006045322A1 (en) Method and system for monitoring performance of a client-server architecture
FR2955402A1 (en) METHODS AND RECEPTORS FOR MEASURING DATA PULSES
CN109274669B (en) WAF reverse proxy method based on online flow mirror image bypass
CN110808994B (en) Method and device for detecting brute force cracking operation and server
WO2016061353A1 (en) Inaudible signaling tone
WO2016123936A1 (en) Method, device, test board, and system for testing traffic of interface board
CN105930264A (en) Computer software performance test method
CN116915329B (en) Terminal automatic access method, terminal, base station, communication system and storage medium
CN105791059A (en) Broadband speed measuring method, device and system
CN102368384A (en) Voice module test method and voice module test device
CN103592618B (en) Ultrasonic positioning method and ultrasonic positioning system
JP7407950B2 (en) Distributed fiber optic sensing using point sensors
CN110493226B (en) Method and system for generating flow vulnerability utilization aiming at memory corruption vulnerability attack
CN111405603B (en) Time delay acquisition method, testing device and computer storage medium
CN112202742B (en) Data processing method of rolling mill equipment based on 5G network and related equipment
CN109521942A (en) A kind of CAN bus protocol analysis system and method based on high-resolution oscillscope tube
CN109584889A (en) Audio frequency transmission method and device and storage medium
CN116229699B (en) Output signal control system of infrared remote control receiving chip
CN110730394A (en) Intelligent optical network unit configuration method and device based on voice interaction
CN110971644A (en) Page access monitoring method and device
CN102724216B (en) Service request access method and centre server
CN113572683B (en) Data processing method, device, electronic equipment and storage medium
CN117579142A (en) Optical fiber detection device operation and maintenance method, system and storage medium

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