Hierarchical area intercom device
By designing a hierarchical regional intercom device, using the UDP protocol and QT development framework, the cross-platform voice communication problem between portable computers and subsystems is solved, and stable, convenient and economical communication effects are achieved.
Patent Information
- Application Number
- CN202411311570.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2025-01-03
AI Technical Summary
The prior art cannot realize direct cross-platform voice communication between a portable computer and a sub-system voice device, resulting in inconvenience, unstable and unclear communication.
A hierarchical area intercom device is designed, including VU communication module, internal voice module and parameter configuration module. It uses UDP protocol for voice communication and mass transmission, supports cross-platform use, and realizes cross-platform adaptability through the QT development framework.
It realizes stable, clear and convenient cross-platform voice communication between portable computers and subsystems, reducing development and use costs.
Smart Images

Figure CN119255127A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of network multicast, and in particular relates to a hierarchical area intercom device. Background Art
[0002] In the past, portable computers could only communicate with various systems through walkie-talkies, and could not directly communicate with the voice devices of various subsystems in the system. The voice communication client is installed in the portable computer, and directly communicates with the voice devices of each subsystem through UDP. Compared with walkie-talkie communication, it has better convenience, more stable, clear and smooth call experience. The voice communication client developed with QT has good adaptability, can be used across platforms, can be applied to multiple platforms, has good economy, and reduces the cost of development and use. Summary of the invention
[0003] The purpose of this embodiment is to provide a hierarchical area intercom device for solving the cross-platform voice communication problem between an intercom terminal and a computer terminal.
[0004] A hierarchical area intercom device, comprising:
[0005] VU communication module: used for voice communication between local terminals;
[0006] Internal voice module: used for UDP voice group transmission of internal intercom terminals, including internal voice terminal device status display and execution of UDP voice group transmission;
[0007] Parameter configuration module: used for parameter configuration of the device, including:
[0008] Binding server address, VU address, multicast address, plug-in address and port number;
[0009] Configure equipment categories, including A-type seat terminals and D-type intercom terminals;
[0010] Configure the local communication mode, including broadcast, multicast 1, multicast 2, multicast 3, multicast 4, and on-demand;
[0011] Configure device ID number (1 to 32);
[0012] Multicast binding;
[0013] External voice module: used to perform SIP user registration service and SIP voice call service.
[0014] Furthermore, the VU communication module also includes call address modification and device number modification.
[0015] Furthermore, the VU communication module also includes establishing UDP communication.
[0016] Furthermore, the VU communication module also includes a recording module for performing VU communication voice recording, wherein the VU communication voice recording is a PCM file.
[0017] Furthermore, the internal voice module also includes UDP connection creation and UDP voice group sending.
[0018] Furthermore, UDP voice group transmission includes executing a send function in which the destination address is a multicast address.
[0019] Furthermore, the internal voice module also includes a recording module for performing internal voice recording, wherein the internal voice recording is a PCM file.
[0020] Furthermore, the parameter configuration also includes entering the parameter configuration page to perform a secondary confirmation of the password input.
[0021] Furthermore, the SIP user registration service includes executing a REGISTER request via a UDP connection.
[0022] Furthermore, the SIP voice call service includes executing an INVI TE request via a UDP connection.
[0023] The invention provides a hierarchical area intercom device, which solves the problem of cross-platform voice communication between an intercom terminal and a computer terminal.
[0024] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 : A device structure diagram of a hierarchical area intercom device provided in an embodiment of the present invention;
[0026] Figure 2 : An internal voice module interface diagram of a hierarchical area intercom device provided by an embodiment of the present invention;
[0027] Figure 3 : An interface diagram of an external voice module of a hierarchical area intercom device provided by an embodiment of the present invention;
[0028] Figure 4 : A network topology diagram of a hierarchical area intercom device provided in an embodiment of the present invention;
[0029] Figure 5 : Interface diagram of the VU communication module of the hierarchical area intercom device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0030] The following will describe the technical solution in the embodiment of the present invention in conjunction with the accompanying drawings in the embodiment of the present invention. In the following embodiment, interface development and function implementation are implemented by the QT framework. Figure 4 This is a network structure topology diagram of the present invention.
[0031] The present invention provides a hierarchical area intercom device (see Figure 1 ),include:
[0032] VU communication module: used for voice communication between local terminals and terminals. In this embodiment, after the UDP protocol is used to successfully establish a link, click the "Start Call" button to make a voice call. The display status includes the voice call time and call duration. When executing a call, it also includes the address modification of the terminal interface and the device number modification. Leaving the VU communication interface disconnects the communication link, and the communication link is a UDP protocol link; the VU communication module also includes establishing a UDP voice call according to the local internal address. VU voice communication is point-to-point communication. The call destination address is obtained from the VU input interface to initiate a UDP call to establish a link. The terminal samples the MIC voice data and converts it into PCM format before performing voice encoding. In the embodiment, voice encoding uses G711 encoding, A rate encoding, and U rate encoding. The use of these three encodings can minimize voice loss and maximize voice quality (see Figure 5 ).
[0033] Internal voice module: used for UDP group voice transmission of internal intercom terminals, including internal voice terminal device status display and execution of UDP group voice transmission. UDP group voice transmission includes using UDP to establish a socket and then executing the send function. In the send function, the destination parameter is passed as the multicast address to complete the voice group transmission. It also includes the online status display and communication mode setting of the group transmission terminal. Similarly, the internal group voice transmission also performs recording operations. When performing the recording operation, the group transmission recording file is sampled and encoded by the sound card and saved. The group transmission recording file is played back in the internal voice module interface, and the playback content is determined according to the file name. When playing back the content, it is necessary to read the file and perform the decoding operation, and play the voice file content through the sound card;
[0034] Preferably, the internal voice module also includes a recording module for performing voice recording during the internal voice process. In the embodiment, the recording is sampled by the local sound card, encoded into PCM format, and then directly converted into a recording file and saved to the disk. The recording module also includes a status display and recording playback, wherein the status display includes displaying the server recording status, playback status, communication mode, communication device, device online status, voice call time and call information, etc. (see Figure 2 );
[0035] Parameter configuration module: used for parameter configuration of the device, including:
[0036] a. Binding server address, VU address, multicast address, plug-in address and port number;
[0037] b. Configure the device categories, including A-type seat terminal and D-type intercom terminal;
[0038] c. Configure the local communication mode, including broadcast, multicast 1, multicast 2, multicast 3, multicast 4, and on-demand;
[0039] d. Configure the device ID number (1 to 32);
[0040] e. Multicast binding.
[0041] It should be noted that parameter configuration also includes entering the parameter configuration interface, entering the correct password, binding parameters, clicking the "Confirm" button, and performing a second confirmation before the parameter binding becomes effective.
[0042] External voice module: used to perform SIP user registration service and SIP voice call service (see Figure 3 ), including initiating a REGISTRE request and an INVITE request and being able to execute status display according to the return code. In the embodiment, the return code 200 indicates successful registration and successful call initiation, and the error code is 40x, where x is the error message definition value of the SIP protocol; initiating a SIP dial-up call, the dial-up interface executes the INVITE instruction according to the user input, where the INVITE instruction call code format is:
[0043] SIP: xxxx@xx.xx.xx.xx:5060 ;
[0044] The embodiment also includes initiating a REGISTRE request to the SIP registration server to register the network-wide SIP number of the present invention, the format is:
[0045] REGISTER sip:server_address SIP / 2.0
[0046] Via:SIP / 2.0 / UDP cl ient_ip:cl ient_port; branch=branch_id
[0047] Max-Forwards:70
[0048] To:<sip:username@domain>
[0049] From:<sip:username@domain> ; tag = client_tag
[0050] Call-ID:unique_call_id
[0051] CSeq:1REGISTER
[0052] Contact:<sip:username@cl ient_ip:cl ient_port>
[0053] Expires: expiration_time
[0054] Content-Length:0
[0055] In this embodiment, the external voice module also includes a SIP account setting, which is used to set the SIP registration information when the terminal initiates a REG I STER request, including: a registration account, a registration password, a SIP registration server address, a registration server port number, a coding selection, a registration time interval, and a ringing duration; the I NVI TE call and the REG I STER request in the embodiment are completed by a UDP link, and this module also includes establishing a UDP connection for the external voice module to initiate a SIP signaling request;
[0056] The external voice module also includes displaying the registration connection status with the server, dialing status and incoming call reminder when in SIP phone mode.
[0057] The invention provides a hierarchical area intercom device, which solves the problem of cross-platform voice communication between an intercom terminal and a computer terminal.
[0058] The above description is only an embodiment of the present invention and is not intended to limit the scope of protection of the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of protection of the present invention.
Claims
1. A hierarchical area intercom device, characterized in that: include: VU communication module: used for voice communication between local terminals; Internal voice module: used for UDP voice group transmission of internal intercom terminals, including internal voice terminal device status display and execution of UDP voice group transmission; Parameter configuration module: used for parameter configuration of the device, including: Binding server address, VU address, multicast address, plug-in address and port number; Configure equipment categories, including A-type seat terminals and D-type intercom terminals; Configure the local communication mode, including broadcast, multicast 1, multicast 2, multicast 3, multicast 4, and on-demand; Configure device ID number (1 to 32); Multicast binding; External voice module: used to perform SIP user registration service and SIP voice call service.
2. The hierarchical area intercom device according to claim 1, characterized in that: The VU communication module also includes call address modification and device number modification.
3. The hierarchical area intercom device according to claim 1, characterized in that: The VU communication module also includes establishing UDP communication.
4. The hierarchical area intercom device according to claim 1, characterized in that: The internal voice module also includes UDP connection creation and UDP voice group transmission.
5. The hierarchical area intercom device according to claim 5, characterized in that: The UDP voice group transmission includes executing a send function in which the destination address is a multicast address.
6. The hierarchical area intercom device according to claim 1, characterized in that: The internal voice module also includes a recording module for performing internal voice recording, wherein the internal voice recording is a PCM file.
7. The hierarchical area intercom device according to claim 1, characterized in that: The parameter configuration also includes entering the parameter configuration page to perform a secondary confirmation of the password input.
8. The hierarchical area intercom device according to claim 1, characterized in that: The SIP user registration service includes executing a REGISTER request via a UDP connection.
9. The hierarchical area intercom device according to claim 1, characterized in that: The SIP voice call service includes executing an INVITE request via a UDP connection.
