WO2022143059A1 - Terminal and terminal application method - Google Patents

Terminal and terminal application method Download PDF

Info

Publication number
WO2022143059A1
WO2022143059A1 PCT/CN2021/136437 CN2021136437W WO2022143059A1 WO 2022143059 A1 WO2022143059 A1 WO 2022143059A1 CN 2021136437 W CN2021136437 W CN 2021136437W WO 2022143059 A1 WO2022143059 A1 WO 2022143059A1
Authority
WO
WIPO (PCT)
Prior art keywords
multimedia
chip
main control
encoding processing
control chip
Prior art date
Application number
PCT/CN2021/136437
Other languages
French (fr)
Chinese (zh)
Inventor
刘达林
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2022143059A1 publication Critical patent/WO2022143059A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/15Conference systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • H04N7/142Constructional details of the terminal equipment, e.g. arrangements of the camera and the display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • H04N7/148Interfacing a video terminal to a particular transmission medium, e.g. ISDN

Definitions

  • the embodiments of the present disclosure relate to, but are not limited to, the field of electronic devices, and specifically relate to, but are not limited to, a terminal and a terminal application method.
  • the multimedia data acquisition terminal (such as camera, microphone) is usually connected to the conference terminal through a USB cable or an HDMI (High Definition Multimedia Interface, high-definition multimedia interface) cable, and the audio and video collected by the multimedia data acquisition terminal
  • the data is transmitted to the conference terminal through the USB interface or HDMI, so that the conference terminal and the external terminal can realize the video conference service.
  • the transmission capability of the USB cable and the HDMI cable the transmission rate and transmission stability of the data transmission from the multimedia data collection end to the conference terminal are still unsatisfactory. Therefore, there is an urgent need to provide a multimedia conference product.
  • the terminal and the terminal application method provided by the embodiments of the present disclosure mainly solve the technical problem: how to improve the speed and stability of data transmission between the multimedia data collection terminal and the conference terminal.
  • an embodiment of the present disclosure provides a terminal, which includes a multimedia collector, a multimedia encoding processing chip, a switch chip, and a main control chip; the multimedia encoding processing chip and the main control chip establish a network communication channel through the switch chip, so as to realize Communication connection; multimedia collector, used to collect multimedia data, and output the collected multimedia data to the multimedia encoding processing chip; multimedia encoding processing chip, used to encode and process the multimedia data, obtain the encoded multimedia data, and encode the multimedia data. It is transmitted to the main control chip through the network communication channel; the main control chip is used to realize multimedia services with external devices according to the received encoded multimedia data.
  • An embodiment of the present disclosure also provides a terminal application method, which is applied to the above-mentioned terminal.
  • the terminal application method includes: a main control chip establishes a network communication channel with a multimedia encoding processing chip through a switch chip; the main control chip receives the multimedia encoding processing through the network communication channel
  • the encoded multimedia data transmitted by the chip is obtained by encoding and processing the multimedia data collected by the multimedia collector by the multimedia encoding processing chip; the main control chip realizes the multimedia business according to the encoded multimedia data and external equipment.
  • FIG. 1 is a schematic diagram of a hardware structure of a terminal provided in Embodiment 1 of the present disclosure
  • Fig. 2 is a kind of schematic diagram of the internal and external network communication of the terminal in Fig. 1;
  • FIG. 3 is a schematic diagram of another hardware structure of the terminal provided in Embodiment 1 of the present disclosure.
  • Fig. 4 is a kind of schematic diagram of the internal and external network communication of the terminal in Fig. 3;
  • FIG. 5 is a flowchart of the terminal application method provided in Embodiment 2 of the present disclosure.
  • FIG. 6 is a schematic diagram of a hardware structure of the terminal provided in Embodiment 3 of the present disclosure.
  • FIG. 7 is a flowchart of the terminal application method provided in Embodiment 3 of the present disclosure.
  • the camera and microphone are usually independent from the conference terminal.
  • the camera and microphone are connected to the conference terminal through a USB cable, and the image data and audio data collected by the two are transmitted through the USB cable.
  • the USB cable can be replaced by an HDMI cable.
  • this embodiment provides a terminal, please refer to a schematic diagram of a hardware structure of the terminal shown in FIG. 1 .
  • the terminal 10 includes a multimedia collector 11 , a multimedia encoding processing chip 12 , a switch chip 13 and a main control chip 14 .
  • the multimedia collector 11 is used to collect multimedia data.
  • the multimedia data collected by the multimedia collector 11 may include image data, so the multimedia collector 11 may have an image collection function.
  • the multimedia collector 11 includes a camera sensor.
  • the multimedia collector 11 may have an audio collection function, and therefore, in these examples, the multimedia collector 11 includes a microphone.
  • the multimedia collector 11 includes a camera sensor and a microphone at the same time.
  • the multimedia encoding processing chip 12 is used for encoding and processing the multimedia data collected by the multimedia collector 11 to obtain encoded multimedia data. If the multimedia collector 11 includes a camera sensor, the multimedia encoding processing chip 12 can encode the image data. For example, when the multimedia collector 11 is a camera sensor, the multimedia encoding processing chip 12 can be an ISP (image signal processing) If the multimedia collector 11 includes a microphone, the multimedia encoding processing chip 12 can encode and process the audio data, which can be an audio signal processing chip.
  • a multimedia server application may also run on the multimedia encoding processing chip 12 , and the multimedia server application may receive an instruction of a multimedia client application on the main control chip 14 .
  • the switch chip 13 can provide a network communication path for the multimedia encoding processing chip 12 and the main control chip 14.
  • the multimedia encoding processing chip 12 and the main control chip 14 establish a network communication channel based on the switch chip 13. After the network communication channel is established, the multimedia encoding processing is completed.
  • the chip 12 can transmit the encoded multimedia data obtained by encoding to the main control chip 14 through the network communication channel.
  • the main control chip 14 may also send an instruction to the multimedia encoding processing chip 12 through the network communication channel to control the multimedia encoding processing chip 12 .
  • the main control chip 14 is actually the CPU of the terminal 10, which can run various business software, thereby realizing the processing of various transactions.
  • a multimedia client application can run on the main control chip 14, and the client application can cooperate with the multimedia server application running on the multimedia encoding processing chip 12 to realize the multimedia encoding by the main control chip 14.
  • Control of the processing chip 12 the main control chip 14 can communicate with external devices, and after acquiring encoded multimedia data through a network communication channel with the multimedia encoding processing chip 12, the main control chip 14 can implement multimedia services with the external devices.
  • the main control chip 14 can also run service software other than multimedia client applications, such as video conference software, video telephony software, video editing software (including but not limited to video editing, mosaic processing) and the like.
  • the network communication channel established by the multimedia encoding processing chip 12 and the main control chip 14 through the switch chip 13 is the first network communication channel.
  • the main control chip 14 communicates with the external device through a second network communication channel, and the first network communication channel and the second network communication channel are isolated from each other. Based on the isolation between the second network communication channel and the first network communication channel, external devices that interact with the main control chip 14 through the second network communication channel cannot access the multimedia encoding processing chip 12 .
  • the second network communication channel for communication between the main control chip 14 and the external device may also be established based on the switch chip 13.
  • the switch chip 13 can isolate the first network communication channel and the second network communication channel through different VLANs (Virtual Local Area Networks).
  • VLANs Virtual Local Area Networks
  • the first virtual network card establishes a first network communication channel with the multimedia encoding processing chip 12 based on the first communication address
  • the second virtual network card establishes a second network communication channel with an external device based on the second communication address.
  • the first communication address and the second communication address may be IP addresses.
  • the first communication address and the second communication address are both statically configured IP addresses, and in other examples, the first communication address and the second communication address are both dynamically configured IP addresses through DHCP (Dynamic Host Configuration Protocol). ; In some examples, one of the two communication addresses is statically configured, and the other is dynamically configured.
  • the first communication address is a statically configured IP address
  • the second communication address is a dynamically configured IP address. It can be seen that the first network communication channel established based on the first virtual network card is in VLAN1, and the second network communication channel established based on the second virtual network card is in VLAN0.
  • the first network communication channel is represented by a thick solid line
  • the second network communication channel is represented by a thick dashed line.
  • the communication address of the multimedia encoding processing chip 12 may be set based on a static configuration, or may be acquired based on a dynamic configuration.
  • the communication address of the multimedia encoding processing chip 12 is a static IP address.
  • the multimedia encoding processing chip 12 after the multimedia encoding processing chip 12 is started, it can dynamically apply for an IP address from the DHCP service on the main control chip 14 through the switch chip 13 .
  • the terminal may use different ways to isolate the first network communication channel and the second network communication channel, as shown in FIG. 3 , in these examples, the terminal 30 includes the multimedia collector 11 in addition to the In addition to the multimedia encoding processing chip 12, the switch chip 13 and the main control chip 14, it also includes a network switch chip 15.
  • the function of the network switch chip 15 and the switch chip 13 is similar, and both are used to realize the communication connection between the two communication terminals. .
  • the reason for the difference between "switch chip” and "network switch chip” is mainly to distinguish two chips with network switch functions.
  • the network switch chip The structure and model of the switch chip 15 and the switch chip 13 can be exactly the same.
  • the network switch chip 15 and the switch chip 13 are not identical.
  • the switch chip 13 and the network switch chip 15 are designed and produced by different manufacturers and have the same characteristics. A chip with network switching functions.
  • the main control chip 14 can establish a first network communication channel with the multimedia encoding processing chip 12 through the switch chip 13, and on the other hand, the main control chip 14 can establish a second network with external devices through the network switch chip 15 Communication channels, eg, a first network communication channel is shown in bold solid lines and a second network communication channel is shown in bold dashed lines in FIG. 4 . Since the switch chip 13 and the network switch chip 15 are physically isolated, the first network communication channel and the second network communication channel are isolated from each other, which prevents the external device from directly interacting with the multimedia encoding processing chip 12 to obtain the encoded multimedia data. Possibly, the security of the encoded multimedia data is improved.
  • the main control chip 14 and the multimedia encoding processing chip 12 can realize fault detection based on the heartbeat mechanism: the main control chip 14 One end of the two ends of the multimedia encoding processing chip 12 can periodically send a heartbeat message to the other end, and the other end also returns a heartbeat message to the opposite end after receiving the heartbeat message.
  • the main control chip 14 and the multimedia encoding processing chip 12 can not only implement fault detection based on the heartbeat mechanism, but also can automatically perform fault processing according to the detection results after fault detection:
  • the main control chip 14 can detect the reachability of the multimedia encoding processing chip 12 based on the heartbeat mechanism. It can be understood that the reachability of the multimedia encoding processing chip 12 actually refers to whether the message sent by the main control chip 14 is It can reach the multimedia encoding processing chip 12, or whether the message sent by the multimedia encoding processing chip 12 can reach the main control chip 14. Therefore, the detection of the reachability of the multimedia encoding processing chip 12 is actually aimed at the connection between the main control chip 14 and the main control chip 12. In the detection of the availability of the network communication channel between the multimedia encoding processing chips 12, after determining that the network communication channel is unavailable based on the heartbeat mechanism, the main control chip 14 can control the switch chip 13 to initialize. In some examples of this embodiment, after determining that the network communication channel is unavailable, the main control chip may also restart the multimedia client application running by itself.
  • the main control chip 14 can detect the availability of the multimedia encoding processing chip 12 based on the heartbeat mechanism, and when it is determined that the multimedia encoding processing chip 12 is abnormal, send a fault indication instruction to the multimedia encoding processing chip 12 to indicate If the multimedia encoding processing chip 12 is faulty, it is convenient for the multimedia encoding processing chip 12 to perform corresponding fault processing after knowing the fault.
  • the multimedia encoding processing chip 12 can control to restart the multimedia server application running by itself after determining that the heartbeat is abnormally timed out based on the heartbeat detection result.
  • the multimedia encoding processing chip 12 can also control the multimedia collector 11 to initialize .
  • the main control chip 14 communicates with the multimedia encoding processing chip 12 based on the network, and TCP (Transmission Control Protocol, Transmission Control Protocol) provides a heartbeat mechanism, therefore, in some examples of this embodiment, the main The control chip 14 and the multimedia encoding processing chip 12 can implement fault detection directly based on the TCP heartbeat mechanism.
  • the main control chip 14 and the multimedia encoding processing chip 12 may also implement fault detection based on the heartbeat mechanism under other protocols.
  • the terminal provided by this embodiment can not only improve the data transmission performance between the multimedia data collection terminal and the main control chip through network technology, but also because the multimedia collector, multimedia encoding processing chip and switch chip are integrated inside the terminal, and at the same time based on VLAN Technology or two different chips with network switching function prevent the multimedia encoding processing chip from being directly accessed by external devices, and improve the security of multimedia data.
  • the main control chip and the multimedia encoding processing chip can realize fault detection based on the heartbeat mechanism, and automatically realize fault processing, which is beneficial to the reliability of the terminal.
  • This embodiment provides a terminal application method, and the terminal application method is mainly applied to the aforementioned terminal. Please refer to a flowchart of the terminal application method shown in FIG. 5 below.
  • the main control chip establishes a network communication channel through the switch chip and the multimedia encoding processing chip.
  • the main control chip can establish a network communication channel with the multimedia encoding processing chip through the switch chip. It can be understood that if there is only one switch chip in the terminal, the communication between the main control chip and the external device also needs to be based on this Switch chip implementation. If there are other chips with network switching function in the terminal, the main control chip can implement communication with external devices based on other chips with network switching function. Of course, those skilled in the art can understand that even if there are two or more chips with network switching functions in the terminal, for example, the terminal has both switch chips and network switching chips, the main control chip can also choose to use only One chip realizes the communication with the multimedia encoding processing chip and with the external equipment.
  • the main control chip implements communication with the multimedia encoding processing chip and with external devices through the same switch chip: the main control chip establishes a first network communication channel with the multimedia encoding processing chip based on the switch chip, and A second network communication channel is established with the external device based on the switch chip.
  • the main control chip can control the switch chip to isolate the second network communication channel from the first network communication channel through VLAN technology, and the main control chip establishes the first network communication channel in a VLAN. Network communication channel, establish a second network communication channel in another VLAN. In this way, the external device and the multimedia encoding processing chip are in different virtual local area networks.
  • the multimedia encoding processing chip encodes Whether the obtained encoded multimedia data can be sent to an external device, and which external device is sent to can be controlled by the main control chip itself, which improves the security of the encoded multimedia data.
  • the main control chip implements communication with the multimedia encoding processing chip and the external device through two different chips with a network switching function:
  • the terminal includes a switch chip and a network switch chip, two with network
  • the chip for switching functions in an example, the switch chip and the network switching chip may be the same chip or different chips.
  • the terminal can establish a first network communication channel with the multimedia encoding processing chip through the switch chip, and establish a second network communication channel with the external device through the network switching chip. Because the switch chip and the network switch chip are two different physical entities, the first network communication channel and the second network communication channel are located under two different local area networks respectively, which realizes mutual isolation between the two.
  • the main control chip receives the encoded multimedia data transmitted by the multimedia encoding processing chip through the network communication channel.
  • the main control chip After the main control chip establishes a network communication channel (eg, the first network communication channel) with the multimedia encoding processing chip, it can receive encoded multimedia data sent by the multimedia encoding processing chip.
  • the multimedia encoding processing chip may perform encoding processing on multimedia data collected by a multimedia collector, such as a camera sensor, so as to obtain encoded multimedia data.
  • a multimedia client application can run on the main control chip, and a multimedia server application matching the multimedia client application can run on the multimedia encoding processing chip.
  • the main control chip can control the multimedia encoding processing chip, for example, indicating that the multimedia encoding processing chip is faulty, etc.
  • the main control chip can also collect encoded multimedia data from the multimedia encoding processing chip through the multimedia client application.
  • S506 The main control chip realizes the multimedia service according to the encoded multimedia data and the external device.
  • the main control chip After the main control chip acquires the encoded multimedia data from the multimedia encoding processing chip, it can implement multimedia services with external devices based on the encoded multimedia data. In some examples of this embodiment, after the main control chip determines that the encoded multimedia data is to be sent to the external device, after receiving the encoded multimedia data through the first network communication channel, the encoded multimedia data can be processed by the service software running by itself. , and then sent to the external device through the second network communication channel isolated from the first network communication channel, thereby ensuring the security of the data on the side of the multimedia encoding processing chip.
  • the main control chip and the multimedia encoding processing chip may also implement fault detection based on a heartbeat mechanism. Even in some examples, the main control chip and the multimedia encoding processing chip can not only implement fault detection based on the heartbeat mechanism, but also automatically perform fault processing according to the detection results after fault detection:
  • the main control chip can detect the reachability of the multimedia encoding processing chip based on the heartbeat mechanism. After determining that the network communication channel is unavailable based on the heartbeat mechanism, the main control chip can control the initialization of the switch chip. In some examples, the main control chip can also On the basis of the initialization of the switch chip, the multimedia client application running by itself is further restarted.
  • the main control chip can detect the availability of the multimedia encoding processing chip based on the heartbeat mechanism, and when it is determined that the multimedia encoding processing chip is abnormal, send a fault indication instruction to the multimedia encoding processing chip to instruct the multimedia encoding processing chip that it occurs. It is convenient for the multimedia encoding processing chip to perform corresponding fault processing after knowing the fault.
  • the multimedia encoding processing chip can control to restart the multimedia server application running by itself after determining that the heartbeat is abnormally timed out based on the heartbeat detection result, and the multimedia encoding processing chip can also control the initialization of the multimedia collector.
  • the terminal application method provided by this embodiment improves the data transmission rate between the multimedia encoding processing chip and the main control chip, enhances the stability of data transmission, and is beneficial to improving the service effect of the terminal multimedia service.
  • the main control chip can detect the reachability and availability of the multimedia encoding processing chip based on the heartbeat mechanism, find faults in time, and eliminate the faults, thereby improving the reliability of the terminal multimedia service.
  • the multimedia data in the terminal includes image data
  • the multimedia collector may include a camera sensor
  • the multimedia encoding processing chip may be an ISP chip.
  • the terminal 60 includes a camera sensor 61 , an ISP chip 62 , a switch chip 63 and a main control chip 64 , wherein the camera sensor 61 is communicatively connected to the ISP chip 62 , and the ISP chip 62 receives the image data transmitted by the camera sensor 61 . , and perform encoding processing to obtain encoded image data.
  • the communication between the main control chip 64 and the ISP chip 62 and the communication between the main control chip 64 and the external devices are all realized through the switch chip 63 .
  • the main control chip 64 and the ISP chip 62 establish a first network communication channel with each other in VLAN1 based on the switch chip 63
  • the main control chip 64 is based on the switch chip 63 between itself and the external device.
  • a second network communication channel in VLAN0 is established.
  • the multimedia server application running on the ISP chip 62 is a camera server application
  • the main control chip 64 runs a camera client application corresponding to the camera server application.
  • the main control chip 64 and the ISP chip 62 implement fault detection based on the heartbeat mechanism, and the main control chip 64 and the ISP chip 62 can also automatically process the fault according to the detection result after the fault detection: the main control chip 64 can The reachability of the ISP chip 62 is detected based on the heartbeat mechanism. After it is determined based on the heartbeat mechanism that the first network communication channel is unavailable, the main control chip 64 can control the switch chip 63 to initialize, or the main control chip can further restart its own operation. webcam client application. In addition, the main control chip 64 can detect whether the ISP chip 62 is faulty based on the heartbeat mechanism.
  • the main control chip 64 can send a fault indication instruction to the ISP chip 62 to instruct the ISP chip 62 that it has occurred. It is convenient for the ISP chip 62 to perform corresponding fault processing after knowing the fault. In some other examples, the ISP chip 62 can control to restart the camera server application running by itself after determining that the heartbeat is abnormally timed out based on the heartbeat detection result, and at the same time, the ISP chip 62 can also control the initialization of the camera sensor 61 .
  • S702 The terminal is powered on and turned on.
  • the ISP chip initializes its network IP address as a static IP address within the range of the network segment corresponding to VLAN1.
  • S706 The ISP chip initializes the camera sensor and starts the camera server application.
  • the camera client can access the encoded image data collected by the camera sensor and encoded by the ISP chip.
  • S708 The main control chip initializes the switch chip, and uses the VLAN technology to divide the network interface of the switch chip.
  • the main control chip can divide the network interface used by the switch chip to establish the first network communication channel to VLAN1, and the network interface used by the switch chip to establish the second network communication channel to VLAN0, that is, the switch chip is connected to the network interface of the ISP chip. And the network interface of the switch chip connected to the main control chip is divided into VLAN1, and the network interface of the switch chip connected to the main control chip and the network interface of the main control chip connected to the external network are divided into VLAN0.
  • S710 The main control chip virtualizes two virtual network cards and performs IP configuration on the virtual network cards.
  • the main control chip can bind one of the virtual network cards to VLAN0, and configure its IP acquisition method as DHCP dynamic acquisition method, so that it can dynamically obtain IP from the external network through the switch chip; the main control chip binds the other virtual network card to VLAN1 , and configure its IP address as a static IP address in the network segment corresponding to VLAN1. It can be understood that the IP acquisition methods of the two virtual network cards are not fixed, and both can be selected from static configuration methods and dynamic configuration methods.
  • S712 The main control chip initializes the service software and starts the camera client application.
  • S714 The main control chip and the ISP chip establish a first network communication channel, and the camera client controls the camera sensor through the first network communication channel.
  • the main control chip establishes a first network communication channel with the ISP chip through the IP address in VLAN1, and then the camera client on the main control chip controls the camera sensor by sending instructions to the camera client on the ISP chip.
  • S716 The main control chip and the ISP chip start heartbeat detection, and perform troubleshooting after a fault is detected.
  • the camera client on the main control chip will send a fault indication instruction to the camera server on the ISP chip. If the network is unreachable, the main control chip reinitializes the switch chip, and can also restart the camera client application.
  • the heartbeat mechanism is turned on, and the instruction request of the camera client is monitored, and the work corresponding to the instruction is completed according to the instruction of the camera client.
  • the ISP chip reinitializes the camera sensor and restarts the camera server application.
  • the camera client on the main control chip accesses the camera server on the ISP chip, obtains encoded image data, and transmits the encoded image data to the service software for processing.
  • sequence obtained by each step in FIG. 7 is not unique.
  • S708-S712 may be performed before S704-S706, or the two processes may be performed in parallel.
  • S718 and S716 may be performed simultaneously, or S718 may be performed first and then S716 may be performed.
  • the present embodiments also provide a computer-readable storage medium embodied in any method or technology for storing information, such as computer-readable instructions, data structures, computer program modules, or other data Volatile or nonvolatile, removable or non-removable media.
  • Computer-readable storage media include, but are not limited to, RAM (Random Access Memory, random access memory), ROM (Read-Only Memory, read-only memory), EEPROM (Electrically Erasable Programmable read only memory, electrically erasable programmable read only memory) ), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, Or any other medium that can be used to store the desired information and that can be accessed by a computer.
  • RAM Random Access Memory
  • ROM Read-Only Memory
  • EEPROM Electrically Erasable Programmable read only memory
  • flash memory or other memory technology
  • CD-ROM Compact
  • One or more computer programs that can be read, compiled and executed by one or more processors may be stored in the computer-readable storage medium, and in this embodiment, the computer-readable storage medium may be stored with terminal application programs , the terminal application program can be used by one or more processors to execute the process of implementing any one of the terminal application methods described in the foregoing embodiments.
  • the camera and the terminal are integrated together, and a switch chip is arranged between the camera and the main control of the terminal, so that the ISP chip on the camera side and the main control chip use network communication, which improves the speed and speed of data transmission between the two. Transmission stability.
  • the camera side is isolated from the external network to ensure the data security of the camera side.
  • an effective heartbeat mechanism is established between the main control chip and the ISP chip to implement fault detection through TCP, which can ensure long-term stable operation of terminal services.
  • the terminal includes a multimedia collector, a multimedia encoding processing chip, a switch chip, and a main control chip, wherein the multimedia encoding processing chip and the main control chip establish a network communication channel through the switch chip to realize communication. connect.
  • the multimedia collector is used to collect multimedia data and output the collected multimedia data to the multimedia encoding processing chip.
  • the multimedia encoding processing chip encodes and processes the multimedia data to obtain encoded multimedia data.
  • the multimedia encoding processing chip is also used to pass the encoded multimedia data through the network.
  • the communication channel is transmitted to the main control chip, so that the main control chip can realize multimedia services with external devices according to the received encoded multimedia data.
  • the multimedia encoding processing chip and the main control chip are connected through a network based on a switch chip, compared with the solution of connecting through a USB cable or an HDMI cable in the related art, the multimedia encoding processing chip is connected to the above-mentioned
  • the network communication channel established based on the switch chip between the main control chips has a higher transmission rate and a more stable transmission performance, which is beneficial to improve the service effect of the terminal multimedia service.
  • a multimedia collector for realizing multimedia data collection, a multimedia encoding processing chip for realizing multimedia data encoding, a switch chip, and a main control chip are integrated into one terminal device, which can reduce the cost of multimedia conference products. .
  • the functional modules/units in the system, and the device can be implemented as software (which can be implemented by computer program codes executable by a computing device). ), firmware, hardware, and their appropriate combination.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components Components execute cooperatively.
  • Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit .
  • communication media typically embodies computer readable instructions, data structures, computer program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery, as is well known to those of ordinary skill in the art medium. Therefore, the present disclosure is not limited to any particular combination of hardware and software.

Abstract

The embodiments of the present disclosure provide a terminal and a terminal application method. The terminal comprises a multimedia collector, a multimedia encoding processing chip, a switch chip and a main control chip; the multimedia encoding processing chip and the main control chip establish a network communication channel by means of the switch chip; and the multimedia encoding processing chip encodes multimedia data collected by the multimedia collector to obtain encoded multimedia data, and then transmits same to the main control chip by means of the network communication channel, so that the main control chip achieves a multimedia service.

Description

一种终端及终端应用方法A terminal and terminal application method
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本公开要求享有2020年12月31日提交的名称为“一种终端及终端应用方法”的中国专利申请CN202011621594.X的优先权,其全部内容通过引用并入本公开中。The present disclosure claims the priority of Chinese patent application CN202011621594.X, filed on December 31, 2020, entitled "A Terminal and Terminal Application Method", the entire contents of which are incorporated into the present disclosure by reference.
技术领域technical field
本公开实施例涉及但不限于电子设备领域,具体而言,涉及但不限于一种终端及终端应用方法。The embodiments of the present disclosure relate to, but are not limited to, the field of electronic devices, and specifically relate to, but are not limited to, a terminal and a terminal application method.
背景技术Background technique
在相关多媒体会议系统中,多媒体数据采集端(如摄像头、麦克风)通常通过USB连接线或HDMI(High Definition Multimedia Interface,高清多媒体接口)连接线连接到会议终端上,多媒体数据采集端采集的音视频数据通过USB接口或HDMI传输给会议终端,以供会议终端与外部终端实现视频会议业务。不过,受限于USB连接线与HDMI连接线的传输能力,多媒体数据采集端向会议终端进行数据传输的传输速率与传输稳定性始终不理想,因此,现在亟需提供一种多媒体会议产品。In the relevant multimedia conference system, the multimedia data acquisition terminal (such as camera, microphone) is usually connected to the conference terminal through a USB cable or an HDMI (High Definition Multimedia Interface, high-definition multimedia interface) cable, and the audio and video collected by the multimedia data acquisition terminal The data is transmitted to the conference terminal through the USB interface or HDMI, so that the conference terminal and the external terminal can realize the video conference service. However, limited by the transmission capability of the USB cable and the HDMI cable, the transmission rate and transmission stability of the data transmission from the multimedia data collection end to the conference terminal are still unsatisfactory. Therefore, there is an urgent need to provide a multimedia conference product.
发明内容SUMMARY OF THE INVENTION
本公开实施例提供的终端及终端应用方法,主要解决的技术问题是:如何提升多媒体数据采集端与会议终端间数据传输的速率与稳定性。The terminal and the terminal application method provided by the embodiments of the present disclosure mainly solve the technical problem: how to improve the speed and stability of data transmission between the multimedia data collection terminal and the conference terminal.
为解决上述技术问题,本公开实施例提供了一种终端,包括多媒体采集器、多媒体编码处理芯片、交换机芯片以及主控芯片;多媒体编码处理芯片与主控芯片通过交换机芯片建立网络通信通道,实现通信连接;多媒体采集器,用于采集多媒体数据,并将采集的多媒体数据输出至多媒体编码处理芯片;多媒体编码处理芯片,用于对多媒体数据进行编码处理,得到编码多媒体数据,并将编码多媒体数据通过网络通信通道传输给主控芯片;主控芯片用于根据接收到的编码多媒体数据与外部设备实现多媒体业务。In order to solve the above technical problems, an embodiment of the present disclosure provides a terminal, which includes a multimedia collector, a multimedia encoding processing chip, a switch chip, and a main control chip; the multimedia encoding processing chip and the main control chip establish a network communication channel through the switch chip, so as to realize Communication connection; multimedia collector, used to collect multimedia data, and output the collected multimedia data to the multimedia encoding processing chip; multimedia encoding processing chip, used to encode and process the multimedia data, obtain the encoded multimedia data, and encode the multimedia data. It is transmitted to the main control chip through the network communication channel; the main control chip is used to realize multimedia services with external devices according to the received encoded multimedia data.
本公开实施例还提供了一种终端应用方法,应用于上述终端,终端应用方法包括:主控芯片通过交换机芯片与多媒体编码处理芯片建立网络通信通道;主控芯片通过网络通信通道接收多媒体编码处理芯片传输的编码多媒体数据,编码多媒体数据由多媒体编码处理芯片对多媒体采集器所采集的多媒体数据进行编码处理得到;主控芯片根据编码多媒体数据与外部设备实现多媒体业务。An embodiment of the present disclosure also provides a terminal application method, which is applied to the above-mentioned terminal. The terminal application method includes: a main control chip establishes a network communication channel with a multimedia encoding processing chip through a switch chip; the main control chip receives the multimedia encoding processing through the network communication channel The encoded multimedia data transmitted by the chip is obtained by encoding and processing the multimedia data collected by the multimedia collector by the multimedia encoding processing chip; the main control chip realizes the multimedia business according to the encoded multimedia data and external equipment.
本公开其他特征和相应的有益效果在说明书的后面部分进行阐述说明,且应当理解, 至少部分有益效果从本公开说明书中的记载变的显而易见。Other features of the present disclosure and corresponding benefits are set forth in later portions of the specification, and it is to be understood that at least some of the benefits will become apparent from the recitation of the present disclosure.
附图说明Description of drawings
图1为本公开实施例一中提供的终端的一种硬件结构示意图;FIG. 1 is a schematic diagram of a hardware structure of a terminal provided in Embodiment 1 of the present disclosure;
图2为图1中的终端内部及外部网络通信的一种示意图;Fig. 2 is a kind of schematic diagram of the internal and external network communication of the terminal in Fig. 1;
图3为本公开实施例一中提供的终端的另一种硬件结构示意图;3 is a schematic diagram of another hardware structure of the terminal provided in Embodiment 1 of the present disclosure;
图4为图3中的终端内部及外部网络通信的一种示意图;Fig. 4 is a kind of schematic diagram of the internal and external network communication of the terminal in Fig. 3;
图5为本公开实施例二中提供的终端应用方法的一种流程图;FIG. 5 is a flowchart of the terminal application method provided in Embodiment 2 of the present disclosure;
图6为本公开实施例三中提供的终端的一种硬件结构示意图;6 is a schematic diagram of a hardware structure of the terminal provided in Embodiment 3 of the present disclosure;
图7为本公开实施例三中提供的终端应用方法的一种流程图。FIG. 7 is a flowchart of the terminal application method provided in Embodiment 3 of the present disclosure.
具体实施方式Detailed ways
为了使本公开的目的、技术方案及优点更加清楚明白,下面通过具体实施方式结合附图对本公开实施例作进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本公开,并不用于限定本公开。In order to make the objectives, technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure will be further described in detail below through specific implementations in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present disclosure, but not to limit the present disclosure.
实施例一Example 1
在相关技术常见的视频会议解决方案中,摄像头、麦克风通常与会议终端独立,摄像头、麦克风通过USB连接线连接到会议终端上,二者采集的图像数据、音频数据通过USB连接线进行传输。还有一些示例中,USB连接线可以通过HDMI连接线代替,不过,不过是基于USB连接线的通信连接,还是基于HDMI连接线的通信连接,在多媒体数据传输速率与传输稳定性方面都存在比较大的问题,容易影响会议终端的会议效果。对此,本实施例提供一种终端,请参见图1示出的该终端的一种硬件结构示意图。In common video conferencing solutions in related technologies, the camera and microphone are usually independent from the conference terminal. The camera and microphone are connected to the conference terminal through a USB cable, and the image data and audio data collected by the two are transmitted through the USB cable. In some examples, the USB cable can be replaced by an HDMI cable. However, whether it is a communication connection based on a USB cable or a communication connection based on an HDMI cable, there are comparisons in terms of multimedia data transmission rate and transmission stability. It is a big problem, which can easily affect the conference effect of the conference terminal. In this regard, this embodiment provides a terminal, please refer to a schematic diagram of a hardware structure of the terminal shown in FIG. 1 .
终端10包括多媒体采集器11、多媒体编码处理芯片12、交换机芯片13以及主控芯片14。The terminal 10 includes a multimedia collector 11 , a multimedia encoding processing chip 12 , a switch chip 13 and a main control chip 14 .
其中,多媒体采集器11用于实现多媒体数据的采集,在本实施例的一些示例中,多媒体采集器11采集的多媒体数据可以包括图像数据,所以多媒体采集器11可以具有图像采集功能,例如,在一种示例中,多媒体采集器11包括摄像头传感器(sensor)。在本实施例的另一些示例中,多媒体采集器11可以具有音频采集功能,因此,在这些示例中,多媒体采集器11包括麦克风。还有一些示例中,多媒体采集器11同时包括摄像头传感器与麦克风。The multimedia collector 11 is used to collect multimedia data. In some examples of this embodiment, the multimedia data collected by the multimedia collector 11 may include image data, so the multimedia collector 11 may have an image collection function. In one example, the multimedia collector 11 includes a camera sensor. In other examples of this embodiment, the multimedia collector 11 may have an audio collection function, and therefore, in these examples, the multimedia collector 11 includes a microphone. In some other examples, the multimedia collector 11 includes a camera sensor and a microphone at the same time.
多媒体编码处理芯片12用于对多媒体采集器11采集到的多媒体数据进行编码处理,得到编码多媒体数据。如果多媒体采集器11包括摄像头传感器,则多媒体编码处理芯片 12可以对图像数据进行编码处理,例如,当多媒体采集器11为摄像头传感器的情况下,多媒体编码处理芯片12可以为ISP(图像信号处理)芯片;而如果多媒体采集器11包括麦克风,则多媒体编码处理芯片12可以对音频数据进行编码处理,其可以为音频信号处理芯片。在本实施例的一些示例中,多媒体编码处理芯片12上还可以运行多媒体服务端应用,该多媒体服务端应用可以接收主控芯片14上多媒体客户端应用的指示。The multimedia encoding processing chip 12 is used for encoding and processing the multimedia data collected by the multimedia collector 11 to obtain encoded multimedia data. If the multimedia collector 11 includes a camera sensor, the multimedia encoding processing chip 12 can encode the image data. For example, when the multimedia collector 11 is a camera sensor, the multimedia encoding processing chip 12 can be an ISP (image signal processing) If the multimedia collector 11 includes a microphone, the multimedia encoding processing chip 12 can encode and process the audio data, which can be an audio signal processing chip. In some examples of this embodiment, a multimedia server application may also run on the multimedia encoding processing chip 12 , and the multimedia server application may receive an instruction of a multimedia client application on the main control chip 14 .
交换机芯片13可以给多媒体编码处理芯片12及主控芯片14提供网络通信途径,多媒体编码处理芯片12及主控芯片14基于交换机芯片13建立网络通信通道,在网络通信通道建立完成后,多媒体编码处理芯片12则可以将编码得到的编码多媒体数据通过网络通信通道传输给主控芯片14。在本实施例的一些示例中,主控芯片14还可以通过该网络通信通道向多媒体编码处理芯片12发送指令,对多媒体编码处理芯片12进行控制。The switch chip 13 can provide a network communication path for the multimedia encoding processing chip 12 and the main control chip 14. The multimedia encoding processing chip 12 and the main control chip 14 establish a network communication channel based on the switch chip 13. After the network communication channel is established, the multimedia encoding processing is completed. The chip 12 can transmit the encoded multimedia data obtained by encoding to the main control chip 14 through the network communication channel. In some examples of this embodiment, the main control chip 14 may also send an instruction to the multimedia encoding processing chip 12 through the network communication channel to control the multimedia encoding processing chip 12 .
主控芯片14实际就是终端10的CPU,其可以运行多种业务软件,从而实现多种事务的处理。例如,在本实施例中,主控芯片14上可以运行多媒体客户端应用,该客户端应用可以与运行在多媒体编码处理芯片12上的多媒体服务端应用相互配合,实现主控芯片14对多媒体编码处理芯片12的控制。另外,主控芯片14可以与外部设备通信,在通过与多媒体编码处理芯片12间的网络通信通道获取到编码多媒体数据之后,主控芯片14可以与外部设备实现多媒体业务。可以理解的是,主控芯片14上还可以运行多媒体客户端应用以外的业务软件,例如视频会议软件、视频电话软件、视频编辑软件(包括但不限于视频剪辑、马赛克处理)等。The main control chip 14 is actually the CPU of the terminal 10, which can run various business software, thereby realizing the processing of various transactions. For example, in this embodiment, a multimedia client application can run on the main control chip 14, and the client application can cooperate with the multimedia server application running on the multimedia encoding processing chip 12 to realize the multimedia encoding by the main control chip 14. Control of the processing chip 12 . In addition, the main control chip 14 can communicate with external devices, and after acquiring encoded multimedia data through a network communication channel with the multimedia encoding processing chip 12, the main control chip 14 can implement multimedia services with the external devices. It can be understood that the main control chip 14 can also run service software other than multimedia client applications, such as video conference software, video telephony software, video editing software (including but not limited to video editing, mosaic processing) and the like.
在本实施例的一些示例中,多媒体编码处理芯片12与主控芯片14通过交换机芯片13建立的网络通信通道为第一网络通信通道。主控芯片14与外部设备通过第二网络通信通道实现通信,第一网络通信通道与第二网络通信通道相互隔离。基于第二网络通信通道与第一网络通信通道的隔离作用,使得通过第二网络通信通道与主控芯片14交互的外部设备不能访问到多媒体编码处理芯片12。In some examples of this embodiment, the network communication channel established by the multimedia encoding processing chip 12 and the main control chip 14 through the switch chip 13 is the first network communication channel. The main control chip 14 communicates with the external device through a second network communication channel, and the first network communication channel and the second network communication channel are isolated from each other. Based on the isolation between the second network communication channel and the first network communication channel, external devices that interact with the main control chip 14 through the second network communication channel cannot access the multimedia encoding processing chip 12 .
在本实施例的一些示例中,主控芯片14与外部设备之间通信的第二网络通信通道也可以基于交换机芯片13建立,在这种情况下,为了避免主控芯片14、多媒体编码处理芯片12以及外部设备同处于一个局域网下,造成多媒体编码处理芯片12被外部设备随意访问的情况,交换机芯片13可以通过不同的VLAN(虚拟局域网)对第一网络通信通道与第二网络通信通道进行隔离,例如,在一种示例中,请参见图2所示,在终端10上电后,主控芯片14可以虚拟出两个虚拟网卡,分别是第一虚拟网卡与第二虚拟网卡,主控芯片14将第一虚拟网卡绑定到VLAN1,将第二虚拟网卡则绑定至VLAN0。第一虚拟网卡基于第一通信地址与多媒体编码处理芯片12建立第一网络通信通道,而第二虚拟网卡则基于第二通信地址与外部设备建立第二网络通信通道。在一种示例中,第一通信地址与第二通信地址 可以是IP地址。一些示例中,第一通信地址与第二通信地址均为静态配置的IP地址,另一些示例中,第一通信地址与第二通信地址均为通过DHCP(动态主机配置协议)动态配置的IP地址;还有一些示例中,两个通信地址中的一个为静态配置得到,另一个为动态配置得到。例如,一种示例中,第一通信地址为静态配置的IP地址,第二通信地址则是动态配置的IP地址。可见,基于第一虚拟网卡建立的第一网络通信通道处于VLAN1中,而基于第二虚拟网卡建立的第二网络通信通道则处于VLAN0中。在图2中,采用粗实线表示第一网络通信通道,采用粗虚线表示第二网络通信通道。通过不同虚拟局域网的隔离,使得外部通信设备即便在与多媒体编码处理芯片12接入相同的交换机芯片的情况下,也无法访问多媒体编码处理芯片12。In some examples of this embodiment, the second network communication channel for communication between the main control chip 14 and the external device may also be established based on the switch chip 13. In this case, in order to avoid the main control chip 14 and the multimedia encoding processing chip 12 and external devices are in the same local area network, causing the multimedia encoding processing chip 12 to be freely accessed by external devices, the switch chip 13 can isolate the first network communication channel and the second network communication channel through different VLANs (Virtual Local Area Networks). , for example, in an example, as shown in FIG. 2 , after the terminal 10 is powered on, the main control chip 14 can virtualize two virtual network cards, namely the first virtual network card and the second virtual network card, the main control chip 14. Bind the first virtual network card to VLAN1, and bind the second virtual network card to VLAN0. The first virtual network card establishes a first network communication channel with the multimedia encoding processing chip 12 based on the first communication address, and the second virtual network card establishes a second network communication channel with an external device based on the second communication address. In one example, the first communication address and the second communication address may be IP addresses. In some examples, the first communication address and the second communication address are both statically configured IP addresses, and in other examples, the first communication address and the second communication address are both dynamically configured IP addresses through DHCP (Dynamic Host Configuration Protocol). ; In some examples, one of the two communication addresses is statically configured, and the other is dynamically configured. For example, in an example, the first communication address is a statically configured IP address, and the second communication address is a dynamically configured IP address. It can be seen that the first network communication channel established based on the first virtual network card is in VLAN1, and the second network communication channel established based on the second virtual network card is in VLAN0. In FIG. 2 , the first network communication channel is represented by a thick solid line, and the second network communication channel is represented by a thick dashed line. Through the isolation of different virtual local area networks, even if the external communication device is connected to the same switch chip as the multimedia encoding processing chip 12 , it cannot access the multimedia encoding processing chip 12 .
在一种示例中,多媒体编码处理芯片12的通信地址可以基于静态配置的方式设置,也可以基于动态配置的方式获取,例如,在本实施例的一些示例中,多媒体编码处理芯片12的通信地址是静态IP地址,在另一些示例中,多媒体编码处理芯片12在启动之后,可以通过交换机芯片13向主控芯片14上的DHCP服务动态申请IP地址。In an example, the communication address of the multimedia encoding processing chip 12 may be set based on a static configuration, or may be acquired based on a dynamic configuration. For example, in some examples of this embodiment, the communication address of the multimedia encoding processing chip 12 is a static IP address. In other examples, after the multimedia encoding processing chip 12 is started, it can dynamically apply for an IP address from the DHCP service on the main control chip 14 through the switch chip 13 .
在本实施例的另一些示例中,终端可以采用不同的方式来隔离第一网络通信通道与第二网络通信通道,如图3所示,在这些示例中,终端30中除了包括多媒体采集器11、多媒体编码处理芯片12、交换机芯片13以及主控芯片14以外,还包括网络交换芯片15,网络交换芯片15与交换机芯片13的功能类似,都是用于实现两个通信端之间的通信连接。在本实施例中,之所以存在“交换机芯片”与“网络交换芯片”的差异,主要为了对两个具有网络交换功能的芯片进行表述上的区分,事实上,在一些示例中,网络交换芯片15与交换机芯片13的结构、型号等可以完全相同,当然,网络交换芯片15与交换机芯片13不完全相同也是可行的,例如,交换机芯片13与网络交换芯片15分别是不同厂家设计生产的同样具有网络交换功能的芯片。In other examples of this embodiment, the terminal may use different ways to isolate the first network communication channel and the second network communication channel, as shown in FIG. 3 , in these examples, the terminal 30 includes the multimedia collector 11 in addition to the In addition to the multimedia encoding processing chip 12, the switch chip 13 and the main control chip 14, it also includes a network switch chip 15. The function of the network switch chip 15 and the switch chip 13 is similar, and both are used to realize the communication connection between the two communication terminals. . In this embodiment, the reason for the difference between "switch chip" and "network switch chip" is mainly to distinguish two chips with network switch functions. In fact, in some examples, the network switch chip The structure and model of the switch chip 15 and the switch chip 13 can be exactly the same. Of course, it is also feasible that the network switch chip 15 and the switch chip 13 are not identical. For example, the switch chip 13 and the network switch chip 15 are designed and produced by different manufacturers and have the same characteristics. A chip with network switching functions.
在终端30中,主控芯片14一方面可以通过交换机芯片13与多媒体编码处理芯片12建立第一网络通信通道,另一方面,主控芯片14可以通过网络交换芯片15与外部设备建立第二网络通信通道,例如,在图4当中以粗实线示出了第一网络通信通道,以粗虚线示出了第二网络通信通道。由于交换机芯片13与网络交换芯片15本身存在物理上的隔离,因此第一网络通信通道与第二网络通信通道相互隔离,这样杜绝了外部设备直接与多媒体编码处理芯片12交互,获取编码多媒体数据的可能,提升了编码多媒体数据的安全性。In the terminal 30, on the one hand, the main control chip 14 can establish a first network communication channel with the multimedia encoding processing chip 12 through the switch chip 13, and on the other hand, the main control chip 14 can establish a second network with external devices through the network switch chip 15 Communication channels, eg, a first network communication channel is shown in bold solid lines and a second network communication channel is shown in bold dashed lines in FIG. 4 . Since the switch chip 13 and the network switch chip 15 are physically isolated, the first network communication channel and the second network communication channel are isolated from each other, which prevents the external device from directly interacting with the multimedia encoding processing chip 12 to obtain the encoded multimedia data. Possibly, the security of the encoded multimedia data is improved.
可以理解的是,当会议终端与摄像头、麦克风采用USB接口通信的情况下,会议终端很难发现摄像头等多媒体数据采集端的故障,而且,就算用户发现多媒体数据采集端出现故障,也只能通过重启会议终端与摄像头才能有可能实现故障恢复,这极大地影响了用户的多媒体会议体验,在本实施例中,主控芯片14与多媒体编码处理芯片12可以基于心跳 机制实现故障检测:主控芯片14与多媒体编码处理芯片12两端中的一端可以周期性地向另一端发送心跳消息,而另一端在接收到心跳消息后也同样向对端回复心跳消息。It is understandable that when the conference terminal communicates with the camera and the microphone through the USB interface, it is difficult for the conference terminal to find the failure of the multimedia data collection end such as the camera. Moreover, even if the user finds that the multimedia data collection end fails, it can only be restarted. Only the conference terminal and the camera can realize fault recovery, which greatly affects the user's multimedia conference experience. In this embodiment, the main control chip 14 and the multimedia encoding processing chip 12 can realize fault detection based on the heartbeat mechanism: the main control chip 14 One end of the two ends of the multimedia encoding processing chip 12 can periodically send a heartbeat message to the other end, and the other end also returns a heartbeat message to the opposite end after receiving the heartbeat message.
在本实施例的一些示例中,主控芯片14与多媒体编码处理芯片12不仅可以基于心跳机制实现故障检测,而且还可以在故障检测后根据检测结果自动进行故障处理:In some examples of this embodiment, the main control chip 14 and the multimedia encoding processing chip 12 can not only implement fault detection based on the heartbeat mechanism, but also can automatically perform fault processing according to the detection results after fault detection:
在一些示例中,主控芯片14可以基于心跳机制检测多媒体编码处理芯片12的可达性,可以理解的是,多媒体编码处理芯片12的可达性实际就是指主控芯片14所发送的消息是否可以到达多媒体编码处理芯片12,或者说多媒体编码处理芯片12发送的消息是否可以到达主控芯片14处,因此,针对多媒体编码处理芯片12的可达性的检测事实上就是针对主控芯片14与多媒体编码处理芯片12间网络通信通道可用性的检测,在基于心跳机制确定网络通信通道不可用后,主控芯片14可以控制交换机芯片13初始化。在本实施例的一些示例中,主控芯片在确定网络通信通道不可用后,还可以重启自身运行的多媒体客户端应用。In some examples, the main control chip 14 can detect the reachability of the multimedia encoding processing chip 12 based on the heartbeat mechanism. It can be understood that the reachability of the multimedia encoding processing chip 12 actually refers to whether the message sent by the main control chip 14 is It can reach the multimedia encoding processing chip 12, or whether the message sent by the multimedia encoding processing chip 12 can reach the main control chip 14. Therefore, the detection of the reachability of the multimedia encoding processing chip 12 is actually aimed at the connection between the main control chip 14 and the main control chip 12. In the detection of the availability of the network communication channel between the multimedia encoding processing chips 12, after determining that the network communication channel is unavailable based on the heartbeat mechanism, the main control chip 14 can control the switch chip 13 to initialize. In some examples of this embodiment, after determining that the network communication channel is unavailable, the main control chip may also restart the multimedia client application running by itself.
在一些示例中,主控芯片14可以基于心跳机制检测多媒体编码处理芯片12的可用性,并在确定所述多媒体编码处理芯片12异常的情况下,向多媒体编码处理芯片12发送故障指示指令,以指示多媒体编码处理芯片12发生了故障,便于多媒体编码处理芯片12在知晓故障后进行对应的故障处理。In some examples, the main control chip 14 can detect the availability of the multimedia encoding processing chip 12 based on the heartbeat mechanism, and when it is determined that the multimedia encoding processing chip 12 is abnormal, send a fault indication instruction to the multimedia encoding processing chip 12 to indicate If the multimedia encoding processing chip 12 is faulty, it is convenient for the multimedia encoding processing chip 12 to perform corresponding fault processing after knowing the fault.
还有一些示例中,多媒体编码处理芯片12在基于心跳检测结果确定心跳异常超时后,可以控制重启自身运行的多媒体服务端应用,另一方面,多媒体编码处理芯片12还可以控制多媒体采集器11初始化。In some other examples, the multimedia encoding processing chip 12 can control to restart the multimedia server application running by itself after determining that the heartbeat is abnormally timed out based on the heartbeat detection result. On the other hand, the multimedia encoding processing chip 12 can also control the multimedia collector 11 to initialize .
可以理解的是,因为主控芯片14与多媒体编码处理芯片12基于网络进行通信,而TCP(Transmission Control Protocol,传输控制协议)就有提供心跳机制,因此,在本实施例的一些示例中,主控芯片14与多媒体编码处理芯片12可以直接基于TCP心跳机制实现故障检测。当然,在本实施例的其他一些示例中,主控芯片14与多媒体编码处理芯片12也可以基于其他协议下的心跳机制实现故障检测。It can be understood that, because the main control chip 14 communicates with the multimedia encoding processing chip 12 based on the network, and TCP (Transmission Control Protocol, Transmission Control Protocol) provides a heartbeat mechanism, therefore, in some examples of this embodiment, the main The control chip 14 and the multimedia encoding processing chip 12 can implement fault detection directly based on the TCP heartbeat mechanism. Of course, in some other examples of this embodiment, the main control chip 14 and the multimedia encoding processing chip 12 may also implement fault detection based on the heartbeat mechanism under other protocols.
本实施例提供的终端,不仅能够通过网络技术提升多媒体数据采集端与主控芯片间的数据传输性能,而且因为将多媒体采集器、多媒体编码处理芯片与交换机芯片集成在终端内部,同时又基于VLAN技术或者是两个不同的具有网络交换功能的芯片杜绝了多媒体编码处理芯片被外部设备直接访问,提升了多媒体数据的安全性。另一方面,主控芯片与多媒体编码处理芯片可以基于心跳机制实现故障检测,并自动实现故障处理,有利于终端的可靠性。The terminal provided by this embodiment can not only improve the data transmission performance between the multimedia data collection terminal and the main control chip through network technology, but also because the multimedia collector, multimedia encoding processing chip and switch chip are integrated inside the terminal, and at the same time based on VLAN Technology or two different chips with network switching function prevent the multimedia encoding processing chip from being directly accessed by external devices, and improve the security of multimedia data. On the other hand, the main control chip and the multimedia encoding processing chip can realize fault detection based on the heartbeat mechanism, and automatically realize fault processing, which is beneficial to the reliability of the terminal.
实施例二Embodiment 2
本实施例提供一种终端应用方法,该终端应用方法主要应用于前述终端,下面请参见 图5示出的终端应用方法的一种流程图。This embodiment provides a terminal application method, and the terminal application method is mainly applied to the aforementioned terminal. Please refer to a flowchart of the terminal application method shown in FIG. 5 below.
S502:主控芯片通过交换机芯片与多媒体编码处理芯片建立网络通信通道。S502: The main control chip establishes a network communication channel through the switch chip and the multimedia encoding processing chip.
在本实施例中,主控芯片可以通过交换机芯片与多媒体编码处理芯片建立网络通信通道,可以理解的是,如果终端中仅有一个交换机芯片,则主控芯片与外部设备的通信也需要基于该交换机芯片实现。如果终端中存在其他具有网络交换功能的芯片,则主控芯片可以基于其他具有网络交换功能的芯片实现与外部设备的通信。当然,本领域技术人员可以理解的是,即便终端中存在两个甚至两个以上的具有网络交换功能的芯片,例如终端既具有交换机芯片也有网络交换芯片在,主控芯片也同样可以选择仅用一个芯片实现与多媒体编码处理芯片以及与外部设备间的通信。In this embodiment, the main control chip can establish a network communication channel with the multimedia encoding processing chip through the switch chip. It can be understood that if there is only one switch chip in the terminal, the communication between the main control chip and the external device also needs to be based on this Switch chip implementation. If there are other chips with network switching function in the terminal, the main control chip can implement communication with external devices based on other chips with network switching function. Of course, those skilled in the art can understand that even if there are two or more chips with network switching functions in the terminal, for example, the terminal has both switch chips and network switching chips, the main control chip can also choose to use only One chip realizes the communication with the multimedia encoding processing chip and with the external equipment.
在本实施例的一些示例中,主控芯片通过同一交换机芯片实现与多媒体编码处理芯片以及与外部设备间的通信:主控芯片基于该交换机芯片与多媒体编码处理芯片建立第一网络通信通道,并基于该交换机芯片与外部设备建立第二网络通信通道。为了避免外部设备直接访问多媒体编码处理芯片获得编码多媒体数据,主控芯片可以控制交换机芯片通过VLAN技术实现第二网络通信通道与第一网络通信通道的隔离,主控芯片在一个VLAN中建立第一网络通信通道,在另一个VLAN中建立第二网络通信通道,这样,外部设备与多媒体编码处理芯片就处于不同的虚拟局域网中,因此,外部设备无法访问到多媒体编码处理芯片,多媒体编码处理芯片编码得到的编码多媒体数据是否可以被发送给外部设备,被发送给哪个外部设备都可以由主控芯片自己控制,提升了编码多媒体数据的安全性。In some examples of this embodiment, the main control chip implements communication with the multimedia encoding processing chip and with external devices through the same switch chip: the main control chip establishes a first network communication channel with the multimedia encoding processing chip based on the switch chip, and A second network communication channel is established with the external device based on the switch chip. In order to prevent external devices from directly accessing the multimedia encoding processing chip to obtain encoded multimedia data, the main control chip can control the switch chip to isolate the second network communication channel from the first network communication channel through VLAN technology, and the main control chip establishes the first network communication channel in a VLAN. Network communication channel, establish a second network communication channel in another VLAN. In this way, the external device and the multimedia encoding processing chip are in different virtual local area networks. Therefore, the external device cannot access the multimedia encoding processing chip. The multimedia encoding processing chip encodes Whether the obtained encoded multimedia data can be sent to an external device, and which external device is sent to can be controlled by the main control chip itself, which improves the security of the encoded multimedia data.
在本实施例的另外一些示例中,主控芯片通过两个不同的具有网络交换功能的芯片分别实现与多媒体编码处理芯片及外部设备的通信:终端中包括交换机芯片与网络交换芯片两个具有网络交换功能的芯片,在一种示例中,交换机芯片与网络交换芯片可以是完全一样的芯片,也可以是不一样的芯片。终端可以通过交换机芯片建立与多媒体编码处理芯片之间的第一网络通信通道,通过网络交换芯片建立与外部设备间的第二网络通信通道。因为交换机芯片与网络交换芯片是两个不同的物理实体,因此第一网络通信通道与第二网络通信通道分别位于两个不同的局域网下,实现了二者的相互隔离。In other examples of this embodiment, the main control chip implements communication with the multimedia encoding processing chip and the external device through two different chips with a network switching function: the terminal includes a switch chip and a network switch chip, two with network The chip for switching functions, in an example, the switch chip and the network switching chip may be the same chip or different chips. The terminal can establish a first network communication channel with the multimedia encoding processing chip through the switch chip, and establish a second network communication channel with the external device through the network switching chip. Because the switch chip and the network switch chip are two different physical entities, the first network communication channel and the second network communication channel are located under two different local area networks respectively, which realizes mutual isolation between the two.
S504:主控芯片通过网络通信通道接收多媒体编码处理芯片传输的编码多媒体数据。S504: The main control chip receives the encoded multimedia data transmitted by the multimedia encoding processing chip through the network communication channel.
主控芯片在与多媒体编码处理芯片之间建立网络通信通道(例如第一网络通信通道)后,可以接收多媒体编码处理芯片发送的编码多媒体数据。在本实施例中,多媒体编码处理芯片可以对多媒体采集器,例如摄像头传感器采集的多媒体数据进行编码处理,从而得到编码多媒体数据。在一种示例中,主控芯片上可以运行多媒体客户端应用,而多媒体编码处理芯片上则可以运行与该多媒体客户端应用相匹配的多媒体服务端应用,通过多媒体客户端应用与多媒体服务端应用的相互配合,主控芯片可以对多媒体编码处理芯片进行控 制,例如指示多媒体编码处理芯片出现故障等,同时,主控芯片也可以通过多媒体客户端应用从多媒体编码处理芯片处采集到编码多媒体数据。After the main control chip establishes a network communication channel (eg, the first network communication channel) with the multimedia encoding processing chip, it can receive encoded multimedia data sent by the multimedia encoding processing chip. In this embodiment, the multimedia encoding processing chip may perform encoding processing on multimedia data collected by a multimedia collector, such as a camera sensor, so as to obtain encoded multimedia data. In an example, a multimedia client application can run on the main control chip, and a multimedia server application matching the multimedia client application can run on the multimedia encoding processing chip. In cooperation with each other, the main control chip can control the multimedia encoding processing chip, for example, indicating that the multimedia encoding processing chip is faulty, etc. At the same time, the main control chip can also collect encoded multimedia data from the multimedia encoding processing chip through the multimedia client application.
S506:主控芯片根据编码多媒体数据与外部设备实现多媒体业务。S506: The main control chip realizes the multimedia service according to the encoded multimedia data and the external device.
主控芯片获取到来自多媒体编码处理芯片的编码多媒体数据后,可以基于编码多媒体数据与外部设备实现多媒体业务。在本实施例的一些示例中,当主控芯片确定要向外部设备发送编码多媒体数据后,可以在通过第一网络通信通道接收编码多媒体数据后,利用自己运行的业务软件对编码多媒体数据进行处理,然后通过与第一网络通信通道相互隔离的第二网络通信通道发送给外部设备,从而保障多媒体编码处理芯片侧数据的安全。After the main control chip acquires the encoded multimedia data from the multimedia encoding processing chip, it can implement multimedia services with external devices based on the encoded multimedia data. In some examples of this embodiment, after the main control chip determines that the encoded multimedia data is to be sent to the external device, after receiving the encoded multimedia data through the first network communication channel, the encoded multimedia data can be processed by the service software running by itself. , and then sent to the external device through the second network communication channel isolated from the first network communication channel, thereby ensuring the security of the data on the side of the multimedia encoding processing chip.
在本实施例的一些示例中,主控芯片与多媒体编码处理芯片还可以基于心跳机制实现故障检测。甚至在一些示例中,主控芯片与多媒体编码处理芯片不仅可以基于心跳机制实现故障检测,而且还可以在故障检测后根据检测结果自动进行故障处理:In some examples of this embodiment, the main control chip and the multimedia encoding processing chip may also implement fault detection based on a heartbeat mechanism. Even in some examples, the main control chip and the multimedia encoding processing chip can not only implement fault detection based on the heartbeat mechanism, but also automatically perform fault processing according to the detection results after fault detection:
例如,主控芯片可以基于心跳机制检测多媒体编码处理芯片的可达性,在基于心跳机制确定网络通信通道不可用后,主控芯片可以控制交换机芯片初始化,在一些示例中,主控芯片还可以在交换机芯片初始化的基础上,进一步重启自身运行的多媒体客户端应用。For example, the main control chip can detect the reachability of the multimedia encoding processing chip based on the heartbeat mechanism. After determining that the network communication channel is unavailable based on the heartbeat mechanism, the main control chip can control the initialization of the switch chip. In some examples, the main control chip can also On the basis of the initialization of the switch chip, the multimedia client application running by itself is further restarted.
又例如,主控芯片可以基于心跳机制检测多媒体编码处理芯片的可用性,并在确定所述多媒体编码处理芯片异常的情况下,向多媒体编码处理芯片发送故障指示指令,以指示多媒体编码处理芯片其发生了故障,便于多媒体编码处理芯片在知晓故障后进行对应的故障处理。For another example, the main control chip can detect the availability of the multimedia encoding processing chip based on the heartbeat mechanism, and when it is determined that the multimedia encoding processing chip is abnormal, send a fault indication instruction to the multimedia encoding processing chip to instruct the multimedia encoding processing chip that it occurs. It is convenient for the multimedia encoding processing chip to perform corresponding fault processing after knowing the fault.
还有一些示例中,多媒体编码处理芯片在基于心跳检测结果确定心跳异常超时后,可以控制重启自身运行的多媒体服务端应用,而且,多媒体编码处理芯片还可以控制多媒体采集器初始化。In some other examples, the multimedia encoding processing chip can control to restart the multimedia server application running by itself after determining that the heartbeat is abnormally timed out based on the heartbeat detection result, and the multimedia encoding processing chip can also control the initialization of the multimedia collector.
本实施例提供的终端应用方法,因为提升了多媒体编码处理芯片与主控芯片间的数据传输速率,增强了数据传输的稳定性,有利于提升终端多媒体业务的业务效果。而且,该终端应用方法中,主控芯片可以基于心跳机制检测多媒体编码处理芯片的可达性与可用性,及时发现故障,并排除故障,提升了终端多媒体业务的可靠性。The terminal application method provided by this embodiment improves the data transmission rate between the multimedia encoding processing chip and the main control chip, enhances the stability of data transmission, and is beneficial to improving the service effect of the terminal multimedia service. Moreover, in the terminal application method, the main control chip can detect the reachability and availability of the multimedia encoding processing chip based on the heartbeat mechanism, find faults in time, and eliminate the faults, thereby improving the reliability of the terminal multimedia service.
实施例三Embodiment 3
为了使本领域技术人员能够对前述实施例中提供的终端与终端应用方法更清楚,本实施例将结合示例对前述方案做进一步阐述。In order to make the terminal and the terminal application method provided in the foregoing embodiment more clear to those skilled in the art, this embodiment will further describe the foregoing solution with reference to an example.
本实施例提供一种终端,该终端可以应用于各种远程的音视频通话场景中,例如商业会议、远程课堂等。在本实施例中,终端中的多媒体数据包括图像数据,因此,多媒体采集器可以包括摄像头传感器,对应地,多媒体编码处理芯片可以为ISP芯片。请结合图6,该终端60中包括摄像头传感器61、ISP芯片62、交换机芯片63以及主控芯片64,其中, 摄像头传感器61与ISP芯片62通信连接,ISP芯片62接收摄像头传感器61传输的图像数据,并进行编码处理得到编码图像数据。主控芯片64与ISP芯片62的通信,以及主控芯片64与外部设备的通信均通过交换机芯片63实现。在本实施例中,主控芯片64与ISP芯片62基于交换机芯片63在VLAN1中建立彼此之间的第一网络通信通道,另一方面主控芯片64基于交换机芯片63在其与外部设备之间建立VLAN0中的第二网络通信通道。应当明白的是,两个VLAN的编号“VLAN1”、“VLAN0”并不对本实施例方案的实现构成限制,此处仅仅是以这两个编号进行示例性说明,在本实施例的其他一些示例中,VLAN可以具有其他的编号。This embodiment provides a terminal, which can be applied to various remote audio and video call scenarios, such as business conferences, remote classes, and the like. In this embodiment, the multimedia data in the terminal includes image data, therefore, the multimedia collector may include a camera sensor, and correspondingly, the multimedia encoding processing chip may be an ISP chip. Please refer to FIG. 6 , the terminal 60 includes a camera sensor 61 , an ISP chip 62 , a switch chip 63 and a main control chip 64 , wherein the camera sensor 61 is communicatively connected to the ISP chip 62 , and the ISP chip 62 receives the image data transmitted by the camera sensor 61 . , and perform encoding processing to obtain encoded image data. The communication between the main control chip 64 and the ISP chip 62 and the communication between the main control chip 64 and the external devices are all realized through the switch chip 63 . In this embodiment, the main control chip 64 and the ISP chip 62 establish a first network communication channel with each other in VLAN1 based on the switch chip 63 , on the other hand, the main control chip 64 is based on the switch chip 63 between itself and the external device. A second network communication channel in VLAN0 is established. It should be understood that the numbers of the two VLANs "VLAN1" and "VLAN0" do not limit the implementation of the solution in this embodiment, and the two numbers are only used for exemplary description here. In some other examples of this embodiment , VLANs can have other numbers.
在本实施例中,ISP芯片62上运行的多媒体服务端应用为摄像头服务端应用,而主控芯片64上运行有与该摄像头服务端应用对应的摄像头客户端应用。In this embodiment, the multimedia server application running on the ISP chip 62 is a camera server application, and the main control chip 64 runs a camera client application corresponding to the camera server application.
在本实施例中,主控芯片64与ISP芯片62基于心跳机制实现故障检测,并且主控芯片64与ISP芯片62还可以在故障检测后根据检测结果自动对故障进行处理:主控芯片64可以基于心跳机制检测ISP芯片62的可达性,在基于心跳机制确定间的第一网络通信通道不可用后,主控芯片64可以控制交换机芯片63初始化,或者,主控芯片还可以进一步重启自身运行的摄像头客户端应用。另外,主控芯片64可以基于心跳机制检测ISP芯片62是否存在故障,若检测结果表征ISP芯片62存在异常,则主控芯片64可以向ISP芯片62发送故障指示指令,以指示ISP芯片62其发生了故障,便于ISP芯片62在知晓故障后进行对应的故障处理。还有一些示例中,ISP芯片62在基于心跳检测结果确定心跳异常超时后,可以控制重启自身运行的摄像头服务端应用,同时,ISP芯片62还可以控制摄像头传感器61初始化。In this embodiment, the main control chip 64 and the ISP chip 62 implement fault detection based on the heartbeat mechanism, and the main control chip 64 and the ISP chip 62 can also automatically process the fault according to the detection result after the fault detection: the main control chip 64 can The reachability of the ISP chip 62 is detected based on the heartbeat mechanism. After it is determined based on the heartbeat mechanism that the first network communication channel is unavailable, the main control chip 64 can control the switch chip 63 to initialize, or the main control chip can further restart its own operation. webcam client application. In addition, the main control chip 64 can detect whether the ISP chip 62 is faulty based on the heartbeat mechanism. If the detection result indicates that the ISP chip 62 is abnormal, the main control chip 64 can send a fault indication instruction to the ISP chip 62 to instruct the ISP chip 62 that it has occurred. It is convenient for the ISP chip 62 to perform corresponding fault processing after knowing the fault. In some other examples, the ISP chip 62 can control to restart the camera server application running by itself after determining that the heartbeat is abnormally timed out based on the heartbeat detection result, and at the same time, the ISP chip 62 can also control the initialization of the camera sensor 61 .
下面结合图7示出的流程图对图6中终端的应用方法进行阐述。The application method of the terminal in FIG. 6 will be described below with reference to the flowchart shown in FIG. 7 .
S702:终端上电开机。S702: The terminal is powered on and turned on.
S704:ISP芯片将其网络IP地址初始化为VLAN1对应的网段范围内的静态IP地址。S704: The ISP chip initializes its network IP address as a static IP address within the range of the network segment corresponding to VLAN1.
S706:ISP芯片初始化摄像头传感器并启动摄像头服务端应用。S706: The ISP chip initializes the camera sensor and starts the camera server application.
ISP芯片启动摄像头服务端应用后,摄像头客户端就可以访问由摄像头传感器采集并经ISP芯片进行编码处理的编码图像数据。After the ISP chip starts the camera server application, the camera client can access the encoded image data collected by the camera sensor and encoded by the ISP chip.
S708:主控芯片初始化交换机芯片,并利用VLAN技术对交换机芯片的网络接口进行划分。S708: The main control chip initializes the switch chip, and uses the VLAN technology to divide the network interface of the switch chip.
主控芯片可以将交换机芯片用于建立第一网络通信通道的网络接口划分到VLAN1,将交换机芯片用于建立第二网络通信通道的网络接口划分到VLAN0,也即将交换机芯片连接ISP芯片的网络接口以及交换机芯片连接主控芯片的网络接口划分到VLAN1,并将交换机芯片连接主控芯片的网络接口和主控芯片连接外网的网络接口划分到VLAN0。The main control chip can divide the network interface used by the switch chip to establish the first network communication channel to VLAN1, and the network interface used by the switch chip to establish the second network communication channel to VLAN0, that is, the switch chip is connected to the network interface of the ISP chip. And the network interface of the switch chip connected to the main control chip is divided into VLAN1, and the network interface of the switch chip connected to the main control chip and the network interface of the main control chip connected to the external network are divided into VLAN0.
S710:主控芯片虚拟两个虚拟网卡并对虚拟网卡进行IP配置。S710: The main control chip virtualizes two virtual network cards and performs IP configuration on the virtual network cards.
主控芯片可以将其中一个虚拟网卡绑定到VLAN0,并配置其IP获取方式为DHCP动态获取方式,使其通过交换机芯片从外部网络动态获取IP;主控芯片将另一个虚拟网卡绑定到VLAN1,并将其IP地址配置为VLAN1对应的网段内的静态IP地址。可以理解的是,两个虚拟网卡的IP获取方式不是固定的,二者均可以在静态配置方式与动态配置方式中任选。The main control chip can bind one of the virtual network cards to VLAN0, and configure its IP acquisition method as DHCP dynamic acquisition method, so that it can dynamically obtain IP from the external network through the switch chip; the main control chip binds the other virtual network card to VLAN1 , and configure its IP address as a static IP address in the network segment corresponding to VLAN1. It can be understood that the IP acquisition methods of the two virtual network cards are not fixed, and both can be selected from static configuration methods and dynamic configuration methods.
S712:主控芯片初始化业务软件并且启动摄像头客户端应用。S712: The main control chip initializes the service software and starts the camera client application.
S714:主控芯片与ISP芯片建立第一网络通信通道,摄像头客户端通过第一网络通信通道控制摄像头传感器。S714: The main control chip and the ISP chip establish a first network communication channel, and the camera client controls the camera sensor through the first network communication channel.
主控芯片通过ISP芯片在VLAN1中的IP地址与之建立第一网络通信通道,随后,主控芯片上的摄像头客户端通过向ISP芯片上的摄像头客户端发送指令,控制摄像头传感器。The main control chip establishes a first network communication channel with the ISP chip through the IP address in VLAN1, and then the camera client on the main control chip controls the camera sensor by sending instructions to the camera client on the ISP chip.
S716:主控芯片与ISP芯片启动心跳检测,并在检测到故障后进行故障排除。S716: The main control chip and the ISP chip start heartbeat detection, and perform troubleshooting after a fault is detected.
当发现摄像头传感器异常之后,主控芯片上的摄像头客户端会给ISP芯片上的摄像头服务端发送故障指示指令。如果网络不可达,则主控芯片重新初始化交换机芯片,还可以重启摄像头客户端应用。When the camera sensor is found to be abnormal, the camera client on the main control chip will send a fault indication instruction to the camera server on the ISP chip. If the network is unreachable, the main control chip reinitializes the switch chip, and can also restart the camera client application.
ISP芯片上的摄像头服务端与主控芯片上摄像头客户端建立连接之后,开启心跳机制,并监视摄像头客户端的指令请求,根据摄像头客户端的指令,完成与指令对应的工作。当心跳异常超时之后,ISP芯片重新初始化摄像头传感器及重启摄像头服务端应用。After the camera server on the ISP chip establishes a connection with the camera client on the main control chip, the heartbeat mechanism is turned on, and the instruction request of the camera client is monitored, and the work corresponding to the instruction is completed according to the instruction of the camera client. When the heartbeat expires abnormally, the ISP chip reinitializes the camera sensor and restarts the camera server application.
S718:主控芯片上摄像头客户端访问ISP芯片上摄像头服务端,获取编码图像数据,并将编码图像数据传递给业务软件进行处理。S718: The camera client on the main control chip accesses the camera server on the ISP chip, obtains encoded image data, and transmits the encoded image data to the service software for processing.
应当理解的是,图7中各步骤得到时序并不是唯一的,例如在其他一些示例中,S708-S712可以先于S704-S706执行,或者这两个过程可以并行。又例如,S718与S716之间也可以同时进行,或者先执行S718再执行S716。It should be understood that the sequence obtained by each step in FIG. 7 is not unique. For example, in some other examples, S708-S712 may be performed before S704-S706, or the two processes may be performed in parallel. For another example, S718 and S716 may be performed simultaneously, or S718 may be performed first and then S716 may be performed.
本实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、计算机程序模块或其他数据)的任何方法或技术中实施的易失性或非易失性、可移除或不可移除的介质。计算机可读存储介质包括但不限于RAM(Random Access Memory,随机存取存储器)、ROM(Read-Only Memory,只读存储器)、EEPROM(Electrically Erasable Programmable read only memory、带电可擦可编程只读存储器)、闪存或其他存储器技术、CD-ROM(Compact Disc Read-Only Memory,光盘只读存储器)、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。The present embodiments also provide a computer-readable storage medium embodied in any method or technology for storing information, such as computer-readable instructions, data structures, computer program modules, or other data Volatile or nonvolatile, removable or non-removable media. Computer-readable storage media include, but are not limited to, RAM (Random Access Memory, random access memory), ROM (Read-Only Memory, read-only memory), EEPROM (Electrically Erasable Programmable read only memory, electrically erasable programmable read only memory) ), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, Or any other medium that can be used to store the desired information and that can be accessed by a computer.
该计算机可读存储介质中可以存储有一个或多个可供一个或多个处理器读取、编译并 执行的计算机程序,在本实施例中,该计算机可读存储介质可以存储有终端应用程序,该终端应用程序可供一个或多个处理器执行实现前述实施例介绍的任意一种终端应用方法的流程。One or more computer programs that can be read, compiled and executed by one or more processors may be stored in the computer-readable storage medium, and in this embodiment, the computer-readable storage medium may be stored with terminal application programs , the terminal application program can be used by one or more processors to execute the process of implementing any one of the terminal application methods described in the foregoing embodiments.
本实施例通过将摄像头和终端集成在一起,并在摄像头与终端主控间设置交换机芯片,使摄像头侧的ISP芯片与主控芯片之间使用网络通信,提升了二者间数据传输的速率及传输稳定性。另外,通过交换芯片的VLAN技术,将摄像头侧与外部网络隔离,保障摄像头侧的数据安全。而且,主控芯片与ISP芯片间通过TCP建立有效的心跳机制实现故障检测,可以保证终端业务能够长期稳定运行。In this embodiment, the camera and the terminal are integrated together, and a switch chip is arranged between the camera and the main control of the terminal, so that the ISP chip on the camera side and the main control chip use network communication, which improves the speed and speed of data transmission between the two. Transmission stability. In addition, through the VLAN technology of the switching chip, the camera side is isolated from the external network to ensure the data security of the camera side. Moreover, an effective heartbeat mechanism is established between the main control chip and the ISP chip to implement fault detection through TCP, which can ensure long-term stable operation of terminal services.
本公开实施例提供的终端及终端应用方法,终端包括多媒体采集器、多媒体编码处理芯片、交换机芯片以及主控芯片,其中,多媒体编码处理芯片与主控芯片通过交换机芯片建立网络通信通道,实现通信连接。多媒体采集器用于采集多媒体数据,并将采集的多媒体数据输出至多媒体编码处理芯片,由多媒体编码处理芯片对多媒体数据进行编码处理得到编码多媒体数据,多媒体编码处理芯片还用于将编码多媒体数据通过网络通信通道传输给主控芯片,以供主控芯片根据接收到的编码多媒体数据与外部设备实现多媒体业务。在本公开实施例中,因为多媒体编码处理芯片与主控芯片之间基于交换机芯片通过网络连接,相较于相关技术中通过USB连接线或HDMI连接线连接的方案,多媒体编码处理芯片与所述主控芯片间基于交换机芯片所建立的网络通信通道具有更高的传输速率,更稳定的传输性能,有利于提升终端多媒体业务的业务效果。而且,因为本公开实施例中,将实现多媒体数据采集的多媒体采集器、实现多媒体数据编码的多媒体编码处理芯片、交换机芯片以及主控芯片集成在一个终端设备中,这样可以降低多媒体会议产品的成本。In the terminal and the terminal application method provided by the embodiments of the present disclosure, the terminal includes a multimedia collector, a multimedia encoding processing chip, a switch chip, and a main control chip, wherein the multimedia encoding processing chip and the main control chip establish a network communication channel through the switch chip to realize communication. connect. The multimedia collector is used to collect multimedia data and output the collected multimedia data to the multimedia encoding processing chip. The multimedia encoding processing chip encodes and processes the multimedia data to obtain encoded multimedia data. The multimedia encoding processing chip is also used to pass the encoded multimedia data through the network. The communication channel is transmitted to the main control chip, so that the main control chip can realize multimedia services with external devices according to the received encoded multimedia data. In the embodiment of the present disclosure, because the multimedia encoding processing chip and the main control chip are connected through a network based on a switch chip, compared with the solution of connecting through a USB cable or an HDMI cable in the related art, the multimedia encoding processing chip is connected to the above-mentioned The network communication channel established based on the switch chip between the main control chips has a higher transmission rate and a more stable transmission performance, which is beneficial to improve the service effect of the terminal multimedia service. Moreover, because in the embodiments of the present disclosure, a multimedia collector for realizing multimedia data collection, a multimedia encoding processing chip for realizing multimedia data encoding, a switch chip, and a main control chip are integrated into one terminal device, which can reduce the cost of multimedia conference products. .
可见,本领域的技术人员应该明白,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件(可以用计算装置可执行的计算机程序代码来实现)、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。It can be seen that those skilled in the art should understand that all or some of the steps in the methods disclosed above, the functional modules/units in the system, and the device can be implemented as software (which can be implemented by computer program codes executable by a computing device). ), firmware, hardware, and their appropriate combination. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical components Components execute cooperatively. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit .
此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、计算机程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。所以,本公开不限制于任何特定的硬件和软件结合。In addition, communication media typically embodies computer readable instructions, data structures, computer program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery, as is well known to those of ordinary skill in the art medium. Therefore, the present disclosure is not limited to any particular combination of hardware and software.
以上内容是结合具体的实施方式对本公开实施例所作的进一步详细说明,不能认定本公开的具体实施只局限于这些说明。对于本公开所属技术领域的普通技术人员来说,在不 脱离本公开构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本公开的保护范围。The above content is a further detailed description of the embodiments of the present disclosure in conjunction with specific implementations, and it cannot be considered that the specific implementation of the present disclosure is limited to these descriptions. For those of ordinary skill in the technical field to which the present disclosure pertains, without departing from the concept of the present disclosure, some simple deductions or substitutions can also be made, all of which should be regarded as belonging to the protection scope of the present disclosure.

Claims (10)

  1. 一种终端,包括多媒体采集器、多媒体编码处理芯片、交换机芯片以及主控芯片;A terminal includes a multimedia collector, a multimedia encoding processing chip, a switch chip and a main control chip;
    所述多媒体编码处理芯片与所述主控芯片通过所述交换机芯片建立网络通信通道,实现通信连接;所述多媒体采集器,用于采集多媒体数据,并将采集的多媒体数据输出至所述多媒体编码处理芯片;The multimedia encoding processing chip and the main control chip establish a network communication channel through the switch chip to realize communication connection; the multimedia collector is used for collecting multimedia data and outputting the collected multimedia data to the multimedia encoding processing chip;
    所述多媒体编码处理芯片,用于对所述多媒体数据进行编码处理,得到编码多媒体数据,并将所述编码多媒体数据通过所述网络通信通道传输给所述主控芯片;The multimedia encoding processing chip is used for encoding and processing the multimedia data to obtain encoded multimedia data, and transmitting the encoded multimedia data to the main control chip through the network communication channel;
    所述主控芯片用于根据接收到的所述编码多媒体数据与外部设备实现多媒体业务。The main control chip is used for implementing multimedia services with an external device according to the received encoded multimedia data.
  2. 如权利要求1所述的终端,其中,所述多媒体编码处理芯片与所述主控芯片通过所述交换机芯片建立第一网络通信通道,所述主控芯片与所述外部设备通过第二网络通信通道实现通信,所述第一网络通信通道与所述第二网络通信通道相互隔离。The terminal according to claim 1, wherein the multimedia encoding processing chip and the main control chip establish a first network communication channel through the switch chip, and the main control chip communicates with the external device through a second network A channel implements communication, and the first network communication channel and the second network communication channel are isolated from each other.
  3. 如权利要求2所述的终端,其中,所述主控芯片与所述外部设备通过所述交换机芯片建立所述第二网络通信通道,所述第一网络通信通道与所述第二网络通信通道分别处于不同的虚拟局域网中。The terminal according to claim 2, wherein the main control chip and the external device establish the second network communication channel through the switch chip, the first network communication channel and the second network communication channel They are in different virtual local area networks.
  4. 如权利要求3所述的终端,其中,所述主控芯片用于配置第一虚拟网卡与第二虚拟网卡,所述第一虚拟网卡用于基于静态配置的第一通信地址建立所述第一网络通信通道,所述第二虚拟网卡用于基于动态分配的第二通信地址建立所述第二网络通信通道。The terminal according to claim 3, wherein the main control chip is configured to configure a first virtual network card and a second virtual network card, and the first virtual network card is configured to establish the first virtual network card based on a statically configured first communication address A network communication channel, where the second virtual network card is configured to establish the second network communication channel based on the dynamically allocated second communication address.
  5. 如权利要求2所述的终端,其中,所述终端还包括网络交换芯片,所述主控芯片与所述外部设备通过所述网络交换芯片建立所述第二网络通信通道。The terminal according to claim 2, wherein the terminal further comprises a network switch chip, and the main control chip and the external device establish the second network communication channel through the network switch chip.
  6. 如权利要求1-5任一项所述的终端,其中,所述多媒体数据包括图像数据,所述多媒体采集器包括摄像头传感器,所述多媒体编码处理芯片包括图像信号处理ISP芯片。The terminal according to any one of claims 1-5, wherein the multimedia data includes image data, the multimedia collector includes a camera sensor, and the multimedia encoding processing chip includes an image signal processing ISP chip.
  7. 如权利要求1-5任一项所述的终端,其中,所述主控芯片与所述多媒体编码处理芯片基于心跳机制实现故障检测,并根据检测结果进行故障处理。The terminal according to any one of claims 1-5, wherein the main control chip and the multimedia encoding processing chip implement fault detection based on a heartbeat mechanism, and perform fault processing according to the detection result.
  8. 如权利要求7所述的终端,其中,所述主控芯片上运行有多媒体客户端应用,所述多媒体编码处理芯片上运行有多媒体服务端应用,所述多媒体客户端应用与所述多媒体服务端应用相互配合实现所述主控芯片与所述多媒体编码处理芯片的交互;所述主控芯片与所述多媒体编码处理芯片基于所述心跳机制实现故障检测,并根据所述检测结果进行故障处理的方式包括以下几种中的至少一种:The terminal according to claim 7, wherein a multimedia client application runs on the main control chip, a multimedia server application runs on the multimedia encoding processing chip, and the multimedia client application is connected to the multimedia server. The application cooperates with each other to realize the interaction between the main control chip and the multimedia encoding processing chip; the main control chip and the multimedia encoding processing chip realize fault detection based on the heartbeat mechanism, and perform fault processing according to the detection result. The method includes at least one of the following:
    所述主控芯片基于所述心跳机制检测网络通信通道的可用性,并在所述网络通信通道不可用的情况下,控制所述交换机芯片初始化;The main control chip detects the availability of the network communication channel based on the heartbeat mechanism, and controls the switch chip to initialize when the network communication channel is unavailable;
    所述主控芯片基于所述心跳机制检测所述多媒体编码处理芯片的可用性,并在所述多媒体编码处理芯片异常的情况下,向所述多媒体编码处理芯片发送故障指示指令;The main control chip detects the availability of the multimedia encoding processing chip based on the heartbeat mechanism, and sends a fault indication instruction to the multimedia encoding processing chip when the multimedia encoding processing chip is abnormal;
    所述多媒体编码处理芯片在心跳异常超时的情况下,重启所述多媒体服务端应用,并控制所述多媒体采集器初始化。The multimedia encoding processing chip restarts the multimedia server application and controls the initialization of the multimedia collector when the heartbeat is abnormally timed out.
  9. 如权利要求1-5任一项所述的终端,其中,所述多媒体编码处理芯片的通信地址通过静态配置的方式获取。The terminal according to any one of claims 1-5, wherein the communication address of the multimedia encoding processing chip is obtained by static configuration.
  10. 一种终端应用方法,应用于如权利要求1-9任一项所述的终端,所述终端应用方法包括:A terminal application method, applied to the terminal according to any one of claims 1-9, the terminal application method comprising:
    所述主控芯片通过所述交换机芯片与所述多媒体编码处理芯片建立网络通信通道;The main control chip establishes a network communication channel with the multimedia encoding processing chip through the switch chip;
    所述主控芯片通过所述网络通信通道接收所述多媒体编码处理芯片传输的编码多媒体数据,所述编码多媒体数据由所述多媒体编码处理芯片对所述多媒体采集器所采集的多媒体数据进行编码处理得到;The main control chip receives the encoded multimedia data transmitted by the multimedia encoding and processing chip through the network communication channel, and the encoded multimedia data is encoded and processed by the multimedia encoding and processing chip on the multimedia data collected by the multimedia collector. get;
    所述主控芯片根据所述编码多媒体数据与所述外部设备实现多媒体业务。The main control chip implements a multimedia service with the external device according to the encoded multimedia data.
PCT/CN2021/136437 2020-12-31 2021-12-08 Terminal and terminal application method WO2022143059A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011621594.X 2020-12-31
CN202011621594.XA CN114697600A (en) 2020-12-31 2020-12-31 Terminal and terminal application method

Publications (1)

Publication Number Publication Date
WO2022143059A1 true WO2022143059A1 (en) 2022-07-07

Family

ID=82134700

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/136437 WO2022143059A1 (en) 2020-12-31 2021-12-08 Terminal and terminal application method

Country Status (2)

Country Link
CN (1) CN114697600A (en)
WO (1) WO2022143059A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101646057A (en) * 2009-09-07 2010-02-10 深圳华为通信技术有限公司 Remote-presence conference control device, method and remote-presence conference system
WO2013175717A1 (en) * 2012-05-22 2013-11-28 日本電気株式会社 Videoconference system
CN204887276U (en) * 2015-09-07 2015-12-16 中科融通物联科技无锡有限公司 Prison criminal follows card and corrects psychological consultation terminal
CN106789099A (en) * 2016-11-16 2017-05-31 深圳市捷视飞通科技股份有限公司 High-speed isolated network method and terminal based on PCIE
CN110224917A (en) * 2018-03-02 2019-09-10 杭州海康威视数字技术股份有限公司 Data transmission method, apparatus and system, server
CN110248143A (en) * 2019-06-17 2019-09-17 周鹤柱 A kind of multifunctional unit meeting management system
CN110475089A (en) * 2018-05-10 2019-11-19 视联动力信息技术股份有限公司 A kind of processing method of multi-medium data and view networked terminals

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101646057A (en) * 2009-09-07 2010-02-10 深圳华为通信技术有限公司 Remote-presence conference control device, method and remote-presence conference system
WO2013175717A1 (en) * 2012-05-22 2013-11-28 日本電気株式会社 Videoconference system
CN204887276U (en) * 2015-09-07 2015-12-16 中科融通物联科技无锡有限公司 Prison criminal follows card and corrects psychological consultation terminal
CN106789099A (en) * 2016-11-16 2017-05-31 深圳市捷视飞通科技股份有限公司 High-speed isolated network method and terminal based on PCIE
CN110224917A (en) * 2018-03-02 2019-09-10 杭州海康威视数字技术股份有限公司 Data transmission method, apparatus and system, server
CN110475089A (en) * 2018-05-10 2019-11-19 视联动力信息技术股份有限公司 A kind of processing method of multi-medium data and view networked terminals
CN110248143A (en) * 2019-06-17 2019-09-17 周鹤柱 A kind of multifunctional unit meeting management system

Also Published As

Publication number Publication date
CN114697600A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
US10439862B2 (en) Communication terminal with multiple virtual network interfaces
US9141420B2 (en) Overload control in a cloud computing environment
US9219640B2 (en) Performing failover in a redundancy group
US11516177B1 (en) Detecting and remediating non-responsive customer premise equipment
US7518983B2 (en) Proxy response apparatus
US8078721B2 (en) Dynamic host configuration protocol (DHCP) initialization responsive to a loss of network layer connectivity
US7971099B2 (en) Method for enabling faster recovery of client applications in the event of server failure
CN103731758B (en) A kind of video stream transmission method and device
CN107733808B (en) Flow transmission method and device
WO2010037318A1 (en) Data transmission system and data transmission method
US20210011813A1 (en) Information Backup Method and Related Device
CN112532452B (en) Method, device, equipment and storage medium for switching main server and standby server of communication terminal
CN112398689B (en) Network recovery method and device, storage medium and electronic equipment
JP2012083891A (en) Failover system, storage processor, and failover control method
WO2017045106A1 (en) Communication method and device based on optical network system
WO2018024200A1 (en) Virtual desktop multicast control method, terminal, proxy terminal, and cloud desktop server
WO2022143059A1 (en) Terminal and terminal application method
WO2021047513A1 (en) Video session communication method and apparatus, and a computer readable storage medium
US10375175B2 (en) Method and apparatus for terminal application accessing NAS
US10353585B2 (en) Methods for managing array LUNs in a storage network with a multi-path configuration and devices thereof
CN110474807B (en) Log processing method and device
CN114500632A (en) Communication method and communication device
CN111193624A (en) Data packet transmission method and device, terminal equipment and storage medium
US20190334935A1 (en) Protocol to Detect a Foreign Device Connected Between Network Modules
CN117376662B (en) Cluster type video safety boundary exchange method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21913800

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08-11-2023)