E1 multiplexing device and control method thereof, electronic device, and storage medium

Release and cross telephone signals in the E1 multiplexing device through the FPGA chip, which solves the problem that traditional E1 multiplexing devices cannot transmit telephones greater than 31 channels, and achieves higher telephone signal transmission efficiency.

CN116016382BActive Publication Date: 2024-11-12HANG ZHOU FEI CHANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211555878.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-06
Publication Date
2024-11-12
Estimated Expiration
2042-12-06

AI Technical Summary

Technical Problem

The maximum number of telephone channels transmitted by traditional E1 (2M) channel of each E1 (2M) channel is 31, which cannot meet the number of telephone channels transmission requirements of greater than 31 channels.

Method used

Using FPGA chip, telephone interface circuit and E1 interface circuit, the time slot of the E1 link is released through the telephone hang-up signal, and the telephone signal with call request is crossed to the idle time slot according to the telephone off-hook signal, achieving greater than 31 telephones The mapping of the signal is transmitted in 1-31 time slots of the E1 link.

Benefits of technology

Effective transmission of telephone signals greater than 31 channels is achieved, avoiding the problem of idle telephone channels and static time slot mapping in traditional equipment, and improving the utilization rate of E1 link.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016382B_ABST
    Figure CN116016382B_ABST
Patent Text Reader

Abstract

The present invention discloses an E1 multiplexing device and a control method thereof, an electronic device, and a storage medium. The E1 multiplexing device includes: an FPGA chip, a telephone interface circuit, and an E1 interface circuit; the telephone interface circuit is connected to the FPGA chip, and the FPGA chip is connected to the E1 interface circuit; the FPGA chip is used to release one or more time slots in 1-31 channels of each E1 link according to a telephone hook signal, and cross the telephone signal with a call request to an idle time slot according to the telephone off-hook signal, so as to realize mapping of telephone signals greater than 31 channels to 1-31 time slots of the E1 link, so that telephone signals greater than 31 channels are transmitted through one E1 link. When the telephone is off-hook, the present invention actively applies for time slot occupancy, and automatically releases time slot occupancy after hanging up, so that more than 31 channels of telephones, such as 64 channels of telephones, can be transmitted through one E1 link, solving the problem that the traditional E1 multiplexing device can only transmit 31 channels of telephones at most.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to an E1 multiplexing device and a control method thereof, an electronic device, and a storage medium. Background Art

[0002] E1 multiplexing equipment is a small-capacity, multi-service multiplexing and transmission equipment that can provide users with comprehensive communication functions to meet their actual needs for telephone, data and computer network connections. Its multiple transmission modes enable it to be flexibly applied in various communication networks. It can be used as an optoelectronic integrated communication service access device, or as a PCM multiplexing device with a small-capacity multi-service interface, or as a comprehensive communication service access device for a dedicated line network. E1 multiplexing equipment has always been a very widely used comprehensive service access device in the power system communication network. Using E1 multiplexing equipment, voice services can be easily multiplexed into the E1 channel.

[0003] Traditional E1 multiplexing equipment combines 1 to 30 telephones and 1 N*64K Ethernet signal into a standard 2M (E1) channel for transmission. During the transmission process, the 2048kbit / s channel is divided into 32 parts, each of which is a time slot, that is, each time slot is 64K. Among them, time slot 0 is the frame synchronization sequence. The PCM31 mode can transmit a maximum of 31 channels of 64kbit / s, that is, each E1 (2M channel) can transmit a maximum of 31 telephone channels, which cannot meet the transmission of more than 31 telephone channels. Summary of the invention

[0004] In view of the above technical problems, the purpose of the present invention is to provide an E1 multiplexing device and its control method, electronic device, and storage medium to solve the problem that in actual use, the maximum number of telephone lines transmitted by each E1 (2M channel) of the traditional E1 multiplexing device is 31, which cannot meet the transmission of telephone lines greater than 31.

[0005] The present invention adopts the following technical solutions:

[0006] An E1 multiplexing device comprises: an FPGA chip, a telephone interface circuit and an E1 interface circuit; the telephone interface circuit is connected to the FPGA chip, and the FPGA chip is connected to the E1 interface circuit;

[0007] The telephone interface circuit is used to convert the digital signal of the FPGA chip into an analog voice signal, and convert the analog audio signal and control signal input by the analog telephone into digital signals and send them to the FPGA chip, and when converting the analog audio signal and control signal into digital signals, generate a telephone off-hook signal and a telephone on-hook signal and send them to the FPGA chip;

[0008] The FPGA chip is used to release one or more time slots among 1-31 channels of each E1 link according to the telephone hook signal, and cross the telephone signal with call request to the idle time slot according to the telephone off-hook signal, so as to map more than 31 telephone signals to 1-31 time slots of the E1 link, so that more than 31 telephone signals can be transmitted through one E1 link.

[0009] Preferably, the FPGA chip includes a framing module, a deframing module, a reading control module, a writing control module, a mapping table control module, a DPRAM sending buffer module and a DPRAM receiving buffer module;

[0010] The mapping table control module is used to control the application and release of one or more time slots in 1-31 channels of each E1 link according to the telephone off-hook signal and the telephone on-hook signal, and automatically cross the time slots, cross one or more telephone signals with call requests to the idle time slots, and store the time slot cross information and the time slot information associated with the time slots;

[0011] The framing module reads the cached telephone data from the reading control module, encapsulates it into a standard E1 format signal and sends it to the E1 link, and generates a notification signal at the frame header of each synchronization frame, the notification signal is used to notify the reading control module to read the data of the next frame from the DPRAM sending buffer module;

[0012] The reading control module is used to read the telephone data of the next frame from the DPRAM sending buffer module and temporarily store it according to the received time slot information and time slot cross information;

[0013] The DPRAM transmission buffer module is used to store the signal input by the telephone interface circuit in the DPRAM memory in the FPGA chip according to the received time slot information;

[0014] The de-framing module is used to decode the data of each time slot of the E1 link according to the E1 format, send the parsed information to the write control module, and send the time slot information to the DPRAM send buffer module to make the data sent and received consistent;

[0015] The write control module caches the telephone data decoded by the de-framing module into the DPRAM receiving cache module according to the received time slot signal and time slot cross information.

[0016] The DPRAM receiving buffer module stores the telephone data input by the write control module in the DPRAM in the FPGA chip, and then sends the telephone data to the telephone interface circuit according to the received time slot information.

[0017] Preferably, the mapping table control module is also used to query the occupancy status of 31 time slots after detecting the telephone off-hook signal; if it is detected that the FULL flag is not pulled high, it indicates that there are idle time slots, and the first idle time slot that is arranged at the front among the idle time slots is obtained, the first idle time slot is written into the lookup table, and the first idle time slot is marked as unoccupied, and the location of the off-hook phone is recorded in the mapping table; the mapping table control module is also used to check the time slot occupancy status again. If all time slots are occupied, the FULL flag is pulled high, and a busy tone is fed back to the phone.

[0018] Preferably, the mapping table control module is also used to, when an on-hook signal is detected, poll the lookup table according to the interface position of the telephone where the on-hook signal is located, obtain the time slot occupied by the on-hook signal, and clear the address of the occupied time slot to release the occupied time slot.

[0019] Preferably, the DPRAM sending cache module is further used to notify the reading control module to process the cached data after the amount of data cached in the DPRAM memory reaches a set value;

[0020] A control method for an E1 multiplexing device comprises the following steps:

[0021] S1: converting the analog audio signal and control signal input by the telephone into digital signals and sending them to the FPGA chip, and when converting the analog audio signal and control signal into digital signals, generating a telephone off-hook signal and a telephone on-hook signal and sending them to the FPGA chip;

[0022] S2: Release one or more time slots among 1-31 channels of each E1 link according to the telephone hook signal through the FPGA chip, and cross the telephone signal with call request to the idle time slot according to the telephone off-hook signal, so as to realize the transmission of more than 31 analog telephone signals through one E1 link.

[0023] Preferably, the FPGA chip includes a framing module, a deframing module, a reading control module, a writing control module, a mapping table control module, a DPRAM sending buffer module and a DPRAM receiving buffer module; the step S2 specifically includes the following steps:

[0024] S21: According to the telephone off-hook signal and the telephone on-hook signal, control the application and release of one or more time slots in the 1-31 channels of each E1 link, and automatically perform time slot crossover, cross one or more telephone signals with call requests to the idle time slots, and store the time slot crossover information and the time slot information associated with the time slots;

[0025] S22: the reading control module reads the telephone data of the next frame from the DPRAM sending buffer module and temporarily stores it according to the received time slot information and time slot cross information;

[0026] S23: the framing module reads the cached telephone data from the reading control module, encapsulates it into a standard E1 format signal and sends it to the E1 link, and generates a notification signal at the frame header of each synchronization frame, the notification signal is used to notify the reading control module to read the data of the next frame from the DPRAM sending buffer module;

[0027] S24: the deframing module extracts the data of each time slot from the data of the E1 link according to the E1 format, sends the parsed information to the write control module, and sends the time slot information to the DPRAM sending buffer module at the same time, so that the data sent and received are consistent;

[0028] S25: The DPRAM transmission buffer module stores the signal input by the telephone interface circuit in the DPRAM memory in the FPGA chip according to the time slot information sent by the de-framing module;

[0029] S26: the write control module caches the telephone data decoded by the de-framing module into the DPRAM receiving cache module according to the received time slot signal and time slot cross information;

[0030] S27: The DPRAM receiving buffer module stores the telephone data input by the write control module in the DPRAM in the FPGA chip, and then sends the telephone data to the telephone interface circuit according to the received time slot information.

[0031] Preferably, the step S21 further includes:

[0032] After detecting the telephone off-hook signal, query the occupancy status of the 31 time slots; if it is detected that the FULL flag is not pulled high, it means that there is an idle time slot, and obtain the first idle time slot that is arranged at the front of the idle time slots, write the first idle time slot into the lookup table, and mark the first idle time slot as unoccupied, and record the location of the off-hook phone in the mapping table;

[0033] The occupancy status of the 31 time slots is checked again. If all time slots are occupied, the FULL flag is pulled high and a busy tone is fed back to the phone.

[0034] An electronic device comprises: at least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method of the E1 multiplexing device.

[0035] A computer storage medium stores a computer program, which, when executed by a processor, implements the control method of an E1 multiplexing device.

[0036] Compared with the prior art, the present invention has the following beneficial effects:

[0037] The present invention releases one or more time slots among 1-31 channels of each E1 link according to a telephone on-hook signal, and crosses telephone signals with call requests to idle time slots according to the telephone off-hook signal, so that telephone signals with more than 31 channels can be mapped to 1-31 channel time slots of the E1 link, so that telephone signals with more than 31 channels are transmitted to corresponding 1-64 channel analog telephones through one E1 link, thereby avoiding the problem that most telephone channels of traditional E1 multiplexing equipment are idle in actual use, even if the telephone is in the on-hook state, the occupied time slot is not actually used, that is, the mapping between the time slot and the telephone is static, resulting in the maximum number of telephone channels transmitted by each E1 (2M channel) being 31. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of an E1 multiplexing device provided by an embodiment of the present invention;

[0039] Figure 2 A schematic diagram of an E1 multiplexing device provided in an embodiment of the present invention when used as an automatic time slot crossover device in a communication network;

[0040] Figure 3 A schematic diagram of an E1 multiplexing device provided in a specific embodiment of the present invention;

[0041] Figure 4 A schematic flow chart of a control method for an E1 multiplexing device provided in one embodiment of the present invention;

[0042] Figure 5 A flowchart of a query step after applying for and releasing one or more time slots in 1-31 channels of each E1 link is provided in one embodiment of the present invention;

[0043] Figure 6 A flowchart of a control method for an E1 multiplexing device provided in a specific embodiment of the present invention;

[0044] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, under the premise of no conflict, the embodiments or technical features described below can be arbitrarily combined to form a new embodiment:

[0046] Embodiment 1:

[0047] Please refer to Figure 1 As shown, Figure 1 A schematic diagram of an E1 multiplexing device of the present invention is shown, comprising: an FPGA chip, a telephone interface circuit and an E1 interface circuit; the telephone interface circuit is connected to the FPGA chip, and the FPGA chip is connected to the E1 interface circuit;

[0048] Please refer to Figure 2 As shown, Figure 2 The present invention is a schematic diagram of an E1 multiplexing device implemented as an automatic time slot crossing device in a communication network, wherein the automatic time slot crossing device (i.e., the multiplexing device) receives analog audio signals and control signals of 1-64 analog telephones, and applies for and releases one or more time slots of 1-31 channels of each E1 link, automatically crosses telephone signals with call requests to idle time slots, and maps telephone signals of more than 31 channels to 1-31 time slots of the E1 link, so that telephone signals of more than 31 channels are transmitted to corresponding 1-64 analog telephones through one E1 link.

[0049] The E1 interface circuit is a circuit for signal conversion between the E1 socket and the FPGA chip, and plays the role of level conversion, network isolation, and filtering and shaping. The E1 interface circuit can adapt to balanced and unbalanced interfaces.

[0050] The telephone interface circuit is used to convert the digital signal of the FPGA chip into an analog voice signal, and convert the analog audio signal and control signal input by the analog telephone into digital signals and send them to the FPGA chip, and when converting the analog audio signal and control signal into digital signals, generate a telephone off-hook signal and a telephone on-hook signal and send them to the FPGA chip;

[0051] In specific implementation, the control signal may specifically include an off-hook signal, an on-hook signal, a ringing signal and a reverse polarity signal, which are analog signals. When the analog audio signal and the control signal are converted into digital signals, the generated telephone off-hook signal and telephone on-hook signal are digital signals.

[0052] The FPGA chip is used to release one or more time slots among 1-31 channels of each E1 link according to the telephone hook signal, and cross the telephone signal with call request to the idle time slot according to the telephone off-hook signal, so as to map more than 31 telephone signals to 1-31 time slots of the E1 link, so that more than 31 telephone signals can be transmitted through one E1 link.

[0053] In this embodiment, the analog telephone signal number implemented by the present invention can be 64 or more analog telephones, and the 64 or more analog telephones are transmitted through one E1 link.

[0054] Specifically, the FPGA chip includes a framing module, a deframing module, a reading control module, a writing control module, a mapping table control module, a DPRAM sending buffer module and a DPRAM receiving buffer module;

[0055] The mapping table control module is used to control the application and release of one or more time slots in 1-31 channels of each E1 link according to the telephone off-hook signal and the telephone on-hook signal, and automatically cross the time slots, cross one or more telephone signals with call requests to the idle time slots, and store the time slot cross information and the time slot information associated with the time slots;

[0056] The framing module reads the cached telephone data from the reading control module, encapsulates it into a standard E1 format signal and sends it to the E1 link, and generates a notification signal at the frame header of each synchronization frame, the notification signal is used to notify the reading control module to read the data of the next frame from the DPRAM sending buffer module;

[0057] The reading control module is used to read the telephone data of the next frame from the DPRAM sending buffer module and temporarily store it according to the received time slot information and time slot cross information;

[0058] The DPRAM transmission buffer module is used to store the signal input by the telephone interface circuit in the DPRAM memory in the FPGA chip according to the received time slot information;

[0059] The de-framing module is used to decode the data of each time slot of the E1 link according to the E1 format, send the parsed information to the write control module, and send the time slot information to the DPRAM send buffer module to make the data sent and received consistent;

[0060] The write control module caches the telephone data decoded by the de-framing module into the DPRAM receiving cache module according to the received time slot signal and time slot cross information.

[0061] The DPRAM receiving buffer module stores the telephone data input by the write control module in the DPRAM in the FPGA chip, and then sends the telephone data to the telephone interface circuit according to the received time slot information.

[0062] Preferably, the mapping table control module is also used to query the occupancy status of 31 time slots after detecting the telephone off-hook signal; if it is detected that the FULL flag is not pulled high, it indicates that there are idle time slots, and the first idle time slot that is arranged at the front among the idle time slots is obtained, the first idle time slot is written into the lookup table, and the first idle time slot is marked as unoccupied, and the location of the off-hook phone is recorded in the mapping table; the mapping table control module is also used to check the time slot occupancy status again. If all time slots are occupied, the FULL flag is pulled high, and a busy tone is fed back to the phone.

[0063] Specifically, for example, the 1st telephone goes off-hook to request a call, and the mapping table determines that the telephone interface is located at position 5 according to the off-hook signal. If the FULL flag is low, the lookup table is checked in turn, and it is found that the occupied flag of address 2, that is, the 2nd time slot, is low. Then the highest bit of address 2 is written as 1, and the lower 7 bits are written as 5, indicating that the 2nd time slot is occupied by telephone line 5. After writing is completed, all addresses are checked again in turn. If the highest bits of all addresses are 1, FULL is pulled high and the process ends, otherwise it ends directly.

[0064] In this embodiment, the mapping table is a RAM embedded in the FPGA, with a depth of 32 and a data bit width of 8 bits. Address 0 is not used, addresses 1-31 correspond to time slots 1-31, and the highest bit of the 8-bit data stored in each address is the occupied flag bit of this time slot. The flag bit is 1, indicating that this time slot is occupied, and the remaining lower 7 bits are the data corresponding to the interface position corresponding to the phone.

[0065] Preferably, the mapping table control module is also used to, when an on-hook signal is detected, poll the lookup table according to the interface position of the telephone where the on-hook signal is located, obtain the time slot occupied by the on-hook signal, and clear the address of the occupied time slot to release the occupied time slot.

[0066] Preferably, the DPRAM sending cache module is also used to notify the reading control module to process the cached data after the amount of data cached in the DPRAM memory reaches a set value, so as to avoid the DPRAM memory being read empty or full;

[0067] In specific implementation, the FPGA chip updates the time slot crossover information according to the telephone off-hook signal, so that the telephone does not occupy the time slot of the E1 link when not in use, and finally realizes the transmission of 1-64 telephones on the E1 link.

[0068] In the above implementation process, the present invention releases one or more time slots among 1-31 channels of each E1 link according to the telephone on-hook signal, and crosses the telephone signal with a call request to the idle time slot according to the telephone off-hook signal, so as to realize the transmission of more than 31 analog telephone signals through one E1 link, and avoids the problem that most telephone channels of traditional E1 multiplexing equipment are idle in actual use, even if the phone is in the on-hook state, the occupied time slot is not actually used, that is, the mapping between the time slot and the phone is static, resulting in the problem that the maximum number of telephone channels transmitted by each E1 (2M channel) is 31.

[0069] The following is a description of an E1 multiplexing device of the present invention using a specific embodiment:

[0070] Please refer to Figure 3 As shown, Figure 3 A schematic diagram of an E1 multiplexing device according to a specific embodiment of the present invention is shown; the E1 multiplexing device according to the present invention, as a network transmission device, can realize the transmission of 64 or more analog telephones through one E1 link.

[0071] Specifically comprising: FPGA chip, telephone interface circuit, E1 interface circuit, clock chip, the FPGA chip is designed with framing module, deframing module, reading control module, writing control module, mapping table control module, DPRAM sending buffer module and DPRAM receiving buffer module;

[0072] The telephone interface circuit connects the analog telephone and the FPGA, converts the digital signal from the FPGA into an analog voice signal, and converts the analog audio signal and control signal input by the analog telephone into a digital signal and sends it to the FPGA.

[0073] The control signal includes an off-hook signal, a ringing signal and a reverse polarity signal.

[0074] The E1 interface circuit is a circuit for signal conversion between the E1 socket and the FPGA, and plays the role of level conversion, network isolation, and filtering and shaping. The E1 interface circuit can adapt to balanced and unbalanced interfaces.

[0075] The framing module reads the cached telephone data from the reading control module, encapsulates it into a standard E1 format signal and sends it to the E1 link, and at the same time gives a signal at the frame header of each synchronization frame to notify the reading control module to read the data of the next frame from the DPRAM sending cache module.

[0076] The reading control module reads the telephone data of the next frame from the DPRAM sending buffer module and temporarily stores it according to the time slot information of the framing module and the time slot cross information of the mapping table control module, waiting for the framing module to read it.

[0077] The DPRAM sending cache module stores the signal input by the telephone interface circuit in the DPRAM in the FPGA chip according to the time slot information of the deframing module, and notifies the reading control module to process the cached data after the cached data amount reaches the set value, so as to avoid the DPRAM being read empty or full.

[0078] The mapping table control module is used to control the corresponding information between the phone and the time slot, and the reading control module and the writing control module store and read the corresponding phone according to this information. The mapping table control module applies for and releases the 1-31 time slots in E1 according to the off-hook and on-hook signals of the phone, automatically crosses the time slots, and crosses the phone with the call request to the idle time slot. When the analog phone is off-hook, the mapping table control module first checks the occupancy of the 31 time slots after detecting the off-hook signal. If the FULL flag is not pulled high, it means that there is an idle time slot, then the lookup table is checked in turn to find the front idle time slot, and the lookup table is written to mark this time slot as unoccupied. At the same time, the location of the off-hook phone is recorded in the mapping table, and then the lookup table is checked again to check the time slot occupancy. If the time slot is occupied, the FULL flag is pulled high; if the FULL flag is pulled high, it means that there is no idle time slot, and a busy tone is actively fed back to the analog phone. When the analog phone goes off-hook and then on-hook, the mapping table control module detects the on-hook signal, and according to the interface position of the phone where the on-hook signal is located, it searches the lookup table to find the time slot occupied by the on-hook phone, and clears the address corresponding to the time slot, thereby releasing the time slot.

[0079] For example: the 1st telephone line goes off-hook to request a call. The mapping table determines that the telephone interface is at position 5 according to the off-hook signal. If the FULL flag is low, the table is searched in turn. If the 2nd address, i.e., the 2nd time slot occupied flag is low, the highest bit is written as 1 in the 2nd address, and the lower 7 bits are written as 5, indicating that the 2nd time slot is occupied by the 5th telephone line. After writing, all addresses are searched again in turn. If the highest bits of all addresses are 1, the FULL flag is pulled high and the process ends. Otherwise, it ends directly.

[0080] The mapping table is a RAM embedded in the FPGA, with a depth of 32 and a data bit width of 8 bits. Address 0 is not used, addresses 1-31 correspond to time slots 1-31, and the highest bit of the 8-bit data stored in each address is the occupied flag of this time slot. The flag bit is 1, indicating that this time slot is occupied, and the remaining lower 7 bits are the data corresponding to the interface position corresponding to the phone.

[0081] The de-framing module extracts the data of each time slot from the data of the E1 link according to the E1 format, and sends the parsed information to the writing control module, and at the same time sends the time slot information to the DPRAM sending buffer module to make the sent and received data consistent.

[0082] The write control module caches the telephone data decoded by the de-framing module into the DPRAM receiving cache module according to the time slot signal and the time slot cross information of the mapping table control module.

[0083] The DPRAM receiving buffer module stores the telephone signal input by the write control module in the DPRAM in the FPGA chip, and then sends the signal to the telephone interface circuit according to the time slot information of the de-framing module.

[0084] Embodiment 2:

[0085] Please refer to Figure 4 As shown, Figure 4 A flow chart of a control method of an E1 multiplexing device of the present invention is shown, comprising the following steps:

[0086] S1: converting the analog audio signal and control signal input by the telephone into digital signals and sending them to the FPGA chip, and when converting the analog audio signal and control signal into digital signals, generating a telephone off-hook signal and a telephone on-hook signal and sending them to the FPGA chip;

[0087] S2: Release one or more time slots among 1-31 channels of each E1 link according to the telephone hook signal through the FPGA chip, and cross the telephone signal with call request to the idle time slot according to the telephone off-hook signal, so as to map more than 31 channels of telephone signals to 1-31 channels of E1 link, so that more than 31 channels of telephone signals can be transmitted to the corresponding 1-64 channels of analog telephone through 1 E1 link.

[0088] Preferably, the step S2 specifically includes the following steps:

[0089] S21: According to the telephone off-hook signal and the telephone on-hook signal, control the application and release of one or more time slots in the 1-31 channels of each E1 link, and automatically perform time slot crossover, cross one or more telephone signals with call requests to the idle time slots, and store the time slot crossover information and the time slot information associated with the time slots;

[0090] S22: the reading control module reads the telephone data of the next frame from the DPRAM sending buffer module and temporarily stores it according to the received time slot information and time slot cross information;

[0091] S23: the framing module reads the cached telephone data from the reading control module, encapsulates it into a standard E1 format signal and sends it to the E1 link, and generates a notification signal at the frame header of each synchronization frame, the notification signal is used to notify the reading control module to read the data of the next frame from the DPRAM sending buffer module;

[0092] S24: the deframing module extracts the data of each time slot from the data of the E1 link according to the E1 format, sends the parsed information to the write control module, and sends the time slot information to the DPRAM sending buffer module at the same time, so that the data sent and received are consistent;

[0093] S25: The DPRAM transmission buffer module stores the signal input by the telephone interface circuit in the DPRAM memory in the FPGA chip according to the time slot information sent by the de-framing module;

[0094] S26: the write control module caches the telephone data decoded by the de-framing module into the DPRAM receiving cache module according to the received time slot signal and time slot cross information;

[0095] S27: The DPRAM receiving buffer module stores the telephone data input by the write control module in the DPRAM in the FPGA chip, and then sends the telephone data to the telephone interface circuit according to the received time slot information.

[0096] Preferably, please refer to Figure 5 As shown, Figure 5 The schematic diagram of the query step after the step of applying for and releasing one or more time slots in the 1-31 paths of each E1 link of the present invention is shown, which specifically includes:

[0097] After detecting the telephone off-hook signal, query the occupancy status of the 31 time slots; if it is detected that the FULL flag is not pulled high, it means that there is an idle time slot, and obtain the first idle time slot that is arranged at the front of the idle time slots, write the first idle time slot into the lookup table, and mark the first idle time slot as unoccupied, and record the location of the off-hook phone in the mapping table;

[0098] The occupancy status of the 31 time slots is checked again. If all time slots are occupied, the FULL flag is pulled high and a busy tone is fed back to the phone.

[0099] The mapping table is a RAM embedded in the FPGA, with a depth of 32 and a data bit width of 8 bits. Address 0 is not used, addresses 1-31 correspond to time slots 1-31, and the highest bit of the 8-bit data stored in each address is the occupied flag of this time slot. The flag bit is 1, indicating that this time slot is occupied, and the remaining lower 7 bits are the data corresponding to the interface position corresponding to the phone.

[0100] In this embodiment, the mapping table control module updates the time slot crossover information according to the telephone off-hook signal, so that the phone does not occupy the E1 time slot when not in use, stores and updates the time slot crossover information, maps 1-64 telephones to 1-31 time slots, and finally realizes the transmission of 1-64 telephones on the E1 link.

[0101] In the above implementation process, the present invention, as a telephone transmission device, establishes an automatic cross-time slot mapping table internally. When the phone is picked up, it actively applies for time slot occupancy and automatically releases the time slot occupancy after hanging up. It can realize the transmission of more than 31 telephone lines, for example, 64 telephone lines, through one E1 link, which solves the problem that the existing E1 multiplexing equipment can only transmit a maximum of 31 telephone lines.

[0102] As a specific example, please refer to Figure 6 As shown, Figure 6 A flow chart showing a control method of an E1 multiplexing device according to a specific embodiment of the present invention is provided; the method comprises:

[0103] Step 301: The telephone interface circuit converts the analog audio signal and control signal input by the telephone or telephone exchange into a digital signal and an off-hook signal and sends them to the FPGA chip.

[0104] Step 302: The mapping table control module applies for and releases the 1-31 time slots in E1 according to the off-hook signal and the on-hook signal, automatically crosses the time slots, and crosses the phone with the call request to the idle time slot.

[0105] Step 303: The DPRAM sending buffer module stores the signal input by the telephone interface circuit in the DPRAM in the FPGA chip, and notifies the reading control module to process the buffered data after the buffered data amount reaches the set value.

[0106] Step 304: the reading control module reads the telephone data of the next frame from the DPRAM transmission buffer module according to the time slot information of the framing module and the time slot cross information of the mapping table control module and temporarily stores it, waiting for the framing module to read it.

[0107] Step 305: The framing module reads the cached telephone data from the reading control module, encapsulates it into a standard E1 format signal and sends it to the E1 link. At the same time, a signal is given at the frame header of each synchronization frame to notify the reading control module to read the data of the next frame from the DPRAM sending buffer module.

[0108] Step 306: The deframing module extracts the data of each time slot from the E1 link according to the E1 format, and sends the parsed information to the write control module, and at the same time sends the time slot information to the DPRAM sending buffer module to make the sent and received data consistent.

[0109] Step 307: The writing control module caches the telephone data decoded by the deframing module into the DPRAM receiving buffer module according to the time slot signal and the time slot cross information of the mapping table control module.

[0110] Step 308: The DPRAM receiving buffer module stores the telephone signal input by the write control module in the DPRAM in the FPGA chip, and then sends the signal to the telephone interface circuit according to the time slot information of the de-framing module.

[0111] Embodiment three:

[0112] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, which can be used in the present application Figure 7 The schematic diagram shown is used to describe an electronic device 100 for implementing a domain controller-based surround-view transparent chassis parking space correction method of the present invention in an embodiment of the present application.

[0113] As shown in FIG7 , the electronic device 100 includes one or more processors 102 and one or more storage devices 104. These components are interconnected via a bus system and / or other forms of connection mechanisms (not shown). Figure 7 The components and structures of the electronic device 100 shown are only exemplary and not restrictive. The electronic device may have Figure 7 Some of the components shown may also have Figure 7 Other components and structures are not shown.

[0114] The processor 102 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 100 to perform desired functions.

[0115] The storage device 104 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 102 may run the program instructions to implement the functions (implemented by the processor) in the embodiments of the present application described below and / or other desired functions. Various applications and various data may also be stored in the computer-readable storage medium, such as various data used and / or generated by the application, etc.

[0116] The present invention also provides a computer storage medium on which a computer program is stored. If the method of the present invention is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in the computer storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by a processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer storage media does not include electrical carrier signals and telecommunication signals.

[0117] For those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all of these changes and deformations should fall within the protection scope of the claims of the present invention.

Claims

1. An E1 multiplexing device, characterized in that: It includes: an FPGA chip, a telephone interface circuit and an E1 interface circuit; the telephone interface circuit is connected to the FPGA chip, and the FPGA chip is connected to the E1 interface circuit; The telephone interface circuit is used to convert the digital signal of the FPGA chip into an analog voice signal, and convert the analog audio signal and control signal input by the analog telephone into digital signals and send them to the FPGA chip, and when converting the analog audio signal and control signal into digital signals, generate a telephone off-hook signal and a telephone on-hook signal and send them to the FPGA chip; The FPGA chip is used to release one or more time slots among 1-31 channels of each E1 link according to the telephone hook signal, and cross the telephone signal with call request to the idle time slot according to the telephone off-hook signal, so as to map more than 31 telephone signals to 1-31 time slots of the E1 link, so that more than 31 telephone signals can be transmitted through one E1 link.

2. The E1 multiplexing device according to claim 1, characterized in that: The FPGA chip includes a framing module, a deframing module, a reading control module, a writing control module, a mapping table control module, a DPRAM sending buffer module and a DPRAM receiving buffer module; The mapping table control module is used to control the application and release of one or more time slots in 1-31 channels of each E1 link according to the telephone off-hook signal and the telephone on-hook signal, and automatically cross the time slots, cross one or more telephone signals with call requests to the idle time slots, and store the time slot cross information and the time slot information associated with the time slots; The framing module reads the cached telephone data from the reading control module, encapsulates it into a standard E1 format signal and sends it to the E1 link, and generates a notification signal at the frame header of each synchronization frame, the notification signal is used to notify the reading control module to read the data of the next frame from the DPRAM sending buffer module; The reading control module is used to read the telephone data of the next frame from the DPRAM sending buffer module and temporarily store it according to the received time slot information and time slot cross information; The DPRAM transmission buffer module is used to store the signal input by the telephone interface circuit in the DPRAM memory in the FPGA chip according to the received time slot information; The de-framing module is used to decode the data of each time slot of the E1 link according to the E1 format, send the parsed information to the write control module, and send the time slot information to the DPRAM send buffer module to make the data sent and received consistent; The write control module caches the telephone data decoded by the de-framing module into the DPRAM receiving cache module according to the received time slot signal and time slot cross information; The DPRAM receiving buffer module stores the telephone data input by the write control module in the DPRAM in the FPGA chip, and then sends the telephone data to the telephone interface circuit according to the received time slot information.

3. The E1 multiplexing device according to claim 2, characterized in that: The mapping table control module is also used to query the occupancy of the 31 time slots after detecting the telephone off-hook signal; if it is detected that the FULL flag is not pulled high, it means that there is an idle time slot, and obtain the first idle time slot that is arranged at the front of the idle time slots, write the first idle time slot into the lookup table, and mark the first idle time slot as unoccupied, and record the location of the off-hook phone in the mapping table; The mapping table control module is also used to check the time slot occupancy again. If all time slots are occupied, the FULL flag is pulled high and a busy tone is fed back to the phone.

4. The E1 multiplexing device according to claim 2, characterized in that: The mapping table control module is also used to, when an on-hook signal is detected, poll the lookup table according to the interface position of the telephone where the on-hook signal is located, obtain the time slot occupied by the on-hook signal, and clear the address of the occupied time slot to release the occupied time slot.

5. The E1 multiplexing device according to claim 2, characterized in that: The DPRAM sending cache module is also used to notify the reading control module to process the cached data after the amount of data cached in the DPRAM memory reaches a set value.

6. A control method using the E1 multiplexing device according to any one of claims 1 to 5, characterized in that: The following steps are involved: S1: converting the analog audio signal and control signal input by the telephone into digital signals and sending them to the FPGA chip, and when converting the analog audio signal and control signal into digital signals, generating a telephone off-hook signal and a telephone on-hook signal and sending them to the FPGA chip; S2: Release one or more time slots among 1-31 channels of each E1 link according to the telephone hook signal through the FPGA chip, and cross the telephone signal with call request to the idle time slot according to the telephone off-hook signal, so as to realize the transmission of more than 31 analog telephone signals through one E1 link.

7. The control method according to claim 6, characterized in that: The FPGA chip includes a framing module, a deframing module, a reading control module, a writing control module, a mapping table control module, a DPRAM sending buffer module and a DPRAM receiving buffer module; the step S2 specifically includes the following steps: S21: The mapping table control module controls the application and release of one or more time slots in 1-31 channels of each E1 link according to the telephone off-hook signal and the telephone on-hook signal, and automatically crosses the time slots, crosses one or more telephone signals with call requests to the idle time slots, and stores the time slot crossover information and the time slot information associated with the time slots; S22: the reading control module reads the telephone data of the next frame from the DPRAM sending buffer module and temporarily stores it according to the received time slot information and time slot cross information; S23: the framing module reads the cached telephone data from the reading control module, encapsulates it into a standard E1 format signal and sends it to the E1 link, and generates a notification signal at the frame header of each synchronization frame, the notification signal is used to notify the reading control module to read the data of the next frame from the DPRAM sending buffer module; S24: the deframing module extracts the data of each time slot from the data of the E1 link according to the E1 format, sends the parsed information to the write control module, and sends the time slot information to the DPRAM sending buffer module at the same time, so that the data sent and received are consistent; S25: The DPRAM transmission buffer module stores the signal input by the telephone interface circuit in the DPRAM memory in the FPGA chip according to the time slot information sent by the de-framing module; S26: the write control module caches the telephone data decoded by the de-framing module into the DPRAM receiving cache module according to the received time slot signal and time slot cross information; S27: The DPRAM receiving cache module stores the telephone data input by the write control module in the DPRAM in the FPGA chip, and then sends the telephone data to the telephone interface circuit according to the received time slot information.

8. The control method according to claim 7, characterized in that: The step S21 further includes: After detecting the telephone off-hook signal, the mapping table control module queries the occupancy of the 31 time slots; if it is detected that the FULL flag is not pulled high, it means that there is an idle time slot, and the first idle time slot that is arranged at the front of the idle time slots is obtained, the first idle time slot is written into the lookup table, and the first idle time slot is marked as unoccupied, and the location of the off-hook telephone is recorded in the mapping table; The occupancy status of the 31 time slots is checked again. If all time slots are occupied, the FULL flag is pulled high and a busy tone is fed back to the phone.

9. An electronic device, characterized in that: include: At least one processor, and a memory communicatively connected to the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method of an E1 multiplexing device as described in any one of claims 6 to 8.

10. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the control method of an E1 multiplexing device according to any one of claims 6 to 8 is implemented.