Disclosure of Invention
The invention provides a management method of an aerospace VOIP voice terminal, which is used for maintenance communication between a voice processor based on an IP network and the voice terminal, and the realized functions comprise: the method comprises the steps of registering, maintaining and canceling the network voice terminal, inquiring the state of a voice processor by the network voice terminal and controlling the access of the network voice terminal to a call.
In order to achieve the above purpose, the technical solution provided by the present application is as follows:
a management method of an aerospace VOIP voice terminal comprises the following steps:
s1: the voice processor synchronously receives request commands sent by all voice terminal users through a space Ethernet communication platform, extracts address information of each voice terminal and judges the state of the voice terminal;
s2: making corresponding request feedback on the request command according to a feedback strategy corresponding to the state of the voice terminal;
in the feedback strategy, the state of the voice terminal comprises an initial state, an online state and a call state.
Further, the state of the voice terminal is as follows:
after the voice processor is started or reset, the voice terminal is in an initial state;
after the voice terminal is normally registered, the voice processor updates the voice terminal to be in an online state and allows access to a voice call mode as required;
and the voice processor starts a voice call state after the voice terminal accesses a call.
Further, when the voice terminal is in the initial state, the feedback policy of the voice processor includes:
when the request command is a registration request, the voice processor adds the voice terminal into a state list, switches the voice terminal into an online state, and feeds a registration confirmation response back to the voice terminal;
when the request command is a query request, the voice processor queries the state list and feeds back state list information to the voice terminal;
and when the request command is an access or exit or logout request, the voice processor feeds back the unregistered response of the voice terminal to the voice terminal.
Further, when the voice terminal is in an online state, the feedback policy of the voice processor includes:
when the request command is a registration request, the voice processor feeds back a registered response of the voice terminal user;
when the request command is a query request, the voice processor queries the current state list and feeds back state list information to the voice terminal;
when the request command is an access request, the voice processor inquires the current terminal access quantity and then feeds back a response that the current access quantity is full or feeds back an access confirmation response to the voice terminal;
when the request command is an exit request, the voice processor feeds back a response of the call which is not accessed to the voice terminal;
and when the request command is a logout request, after the voice processor feeds back a logout confirmation, the voice terminal is switched to an initial state, the voice terminal is cleared from the state list, and the updated state list is fed back to the voice terminal.
Further, the feedback response of the access request further comprises: when the feedback response is the response that the access quantity is full, the voice processor feeds back the current access state list information; and when the feedback response is an access confirmation response, the voice terminal is switched into a conversation state, the access number of the voice terminal is added by 1, and the state list information is updated.
Further, when the voice terminal is in a call state, the feedback strategy of the voice processor includes:
when the request command is a registration request, the voice processor feeds back a registered response of a terminal user to the voice terminal and switches the voice terminal into an online state;
when the request command is a query request, the voice processor feeds back current state list information to the voice terminal;
when the request command is an access request, the voice processor feeds back a call response accessed by a terminal user to the voice terminal;
when the request command is an exit request, after the voice processor feeds back an exit confirmation, the voice terminal is switched into an online state, and an updated state list is sent to the voice terminal;
and when the request command is a logout request, the voice processor disconnects voice communication with the voice terminal, feeds back logout confirmation, switches the voice terminal into an initial state, removes the voice terminal from the state list, and sends the updated state list to the voice terminal.
Further, the voice processor comprises a DSP chip and an Ethernet transceiver.
Further, the DSP chip adopts a TMS320DM642 chip.
Further, the ethernet transceiver adopts a KSZ8041NLJ chip.
Further, the voice terminal adopts a mobile terminal including application of a terminal management function.
Compared with the prior art, the management method of the aerospace VOIP voice terminal provided by the invention has the following beneficial effects:
the method (I) facilitates on-track real-time updating of the voice terminal state;
the management mode has better universality and expansibility through a space Ethernet communication network platform, and does not need to occupy more space-ground channel resources;
and (III) updating the state list in real time, and facilitating detection of the real-time state of each terminal.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, the invention provides a flow chart of a management method of an aerospace VOIP voice terminal;
in this embodiment, a method for managing an aerospace VOIP voice terminal includes the steps of:
s1: the voice processor receives request commands sent by all voice terminal users through the local area network communication platform, extracts address information of each voice terminal and judges the state of the voice terminal;
in the communication network according to the present embodiment, one voice processor corresponds to a plurality of voice terminals.
S2: making corresponding request feedback to the request command according to a feedback strategy corresponding to the state of the voice terminal;
in the feedback strategy, the state of the voice terminal comprises an initial state, an online state and a call state.
Specifically, in the present embodiment, the states of the voice terminal are as follows:
after the voice processor is started or reset, the voice terminal is in an initial state;
the voice processor updates the voice terminal to be in an online state after the voice terminal is normally registered, and allows to access a voice communication mode as required; the voice processor starts the voice call state after the voice terminal accesses the call.
In the present embodiment, the feedback strategy is specifically as follows:
when the voice terminal is in an initial state, the feedback strategy of the voice processor comprises the following steps: when the request command is a registration request, the voice processor adds the voice terminal into the state list, switches the voice terminal into an online state, and feeds back a registration confirmation response to the voice terminal; when the request command is a query request, the voice processor queries the current state list and feeds back the state list information to the voice terminal; when the request command is an access or exit or logout request, the voice processor feeds back an unregistered response of the voice terminal to the voice terminal.
After normal registration, each voice terminal can check the record in the state list fed back by the voice processor. The voice processor can make corresponding feedback of the updated state list according to various request commands sent by various terminals, and can check the state of each voice terminal according to the state list fed back by the voice processor.
When the voice terminal is in an online state, the feedback strategy of the voice processor comprises the following steps: when the request command is a registration request, the voice processor feeds back a registered response of the voice terminal user; when the request command is a query request, the voice processor queries the current state list and feeds back the state list information to the voice terminal; when the request command is an access request, the voice processor inquires the current terminal access quantity and then feeds back a response that the current access quantity is full or feeds back an access confirmation response to the voice terminal; when the request command is an exit request, the voice processor feeds back a response of the call which is not accessed to the voice terminal; when the request command is a logout request, after the voice processor feeds back logout confirmation, the voice terminal is switched to an initial state, the voice terminal is cleared from the state list, and the updated state list is fed back to the voice terminal.
Wherein, the feedback response of the access request of the online state further comprises: when the feedback response is the response that the access quantity is full, the voice processor feeds back the current access state list information; and when the feedback response is an access confirmation response, the voice terminal is switched into a conversation state, the access number of the voice terminal is added by 1, and the state list information is updated.
When the voice terminal is in a call state, the feedback strategy of the voice processor comprises the following steps: when the request command is a registration request, the voice processor feeds back a registered response of a terminal user to the voice terminal and switches the voice terminal into an online state; when the request command is a query request, the voice processor feeds back current state list information to the voice terminal; when the request command is an access request, the voice processor feeds back a call response accessed by the terminal user to the voice terminal; when the request command is an exit request, after the voice processor feeds back an exit confirmation, the voice terminal is switched into an online state, and an updated state list is sent to the voice terminal; when the request command is a logout request, the voice processor disconnects voice communication with the voice terminal, feeds back logout confirmation, switches the voice terminal into an initial state, removes the voice terminal from the state list, and sends the updated state list to the voice terminal.
In summary, the voice terminal obtains different feedback responses from the same request in different states. For example, in the online state, after sending the registration request, the voice processor feeds back the registered response, and in the call state, after sending the registration request, the voice processor enters the online state.
In addition, only the registered voice terminal has a record in the state list, and after the voice terminal is logged off, the voice processor removes the logged-off voice terminal from the state list.
In the embodiment, the voice processor performs corresponding feedback processing according to the request command, and the voice processor comprises a DSP chip and an ethernet transceiver.
The DSP (digital Signal processing) in the DSP chip is a digital Signal processing technology, and the DSP chip is a chip capable of implementing the digital Signal processing technology.
The DSP chip adopts a Harvard structure with separated programs and data, is provided with a special hardware multiplier, widely adopts pipeline operation, provides special DSP instructions, and can be used for quickly realizing various digital signal processing algorithms.
The ethernet transceiver is based on an ethernet physical layer transceiver of the IEEE 802.3 standard.
The DSP chip in this embodiment is a TMS320DM642 chip. The TMS320DM642 chip is a 32-bit fixed-point DSP in a TI company (Texas Instruments) C6000 series DSP, the core of the chip is a C6416 type high-performance digital signal processor, the chip has extremely strong processing performance, high flexibility and programmability, and meanwhile, the periphery of the chip integrates very complete equipment and interfaces for audio, video, network communication and the like, and the chip is particularly suitable for the application fields of high-speed DSPs such as machine vision, medical imaging, network video monitoring, digital broadcasting, consumer electronics based on digital video/image processing and the like.
The ethernet transceiver in this embodiment uses a KSZ8041NLJ chip. The KSZ8041NLJ chip is used as an MII/RMII physical layer transceiver, has no protocol controller, and therefore cannot be connected with a chip without an Ethernet protocol controller, such as an 8051 series or an MSP430 series. And some ARM chips, such as STM32F207, have protocol controllers inside and can be connected with KSZ8041NLJ chips.
The voice terminal in the present embodiment includes a mobile terminal to which a terminal management function application is installed.
Therefore, it can be understood that the DSP chip, the ethernet transceiver, and the like transmit the voice terminal management data through the network protocol stack. The application layer protocol includes a state list and various management protocol fields. The transport layer adopts UDP protocol, which accords with RFC 768 standard. The network layer adopts IP protocol transmission and conforms to the RFC 791 standard. The data link layer and the physical layer conform to the 100BASE-TX standard of the IEEE 802.3u specification.
Data is transmitted on the ethernet in packets, which consist of several parts, different parts performing different functions. Packets are typically generated by a network protocol program and then sent over a network transceiver onto a network cable, through the network cable to their destination machines, with the reverse process being performed at one end of the destination machines. The receiving end machine captures the packets, and performs parsing and corresponding operations.
Further, a frame, i.e., an ethernet frame, is a unit for representing a packet in a data link layer, and includes three parts: frame header, data section, frame trailer. The frame head and the frame tail comprise some necessary control information, such as a lead code, receiving end MAC address information, sending end MAC address information, Ethernet data protocol type, frame inspection sequence and the like; the data portion contains data transmitted by the network layer, such as IP packets.
Further, the ethernet data protocol type is 0x0800, which indicates that the transmitted data is an IP packet.
The network layer adopts IP protocol transmission. The IP data packet consists of an IP packet header and IP payload data. In the IP header, version information is 4, indicating IPv 4; protocol 17 indicates that the upper layer protocol is UDP. The IP payload data is UDP packet.
The transport layer uses the UDP protocol. The UDP packet consists of a UDP packet header and UDP payload data. The UDP payload data is the application layer data.
The application layer protocol includes various management protocol fields and a status list.
The management protocol fields include status list length, identification, request/corresponding field, etc. The length of the state list is the number of network terminals accessed to the voice processor; the identifier is an application layer data packet type, for example, the data length is 8 bits, and 00(H) represents a request data packet; ff (h) indicates a response packet; the request/response field is a data request/response type, such as a data length of 8 bits, 00(H) indicates a terminal registration request, 01(H) indicates a terminal inquiry request, 02(H) indicates a terminal access request, 03(H) indicates a terminal logout request, 04(H) indicates a terminal logout request, 10(H) indicates a terminal registration confirmation response, 11(H) indicates a terminal inquiry response, 12(H) indicates a terminal access confirmation response, 13(H) indicates a terminal logout confirmation response, 14(H) indicates a terminal logout confirmation response, 15(H) indicates a response that the current access number is full, 16(H) indicates a terminal unregistered response, 17(H) indicates a user registered response, 18(H) indicates a user unaccessed call response, and 19(H) indicates a user accessed call response.
Referring to fig. 2, in the present embodiment, the first state, the second state, the third state, and the nth state represent the nth registered voice terminal state. Each voice terminal state is represented by 32 bits. Further, the whole system is in the same local area network, and records the last three bytes of the IP address, for example, 172.2.0.1 records the last three bytes 02(H)00(H)01 (H). The access state of the voice terminal is represented by 8 bits, such as 00(H) representing online; and 55(H) indicates a call state.
Further, referring to fig. 3, a specific embodiment in the present application is as follows:
the voice terminal sends data messages to the voice processor, and the voice processor analyzes, analyzes and judges according to the network protocol.
Firstly, the IP address of the data frame of the network layer is extracted, and the IP address of the network terminal sending the request information is obtained. And then extracting the management protocol data in the application layer data to acquire what kind of request is initiated by the network terminal.
Further, entering application layer message display, wherein the specific processing flow is as follows:
(1) the voice end user determines whether to submit a registration request to the voice processor. If yes, the voice processor carries out corresponding operation according to the state of the voice terminal and sends a corresponding response message to the voice terminal.
(2) If the voice terminal user submits a registration request to the voice processor, it is determined whether the request is a query request. If yes, the voice processor carries out corresponding operation according to the state of the voice terminal and sends a corresponding response message to the voice terminal.
(3) If the voice terminal user submits the registration request or the query request to the voice processor, whether the request is accessed is determined, if so, the voice processor carries out corresponding operation according to the state of the voice terminal, and sends a corresponding response message to the voice terminal.
(4) If the voice end user submits a request to the voice processor that is not a registration request, a query request, or an access request, a determination is made whether to exit the request. If yes, the voice processor carries out corresponding operation according to the state of the voice terminal and sends a corresponding response message to the voice terminal.
(5) If the voice terminal user submits a request other than a registration request, a query request, an access request, or an exit request to the voice processor, it is determined whether to deregister the request. If yes, the voice processor carries out corresponding operation according to the state of the voice terminal and sends a corresponding response message to the voice terminal. If not, the flow ends.
Each response message is sent to the voice terminal by the voice processor according to the network protocol.
The preferred embodiments of the invention disclosed above are intended to be illustrative only. The preferred embodiments are not intended to be exhaustive or to limit the invention to the precise embodiments disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention. The invention is limited only by the claims and their full scope and equivalents.