Disclosure of Invention
In view of the above problems, embodiments of the present invention provide an intercom system and a method for transmitting a sub-audio signal in an intercom system for solving the above technical problems, so as to reduce the cost and facilitate the modification of the frequency of the sub-audio signal used.
According to one aspect of the present invention, an intercom system provided by the embodiment of the present invention includes a transmitting-end intercom and a receiving-end intercom, where the transmitting-end intercom includes:
the system comprises a sending terminal radio station main board and a sending terminal option board, wherein the sending terminal option board comprises:
a first storage unit for storing a program for transmitting a sub-audio signal;
the first central processing unit executes the program for transmitting the sub-audio signal, for:
sampling the transmitted sub-audio signal according to a predetermined frequency;
quantizing the sampled data;
the quantized data are digitally encoded and then sent to a main board of a sending terminal radio station;
the receiving-end interphone comprises:
the receiving end radio station mainboard and receiving end option board, wherein the receiving end option board is including:
a second storage unit for storing a program for receiving the sub-audio signal;
and a second central processing unit executing the program for receiving the sub-audio signal, for:
decoding the digital coded data received from the main board of the receiving terminal radio station;
and carrying out low-pass filtering on the decoded data to obtain a sub-audio signal.
The transmitting terminal selecting board transmits the digital coding data to the transmitting terminal radio station mainboard through the first preset communication interface.
Wherein the first predetermined communication interface is a synchronous serial interface.
Wherein, the sender radio station mainboard includes:
the verification coding module is used for generating verification coding data for the digital coding data sent by the sending end option board according to a verification rule;
the error correction coding module is used for generating error correction coding data according to error correction rules from the check coding data;
the interleaving coding module is used for interleaving coding the error correction coding data;
the digital-to-analog conversion module is used for carrying out digital-to-analog conversion on the data obtained by the interweaving coding;
the frequency modulation module is used for carrying out frequency modulation on the data obtained by digital-to-analog conversion and sending out the data.
The receiving terminal selecting board receives digital coding data from the receiving terminal radio station mainboard through the second preset communication interface.
Wherein the second predetermined communication interface is a synchronous serial interface.
Wherein, the receiving and sending end radio station mainboard includes:
the frequency modulation demodulation module is used for performing frequency modulation demodulation on the frequency modulation data sent by the sending end;
the checking and decoding module is used for checking and decoding the data obtained by frequency modulation and demodulation according to a checking rule;
the error correction decoding module is used for performing error correction decoding on the data obtained by the check decoding according to an error correction rule;
the interleaving decoding module is used for interleaving decoding the data obtained by error correction decoding;
and the analog-to-digital conversion module is used for carrying out analog-to-digital conversion on the data obtained by the interleaving decoding to obtain digital coded data.
Wherein the digital code is pulse code modulation, PCM, code, and the code is pulse code modulation, PCM, code.
According to one aspect of the present invention, a transmitting terminal option board for the intercom system provided by the embodiment of the present invention includes:
a first storage unit for storing a program for transmitting a sub-audio signal;
and a central processing unit executing the program for transmitting the sub-audio signal, wherein the program is used for:
sampling the transmitted sub-audio signal according to a predetermined frequency;
quantizing the sampled data;
and carrying out binary digital coding on the quantized data and then sending the binary digital coded data to a main board of a sending terminal radio station of the interphone system.
According to one aspect of the present invention, a receiving terminal option board for the intercom system according to an embodiment of the present invention includes:
a second storage unit for storing a program for receiving the sub-audio signal;
a central processing unit executing the program for:
decoding binary digital coding data sent from a radio station main board of a receiving end of the interphone system;
and carrying out low-pass filtering on the decoded data to obtain a sub-audio signal.
According to one aspect of the present invention, a transmitting-end interphone for the interphone system provided by the embodiment of the present invention includes a transmitting-end station main board, and in addition, a transmitting-end option board, where the transmitting-end option board includes:
a first storage unit for storing a program for transmitting a sub-audio signal;
and a central processing unit executing the program for transmitting the sub-audio signal, wherein the program is used for:
sampling the transmitted sub-audio signal according to a predetermined frequency;
quantizing the sampled data;
and carrying out binary digital coding on the quantized data and then sending the binary digital coded data to a main board of the sending terminal radio station.
According to one aspect of the present invention, a receiving-end interphone for the interphone system provided by the embodiment of the present invention includes a receiving-end station main board, and further includes a receiving-end option board, where the receiving-end option board includes:
a second storage unit for storing a program for receiving the sub-audio signal;
a central processing unit executing the program for:
decoding binary digital coded data received from a receiving terminal radio station mainboard;
and carrying out low-pass filtering on the decoded data to obtain a sub-audio signal.
According to one aspect of the present invention, a method for transmitting a sub-audio signal in an intercom system is provided, where the method includes a step of transmitting the sub-audio signal by a transmitting terminal option board and a step of receiving the sub-audio signal by a receiving terminal option board, where:
the transmitting terminal option board transmits the sub-audio signals, which comprises the following steps:
the first central processing unit reads a stored program for transmitting the sub-audio signals;
the first central processing unit executes the program for transmitting the sub-audio signals and specifically executes the following steps:
sampling the transmitted sub-audio signal according to a predetermined frequency;
quantizing the sampled data;
the quantized data are digitally encoded and then sent to a main board of a sending terminal radio station;
the step of receiving the sub-audio signal by the receiving end option board comprises the following steps:
the second CPU reads a stored program for receiving the sub-audio signals;
the second central processing unit executes the program for receiving the sub-audio signals and specifically executes the following steps:
decoding the digital coded data received from the main board of the receiving terminal radio station;
and carrying out low-pass filtering on the decoded data to obtain a sub-audio signal.
In addition, the method further comprises the step that the main board of the sending terminal radio station sends sub-audio signals:
receiving the digital coding data sent by the sending terminal option board
Generating check code data according to a check rule for the digital code data sent by the sending end option board;
generating error correction coding data according to error correction rules by the check coding data;
interleaving the error correction coding data;
performing digital-to-analog conversion on the data obtained by interleaving coding;
and carrying out frequency modulation on the data obtained by digital-to-analog conversion, and sending out the data.
In addition, the method further comprises the step of receiving the sub-audio signal by the receiving terminal radio station mainboard:
performing frequency modulation demodulation on the frequency modulation data sent by the main board of the sending terminal radio station;
checking and decoding the data obtained by frequency modulation and demodulation according to a checking rule;
performing error correction decoding on the data obtained by the check decoding according to an error correction rule;
interleaving and decoding the data obtained by error correction decoding;
and carrying out analog-to-digital conversion on the data obtained by interleaving and decoding to obtain digital coded data.
According to the intercom system and the method for transmitting the sub-audio signals in the intercom system provided by the embodiment of the invention, a transmitting-end intercom in the intercom system comprises the following steps: the system comprises a sending terminal radio station main board and a sending terminal option board, wherein the sending terminal option board comprises: a first storage unit for storing a program for transmitting a sub-audio signal; the first central processing unit is used for executing the program for transmitting the sub-audio signals and is used for sampling the transmitted sub-audio signals according to a preset frequency; quantizing the sampled data; the quantized data are digitally encoded and then sent to a main board of a sending terminal radio station; the receiving-end interphone comprises: and the receiving end radio station mainboard and receiving end option board, wherein the receiving end option board includes: a second storage unit for storing a program for receiving the sub-audio signal; the second central processing unit is used for executing the program for receiving the sub-audio signals and decoding the digital coding data received from the main board of the receiving terminal radio station; the method comprises the steps of obtaining a sub-audio signal by low-pass filtering the decoded data, wherein the sub-audio signal can be sampled, quantized, encoded and the like by executing a program for transmitting the sub-audio signal through a transmitting end selecting plate, and the frequency of the used sub-audio signal can be conveniently changed by modifying software programs executed in the transmitting end selecting plate and the receiving end selecting plate.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which are derived by a person skilled in the art based on the embodiments of the invention, fall within the scope of protection of the invention.
Referring to fig. 1, the intercom system according to an embodiment of the present invention includes a transmitting intercom 1 and a receiving intercom 2, wherein the transmitting intercom 1 includes: a transmitter station main board 11 and a transmitter option board 12, wherein the option boards (including a transmitter option board and a receiver option board) are optional boards set by each interphone manufacturer, various specific functions and applications can be realized through the option boards, and the station main board can provide standard interfaces for the option boards to realize corresponding functions and applications;
in particular, the transmitting-end option board 12 of the present embodiment includes:
a first storage unit 121 for storing a program for transmitting a sub-audio signal;
the first central processor 122 executes the program for transmitting the sub-audio signal, for:
in practice, the sampling in this step is to extract the sample value of the analog signal at a frequency more than 2 times the signal bandwidth to become a discrete sampling signal on the time axis, for example, the predetermined frequency may be 8 khz for the mode of pulse code modulation PCM coding;
the sampled data is quantized, and in practice, the sampled signal is an analog signal although it is a discrete signal on the time axis, and its sample value may have an infinite number of values within a certain range of values. Therefore, in order to realize the representation of the sample by the digital code, the sample needs to be classified and 'rounded', so that the sample in a certain value range is changed from an infinite number of values to a finite number of values, namely, quantization is realized;
the quantized data is digitally encoded and then sent to a main board of a sending terminal radio station, and when the digital encoding is realized, quantized sampling signals are converted into binary code streams with given word length, for example, the digital encoding is carried out according to a Pulse Code Modulation (PCM) mode;
in this embodiment, the receiving-end interphone 2 includes: a receiving terminal station main board 21 and a receiving terminal option board 22, wherein the receiving terminal option board 22 comprises:
a second storage unit 221 for storing a program for receiving a sub-audio signal;
the second central processor 222 executes the program for receiving the sub-audio signal, for:
the digital code data received from the receiving end radio station main board 11 is decoded, and in specific implementation, the decoding mode needs to correspond to the encoding mode, for example, the transmitting end performs digital coding by adopting the encoding mode of pulse code modulation PCM, and then the decoding also needs to perform decoding by adopting the decoding mode of pulse code modulation PCM;
and carrying out low-pass filtering on the decoded data to obtain a sub-audio signal, wherein the frequency of the filter is set according to the frequency of the sub-audio signal to be transmitted in specific implementation.
It should be noted that, in the above embodiment, a first predetermined communication interface is provided between the sender option board 11 and the sender station main board 12, where the first predetermined communication interface may be a default reserved interface between the sender option board 11 and the sender station main board 12, for example, a synchronous serial interface SSI in the embodiment, and the sender option board 11 may send digitally encoded data to the sender station main board 12 through the first predetermined communication interface.
Also, in the above embodiment, a second predetermined communication interface is provided between the receiver select board 21 and the receiver station main board 22, where the second predetermined communication interface may be a default reserved interface between the receiver select board 21 and the receiver station main board 22, for example, a synchronous serial interface SSI in the embodiment, and the receiver select board 21 may receive digitally encoded data from the receiver station main board 22 through the second predetermined communication interface.
The first storage unit 121 may be a separate storage unit or a storage unit of the first cpu 122, and the second storage unit 221 may be a separate storage unit or a storage unit of the second cpu 222, which is not particularly limited herein.
In addition, in connection with fig. 2, to implement transmission of the sub-audio signal between the transmitting station main board and the receiving station main board, as an alternative embodiment, the transmitting station main board 11 may include:
the check coding module 111 is configured to generate check coded data according to a check rule for the digital coded data sent by the sending terminal option board, where the check rule may be, for example, a check rule of a cyclic redundancy check code (CRC, cyclic Redundancy Check), and of course, other check rules may be adopted in practice, which does not need to be limited in detail;
the error correction coding module 112 is configured to generate error correction coded data from the check coded data according to an error correction rule, where the error correction coding rule may be, for example, a forward error correction code (FEC, forward Error Correction) rule, and other error correction coding rules may be adopted in practice, which need not be limited in detail;
an interleaving coding module 113, configured to perform interleaving coding on the error correction coded data, where in this embodiment, the interleaving coding is to use a coding (FEC) technique for correcting random errors to eliminate random errors by discretizing a longer burst error into random errors, and the larger the interleaving depth is, the larger the dispersion and the stronger the burst error resistance. And will not be described in detail herein;
the digital-to-analog conversion module 114 is configured to perform digital-to-analog conversion on the data obtained by interleaving encoding, and in specific implementation, discrete digital signals are converted into analog signals with connection changes, which are not described herein again;
the fm module 115 is configured to fm-modulate the data obtained by digital-to-analog conversion, and send the encoded audio data, such as the sub-audio signal, through frequency modulation adopted by the intercom when the fm-modulated data is implemented, which is not described herein.
It should be noted that, in this embodiment, the related functional modules of the transmitting-end station main board 11 are described only from the perspective of the sub-audio signals, that is, only the implementation modules of checking encoding, error correction encoding, interleaving encoding, digital-to-analog conversion and frequency modulation are performed on the sub-audio signal digital encoded data sent by the transmitting-end option board, and in fact, in the transmitting-end station main board 11, the sub-audio signals and the audio signal data sent by the talker together perform checking encoding, error correction encoding, interleaving encoding, digital-to-analog conversion, frequency modulation and the like, which are not described herein.
In addition, in connection with fig. 3, to implement receiving of the sub-audio signal, the main board 21 may include:
the fm demodulation module 211 is configured to perform fm demodulation on fm modulated data sent from the transmitting end, and in specific implementation, the fm modulated data sent from the transmitting end is demodulated according to the frequency adopted by the interphone, which is not described herein again;
the check decoding module 212 is configured to perform check decoding on the data obtained by frequency modulation according to a check rule, and perform corresponding check decoding according to the check rule adopted by the transmitting end when the data is in specific implementation, for example, the transmitting end adopts a CRC check code, where the CRC check decoding can be adopted;
the error correction decoding module 213 is configured to perform error correction decoding on the data obtained by the check decoding according to an error correction rule, and perform corresponding error correction decoding according to an error correction coding rule adopted by the transmitting end when the data is in specific implementation, for example, the transmitting end adopts FEC error correction coding, where FEC error correction decoding can be adopted;
the interleaving decoding module 214 is configured to perform interleaving decoding on the data obtained by the error correction decoding, and when the data is implemented, the corresponding interleaving decoding is performed according to the sender in an interleaving encoding manner, which is not described herein again;
the analog-to-digital conversion module 215 is configured to perform analog-to-digital conversion on the data obtained by the interleaving decoding to obtain digital encoded data, and in specific implementation, the analog signal that is to be connected and changed is converted into a corresponding digital signal, which is not described herein again.
It should be noted that, in this embodiment, the relevant functional modules of the receiving-end station main board 21 are described only from the perspective of the sub-audio signal, that is, the relevant implementation modules of performing fm demodulation, check decoding, error correction decoding, interleaving decoding, and analog-to-digital conversion on the sub-audio signal data sent from the sending-end station main board, and in fact, in the receiving-end station main board 11, the sub-audio signal and the audio signal data sent by the talker together perform fm demodulation, check decoding, error correction decoding, interleaving decoding, and analog-to-digital conversion, which are not described herein.
Another aspect of the invention is described below.
Referring to fig. 4 and 5, a method for transmitting a sub-audio signal in the intercom system, the method mainly includes a step of transmitting the sub-audio signal by a transmitting terminal option board and a step of receiving the sub-audio signal by a receiving terminal option board, wherein:
referring to fig. 4, the flow of the specific embodiment of transmitting sub-audio signals by the transmitting terminal option board mainly includes the following steps:
step S11, the first central processing unit reads a stored program for transmitting the sub-audio signals;
step S12, the first central processing unit executes the program for transmitting the sub-audio signal and specifically executes the following steps:
step S121, sampling the transmitted sub-audio signal according to a predetermined frequency, which may be, for example, 8 khz for a pulse code modulation PCM coding scheme;
step S122, quantizing the sampled data;
step S123, the quantized data is sent to a main board of a sending terminal station after being digitally encoded, and when the digital encoding is implemented, for example, a pulse code modulation PCM encoding mode is adopted;
accordingly, referring to fig. 5, the process of receiving a sub-audio signal by the receiving terminal option board is shown in an embodiment, and mainly includes the following steps:
step S21, the second CPU reads the stored program for receiving the sub-audio signal;
step S22, the second central processing unit executes the program for receiving the sub-audio signal and specifically executes the following steps:
step S226, decoding the digital encoded data received from the receiving end station motherboard, for example, in the specific implementation, the corresponding transmitting end adopts a pulse code modulation PCM encoding mode, where the corresponding encoding mode adopts a pulse code modulation PCM decoding mode;
in step S227, the decoded data is low-pass filtered to obtain a sub-audio signal, and when the method is specifically implemented, the frequency of the filter is set according to the frequency of the sub-audio signal to be transmitted.
In addition, for the transmission of the sub-audio signal between the sending end radio station main board and the receiving end radio station main board, for example, in connection with fig. 6, the sending end includes a step of sending the sub-audio signal by the sending end radio station main board in addition to the step of sending the sub-audio signal by the sending end option board, which mainly includes the following steps:
step S124, receiving the digital encoded data sent by the sending end option board, and in specific implementation, for example, receiving the digital encoded data sent by the sending end option board through an SSI interface reserved between the sending end radio station main board and the sending end option board, which is not described herein again;
step S125, generating check code data according to a check rule for the digital code data sent by the sending terminal option board, where the check code is specifically implemented with reference to the foregoing description, for example, a check rule of cyclic redundancy check codes (CRC, cyclic Redundancy Check), and the check rule is not specifically limited herein;
step S126, generating error correction coded data from the check coded data according to an error correction rule, and referring to the foregoing description, for example, performing error correction coding using a forward error correction code (FEC, forward Error Correction) rule, where the error correction rule is not specifically limited;
step S127, interleaving and encoding the error correction encoding data;
step S128, performing digital-to-analog conversion on the data obtained by interleaving encoding, and in specific implementation, converting discrete digital signals into continuous analog signals, which are not described herein again;
in step S129, the data obtained by digital-to-analog conversion is sent out through fm modulation, and in particular, when the digital-to-analog conversion is implemented, an analog signal is sent out through fm modulation according to the frequency adopted by the interphone.
In addition, referring to fig. 7, the receiving end further includes a step of receiving the sub-audio signal by the receiving end station motherboard, besides the step of receiving the sub-audio signal by the receiving end option board, and specifically includes the following steps:
step S221, performing frequency modulation demodulation on the frequency modulation data sent by the main board of the sending terminal, namely demodulating the frequency modulation data sent by the sending terminal according to the frequency adopted by the interphone when the specific implementation is realized, and the details are not repeated here;
step S222, performing check decoding on the data obtained by frequency modulation and demodulation according to a check rule, and performing corresponding check decoding according to the check rule adopted by the transmitting end when the data is specifically implemented, for example, the transmitting end adopts CRC check encoding, and the CRC check decoding can be adopted here;
step S223, error correction decoding is carried out on the data obtained by the check decoding according to the error correction rule, and when the data is specifically implemented, corresponding error correction decoding is carried out according to the error correction coding rule adopted by the sending end, for example, the sending end adopts FEC error correction coding, and here, FEC error correction decoding can be adopted;
step S224, performing interleaving decoding on the data obtained by error correction decoding, and when the data is specifically implemented, performing corresponding interleaving decoding according to the sender by using an interleaving encoding mode, which is not described herein again;
in step S225, the data obtained by interleaving and decoding is subjected to analog-to-digital conversion to obtain digital encoded data, and in specific implementation, the analog signal of the connection change is converted into a corresponding digital signal, which is not described herein again.
In the description provided above, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims.