CN114244844A - Multimedia data transmission method, terminal device and storage medium - Google Patents

Multimedia data transmission method, terminal device and storage medium Download PDF

Info

Publication number
CN114244844A
CN114244844A CN202111396598.7A CN202111396598A CN114244844A CN 114244844 A CN114244844 A CN 114244844A CN 202111396598 A CN202111396598 A CN 202111396598A CN 114244844 A CN114244844 A CN 114244844A
Authority
CN
China
Prior art keywords
node
emq
multimedia data
data
cluster
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202111396598.7A
Other languages
Chinese (zh)
Other versions
CN114244844B (en
Inventor
方曦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ubtech Robotics Corp
Original Assignee
Ubtech Robotics Corp
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 Ubtech Robotics Corp filed Critical Ubtech Robotics Corp
Priority to CN202111396598.7A priority Critical patent/CN114244844B/en
Publication of CN114244844A publication Critical patent/CN114244844A/en
Application granted granted Critical
Publication of CN114244844B publication Critical patent/CN114244844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Abstract

The application is applicable to the technical field of data transmission, and provides a multimedia data transmission method, terminal equipment and a storage medium. In the embodiment of the application, the data acquisition end and the client are respectively connected to different nodes of the EMQ cluster, and the data are published and subscribed through the nodes connected with each other, so that data can be transmitted between the data acquisition end and the client through the EMQ cluster, data stream processing is supported, overload is not easily caused under the condition of large data volume, and effective transmission of the data can be guaranteed.

Description

Multimedia data transmission method, terminal device and storage medium
Technical Field
The present application belongs to the technical field of data transmission, and in particular, to a multimedia data transmission method, a terminal device, and a storage medium.
Background
Data transmission technology refers to a method and a device for data transmission between a data source and a data sink via one or more data channels or links, which collectively follow a communication protocol. A typical Data transmission system is composed of a host computer (host) or a Data Terminal Equipment (DTE), a Data Circuit Terminal Equipment (DCE), and a Data transmission channel (dedicated line or switched network). The DTE converts the text, image or language information to be transmitted into electric signal via man-machine interface, which is converted by electromechanical, photoelectric or acoustoelectric conversion, and the signal is converted into signal suitable for channel transmission via DCE and transmitted to data transmission channel. The DCE of the receiving end restores the received signals and inputs the restored signals into a computer, and finally the restored signals are restored into characters, images or language information. At present, due to weak performance and insufficient computing power, processing chips carried by some devices usually do not support processing of data streams or are easily overloaded under the condition of large data volume, and effective transmission of data cannot be guaranteed.
Disclosure of Invention
The embodiment of the application provides a multimedia data transmission method, terminal equipment and a storage medium, and aims to solve the problems that processing chips carried by some existing equipment usually do not support data stream processing or are easy to overload under the condition of large data volume due to weak performance and insufficient computing power, and effective transmission of data cannot be guaranteed.
A first aspect of an embodiment of the present application provides a multimedia data transmission method, which is applied to a data acquisition end, and the method includes:
a first node connected to an EMQ cluster;
receiving a topic through the first node subscription instruction;
receiving a data transmission instruction sent by a second node of the EMQ cluster through the first node, wherein the second node is connected with a client;
acquiring corresponding multimedia data according to the data transmission instruction;
sending, by the first node, the multimedia data to the second node.
A second aspect of the embodiments of the present application provides a multimedia data transmission method, which is applied to a client, and the method includes:
a second node connected to the EMQ cluster;
subscribing to a data reception topic by the second node;
sending a data transmission instruction to a first node of the EMQ cluster through the second node, wherein the first node is connected with a data acquisition end;
receiving, by the second node, multimedia data sent by the first node;
and decoding and playing the multimedia data.
A third aspect of the embodiments of the present application provides a data acquisition end, including:
a connection unit for connecting to a first node of the EMQ cluster;
the subscription unit is used for subscribing the instruction to receive the theme through the first node;
a receiving unit, configured to receive, by using the first node, a data transmission instruction sent by a second node of the EMQ cluster, where the second node is connected to a client;
the acquisition unit is used for acquiring corresponding multimedia data according to the data transmission instruction;
a sending unit, configured to send the multimedia data to the second node through the first node.
A fourth aspect of the embodiments of the present application provides a client, including:
a connection unit for connecting to a second node of the EMQ cluster;
the subscription unit is used for subscribing data receiving subjects through the second node;
the transmitting unit is used for transmitting a data transmission instruction to a first node of the EMQ cluster through the second node, and the first node is connected with a data acquisition end;
a receiving unit, configured to receive, by the second node, the multimedia data sent by the first node;
and the playing unit is used for decoding and playing the multimedia data.
A fifth aspect of an embodiment of the present application provides a terminal device, which includes a communication module, a processor, a memory, and a computer program stored in the memory and executable on the processor;
when the terminal device is a data acquisition terminal, the processor executes the computer program to implement the multimedia data transmission method provided by the first aspect of the embodiment of the application;
when the terminal device is a client, the processor executes the computer program to implement the steps of the multimedia data transmission method provided by the second aspect of the embodiment of the present application.
A sixth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the multimedia data transmission method provided in the first or second aspect of embodiments of the present application.
The multimedia data transmission method provided by the first aspect of the embodiment of the application is applied to a data acquisition end and is connected to a first node of an EMQ cluster; receiving a theme through a first node subscription instruction; receiving a data transmission instruction sent by a second node of the EMQ cluster through the first node, wherein the second node is connected with the client; acquiring corresponding multimedia data according to the data transmission instruction; sending the multimedia data to a second node through a first node; data can be transmitted between the data acquisition end and the client through the EMQ cluster, data stream processing is supported, overload is not prone to occurring under the condition of large data volume, and effective transmission of data can be guaranteed.
The multimedia data transmission method provided by the second aspect of the embodiment of the application is applied to the client and is connected to the second node of the EMQ cluster; subscribing a data receiving theme through a second node; sending a data transmission instruction to a first node of the EMQ cluster through a second node, wherein the first node is connected with a data acquisition end; receiving multimedia data sent by a first node through a second node; decoding and playing the multimedia data; the data can be transmitted between the client and the data acquisition terminal through the EMQ cluster, data stream processing is supported, overload is not prone to occurring under the condition of large data volume, and effective transmission of the data can be guaranteed.
It is to be understood that, for the beneficial effects of the third aspect to the sixth aspect, reference may be made to the description of the first aspect or the second aspect, and details are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a multimedia data transmission system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a first multimedia data transmission method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a second multimedia data transmission method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data acquisition end provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a client provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
As shown in fig. 1, an embodiment of the present application provides a multimedia data transmission system, including an EMQ (Erlang/Enterprise/Elastic MQTT Broker) message server 1, at least one data acquisition end 2, and at least one client 3, where the EMQ message server 1 is deployed with an EMQ cluster, and the EMQ cluster includes a plurality of nodes 4 connected to each other;
the working principle of the multimedia data transmission system is as follows:
the data acquisition end 2 is connected to a first node of the EMQ cluster, and the client end 3 is connected to a second node of the EMQ cluster;
the data acquisition terminal 2 subscribes a data receiving theme through a first node subscription instruction, and the client terminal 3 subscribes a data receiving theme through a second node subscription instruction;
the client 3 sends a data transmission instruction to the first node through the second node;
the data acquisition end 2 receives a data transmission instruction sent by a second node through a first node;
the data acquisition terminal 2 acquires corresponding multimedia data according to the data transmission instruction;
the data acquisition terminal 2 sends the multimedia data to a second node through the first node;
the client 3 receives the multimedia data sent by the first node through the second node;
the client 3 decodes and plays the multimedia data.
In application, the number of data acquisition ends and clients included in the multimedia data transmission system can be set according to actual needs, for example, one data acquisition end and one client, one data acquisition end and a plurality of clients, a plurality of data acquisition ends and one client, a plurality of data acquisition ends and a plurality of clients; the data collected by each data collection end can be received by all the clients, and the instruction sent by each client can be received by all the data collection ends.
Fig. 1 shows an exemplary data collection site 2 and a plurality of clients 3.
In an application, the multimedia data may include at least one of image data and audio data; the image data may be picture data or video data, the audio data may specifically be an audio stream, and the video data may specifically be a video stream.
In application, the data acquisition end may be any terminal equipped with a data processing chip and capable of acquiring multimedia data and sending the multimedia data to the EMQ cluster, for example, according to different types of the acquired multimedia data, the data acquisition end may be an image acquisition device, an audio acquisition device or a combination of the two, and specifically may be a litter box or a monitoring device equipped with a camera using a K210 board as the data processing chip.
In application, the data acquisition end can acquire multimedia data in real time, and correspondingly, the client can play the multimedia data in real time by using a universal live broadcast mode. When the data acquisition end is cat litter box or supervisory equipment, the image in the surrounding environment can be gathered in real time to the data acquisition end to through EMQ cluster transmission to the customer end with the mode of video stream, the customer end can adopt the live broadcast mode to broadcast the video stream.
In an application, the client may be any terminal capable of receiving, decoding and playing multimedia data from the EMQ cluster, for example, a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile Personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like.
In application, the basic function of an EMQ cluster is to forward and deliver messages published by message publishers to message subscribers connected to various nodes. The nodes can communicate and address through the node names, after all the nodes form an EMQ cluster, each node can establish a connection based on a Transmission Control Protocol (TCP) with other nodes, and when a new node joins the EMQ cluster, the new node can also establish a connection based on TCP with other nodes in the cluster, and finally a mesh structure is formed.
In application, the connection between the data acquisition end and the first node and the connection between the client end and the second node may be heartbeat connections.
In one embodiment, the data acquisition end is specifically configured to log in an EMQ message server by using an account and a password based on a message queue telemetry transport protocol (mqtt), and establish a long connection with a first node of the EMQ cluster;
the client is specifically configured to log in to the EMQ message server using an account and a password based on a message queue telemetry transport protocol, establishing a long connection with a second node of the EMQ cluster.
In application, the EMQ message server is in long connection based on an mqtt protocol, and the data acquisition end and the client end can log in the EMQ message server only by inputting corresponding account numbers and passwords, so that long connection with nodes in an EMQ cluster is realized.
In one embodiment, the data acquisition terminal is specifically configured to log in a cloud server to acquire a temporary token before connecting to a first node of the EMQ cluster, and call a login interface of an EMQ message server through the cloud server to acquire an account number and a password and channel information of a topic to be subscribed or published;
the client is specifically configured to log in the cloud server to obtain the temporary token before connecting to the second node of the EMQ cluster, and call a login interface of the EMQ message server through the cloud server to obtain an account number and a password and channel information of a topic to be subscribed or published.
In application, in order to ensure the security of data and facilitate management of the association relationship between the data acquisition end and the client, the data acquisition end and the client need to perform account registration and login operations on a cloud platform operated by a cloud server to acquire a temporary and effective authority token of the client. After the data acquisition end and the client end log in through the cloud platform, a login interface of the EMQ message server is called to acquire corresponding account information (namely an account and a password) and channel information (namely communication addresses of the first node and the second node) of a topic (topic) needing to be subscribed or published. Because the data volume of the multimedia data is large and temporary, and needs to be processed separately from other types of messages, the subscription or publication topic of the multimedia data transmission channel can be obtained through an independent functional interface, that is, the first node is only used for subscribing the instruction receiving topic and publishing the multimedia data, and the second node is only used for subscribing the data receiving topic and publishing the transmission instruction of the transmission data. The cloud server and the EMQ message server may be the same server, or the cloud server includes a plurality of servers in a distributed manner, and the EMQ message server is one of the plurality of servers.
According to the multimedia data transmission system provided by the embodiment of the application, the data acquisition end and the client are respectively connected to different nodes of the EMQ cluster, and the data are published and subscribed through the nodes connected respectively, so that the data can be transmitted between the data acquisition end and the client through the EMQ cluster, the data stream processing is supported, the overload is not easily caused under the condition of large data volume, and the effective transmission of the data can be guaranteed.
As shown in fig. 2, the present embodiment provides a first multimedia data transmission method, including the following steps S101 to S105:
step S101, connecting to a first node of an EMQ cluster;
step S102, receiving a theme through a first node subscription instruction;
step S103, receiving a data transmission instruction sent by a second node of the EMQ cluster through the first node, wherein the second node is connected with a client;
step S104, acquiring corresponding multimedia data according to the data transmission instruction;
and step S105, the multimedia data is sent to the second node through the first node.
In application, a data acquisition end is connected to a first node of an EMQ cluster, and then a topic is received through a first node subscription instruction; when receiving a data transmission instruction sent by a client through a second node of the EMQ cluster, the first node sends the data transmission instruction to the data acquisition end; the data acquisition end acquires multimedia data required by the client according to the data transmission instruction and then sends the multimedia data to the first node; the first node sends the multimedia data to the second node; the second node sends the multimedia data to the client; therefore, data transmission between the data acquisition end and the client is realized.
In one embodiment, step S101 includes:
based on a message queue telemetry transmission protocol, logging in an EMQ message server by using an account and a password, and establishing long connection with a first node of an EMQ cluster.
In application, the EMQ message server is in long connection based on an mqtt protocol, the data acquisition end can log in the EMQ message server only by inputting a corresponding account and a corresponding password, long connection with the first node is achieved, and connection between the data acquisition end and the first node can be heartbeat connection.
In one embodiment, before step S101, the method includes:
logging in a cloud server to obtain a temporary token, and calling a login interface of an EMQ message server through the cloud server to obtain an account number, a password and channel information of a topic needing to be subscribed or published.
In application, in order to ensure the security of data, a data acquisition end needs to perform account registration and login operations on a cloud platform operated by a cloud server to acquire a temporary and effective authority token of the data acquisition end. After logging in through the cloud platform, the data acquisition terminal calls a login interface of the EMQ message server to acquire corresponding account information (namely an account and a password) and channel information (namely communication addresses of the first node and the second node) of a topic which needs to be subscribed or published.
The first multimedia data transmission method provided by the embodiment of the application is applied to a data acquisition end, and can be executed by a processor of the data acquisition end when a corresponding computer program is run, wherein the data acquisition end is connected to a first node of an EMQ cluster; receiving a theme through a first node subscription instruction; receiving a data transmission instruction sent by a second node of the EMQ cluster through the first node, wherein the second node is connected with the client; acquiring corresponding multimedia data according to the data transmission instruction; multimedia data are sent to the second node through the first node, so that data can be transmitted between the data acquisition end and the client through the EMQ cluster, data stream processing is supported, overload is not prone to occurring under the condition of large data volume, and effective transmission of data can be guaranteed.
As shown in fig. 3, the present embodiment provides a second multimedia data transmission method, including the following steps S201 to S205:
step S201, connecting to a second node of the EMQ cluster;
step S202, subscribing a data receiving theme through a second node;
step S203, sending a data transmission instruction to a first node of the EMQ cluster through a second node, wherein the first node is connected with a data acquisition end;
step S204, receiving multimedia data sent by the first node through the second node;
and S205, decoding and playing the multimedia data.
In application, a client is connected to a second node of the EMQ cluster firstly, and then a data receiving theme is ordered through the second node; the second node sends a data transmission instruction to a data acquisition end connected with the first node of the EMQ cluster; the second node receives the multimedia data sent by the data acquisition end through the first node and sends the multimedia data to the client; the client decodes and plays the multimedia data; therefore, data transmission between the client and the data acquisition terminal is realized.
In one embodiment, step S201 includes:
and logging in the EMQ message server by using an account and a password based on a message queue telemetry transmission protocol, and establishing long connection with a second node of the EMQ cluster.
In application, the EMQ message server is in long connection based on an mqtt protocol, the client needs to input a corresponding account and a corresponding password to log in the EMQ message server to realize long connection with the second node, and the connection between the client and the second node can be heartbeat connection.
In one embodiment, before step S200, the method includes:
logging in a cloud server to obtain a temporary token, and calling a login interface of an EMQ message server through the cloud server to obtain an account number, a password and channel information of a topic needing to be subscribed or published.
In application, in order to ensure the security of data, a client needs to perform account registration and login operations on a cloud platform operated by a cloud server to obtain a temporary and valid authority token of the client. After the client logs in through the cloud platform, a login interface of the EMQ message server is called to acquire corresponding account information (namely an account and a password) and channel information (namely communication addresses of the first node and the second node) of a topic which needs to be subscribed or published.
The second multimedia data transmission method provided by the embodiment of the application is applied to a client, and can be executed by a processor of the client when running a corresponding computer program, and the client is connected to a second node of an EMQ cluster; subscribing a data receiving theme through a second node; sending a data transmission instruction to a first node of the EMQ cluster through a second node, wherein the first node is connected with a data acquisition end; receiving multimedia data sent by a first node through a second node; the multimedia data are played, so that data can be transmitted between the client and the data acquisition terminal through the EMQ cluster, data stream processing is supported, overload is not prone to occurring under the condition of large data volume, and effective transmission of the data can be guaranteed.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
As shown in fig. 4, an embodiment of the present application further provides a data acquisition end 100, configured to execute the steps in the first multimedia data transmission method, where the data acquisition end 100 includes:
a connection unit 101 for connecting to a first node of an EMQ cluster;
a subscription unit 102, configured to subscribe to an instruction to receive a topic through a first node;
a receiving unit 103, configured to receive, by a first node, a data transmission instruction sent by a second node of the EMQ cluster, where the second node is connected to a client;
the acquisition unit 104 is used for acquiring corresponding multimedia data according to the data transmission instruction;
a sending unit 105, configured to send the multimedia data to the second node through the first node.
In one implementation, the connection unit is specifically configured to:
logging in a cloud server to obtain a temporary token, and calling a login interface of an EMQ message server through the cloud server to obtain an account and a password;
based on a message queue telemetry transmission protocol, logging in an EMQ message server by using an account and a password, and establishing long connection with a first node of an EMQ cluster.
As shown in fig. 5, an embodiment of the present application further provides a client 200, configured to execute the steps in the second multimedia data transmission method, where the client 200 includes:
a connection unit 201 for connecting to a second node of the EMQ cluster;
a subscribing unit 202, configured to subscribe to a data receiving topic through a second node;
the sending unit 203 is configured to send a data transmission instruction to a first node of the EMQ cluster through a second node, where the first node is connected to the data acquisition end;
a receiving unit 204, configured to receive, by a second node, multimedia data sent by a first node;
a playing unit 205, for decoding and playing the multimedia data.
In one implementation, the connection unit is specifically configured to:
logging in a cloud server to obtain a temporary token, and calling a login interface of an EMQ message server through the cloud server to obtain an account and a password;
and logging in the EMQ message server by using an account and a password based on a message queue telemetry transmission protocol, and establishing long connection with a second node of the EMQ cluster.
In application, each unit in the data acquisition end and the client may be a software program unit, may also be implemented by different logic circuits integrated in the processor or an independent physical component connected with the processor, and may also be implemented by a plurality of distributed processors.
As shown in fig. 6, an embodiment of the present application further provides a terminal device 300, including: a communication module 301, at least one processor 302 (only one processor is shown in fig. 6), a memory 303, and a computer program 304 stored in the memory 303 and executable on the at least one processor 302;
when the terminal device 300 is a data acquisition end, the processor 302 executes the computer program 304 to implement the steps in the first multimedia data transmission method embodiment;
when the terminal device 300 is a client, the steps in the second embodiment of the multimedia data transmission method are implemented when the processor 302 executes the computer program 304.
In application, the terminal device may include, but is not limited to, a communication module, a processor and a memory, fig. 6 is only an example of the terminal device, and does not constitute a limitation to the terminal device, and may include more or less components than those shown in the drawings, or may combine some components, or different components, such as an input and output device, a network access device, and the like, and may further include a camera, an audio capturing/playing device, a display screen, and the like.
In an Application, the Processor may be a Central Processing Unit (CPU), and the Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, for example, a K210 board.
In some embodiments, the storage may be an internal storage unit of the terminal device, such as a hard disk or a memory of the terminal device. The memory may also be an external storage device of the terminal device in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal device. The memory may also include both internal and external storage units of the terminal device. The memory is used for storing an operating system, an application program, a Boot Loader (Boot Loader), data, and other programs, such as program codes of computer programs. The memory may also be used to temporarily store data that has been output or is to be output.
In application, the Display screen may be a Thin Film Transistor Liquid Crystal Display (TFT-LCD), a Liquid Crystal Display (LCD), an Organic electroluminescent Display (OLED), a Quantum Dot Light Emitting diode (QLED) Display screen, a seven-segment or eight-segment digital tube, and the like.
In application, the Communication module may provide a solution for Communication applied to the network device, including Wireless Local Area Networks (WLANs) (such as Wi-Fi Networks), bluetooth, Zigbee, mobile Communication Networks, Global Navigation Satellite Systems (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The communication module may include an antenna, and the antenna may have only one array element, or may be an antenna array including a plurality of array elements. The communication module can receive electromagnetic waves through the antenna, frequency-modulate and filter electromagnetic wave signals, and send the processed signals to the processor. The communication module can also receive a signal to be sent from the processor, frequency-modulate and amplify the signal, and convert the signal into electromagnetic waves through the antenna to radiate the electromagnetic waves.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/modules, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and reference may be made to the part of the embodiment of the method specifically, and details are not described here.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely illustrated, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to perform all or part of the above described functions. Each functional module in the embodiments may be integrated into one processing module, or each module may exist alone physically, or two or more modules are integrated into one module, and the integrated module may be implemented in a form of hardware, or in a form of software functional module. In addition, specific names of the functional modules are only used for distinguishing one functional module from another, and are not used for limiting the protection scope of the application. The specific working process of the modules in the system may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps in the foregoing multimedia data transmission method embodiment can be implemented.
The embodiment of the present application provides a computer program product, which when running on a terminal device, enables the terminal device to implement the steps in the foregoing multimedia data transmission method embodiment.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a data acquisition end or client, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier wave signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A multimedia data transmission method is applied to a data acquisition end, and comprises the following steps:
a first node connected to an EMQ cluster;
receiving a topic through the first node subscription instruction;
receiving a data transmission instruction sent by a second node of the EMQ cluster through the first node, wherein the second node is connected with a client;
acquiring corresponding multimedia data according to the data transmission instruction;
sending, by the first node, the multimedia data to the second node.
2. The method for transmitting multimedia data according to claim 1, wherein the data collection terminal is a litter box or a monitoring device, and the multimedia data comprises at least one of image data or audio data.
3. The method for multimedia data transmission according to claim 1 or 2, wherein the first node connected to the EMQ cluster comprises:
based on a message queue telemetry transmission protocol, logging in an EMQ message server by using an account and a password, and establishing long connection with a first node of an EMQ cluster.
4. The multimedia data transmission method of claim 3, wherein the connection to the first node of the EMQ cluster is preceded by:
logging in a cloud server to obtain a temporary token, and calling a login interface of an EMQ message server through the cloud server to obtain an account number, a password and channel information of a topic needing to be subscribed or published.
5. A multimedia data transmission method, applied to a client, the method comprising:
a second node connected to the EMQ cluster;
subscribing to a data reception topic by the second node;
sending a data transmission instruction to a first node of the EMQ cluster through the second node, wherein the first node is connected with a data acquisition end;
receiving, by the second node, multimedia data sent by the first node;
and decoding and playing the multimedia data.
6. The method for transmitting multimedia data according to claim 5, wherein the data collection terminal is a litter box or a monitoring device, and the multimedia data comprises at least one of image data or audio data.
7. The multimedia data transmission method according to claim 5 or 6, wherein the second node connected to the EMQ cluster comprises:
and logging in the EMQ message server by using an account and a password based on a message queue telemetry transmission protocol, and establishing long connection with a second node of the EMQ cluster.
8. The multimedia data transmission method of claim 7, wherein the connection to the second node of the EMQ cluster is preceded by:
logging in a cloud server to obtain a temporary token, and calling a login interface of an EMQ message server through the cloud server to obtain an account number, a password and channel information of a topic needing to be subscribed or published.
9. A terminal device comprising a communication module, a processor, a memory, and a computer program stored in the memory and executable on the processor;
when the terminal device is a data acquisition terminal, the processor executes the computer program to realize the multimedia data transmission method of any one of claims 1 to 4;
when the terminal device is a client, the processor executes the computer program to implement the steps of the multimedia data transmission method according to any one of claims 5 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the steps of the multimedia data transmission method according to any one of claims 1 to 4 or 5 to 8.
CN202111396598.7A 2021-11-23 2021-11-23 Multimedia data transmission method, terminal equipment and storage medium Active CN114244844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111396598.7A CN114244844B (en) 2021-11-23 2021-11-23 Multimedia data transmission method, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111396598.7A CN114244844B (en) 2021-11-23 2021-11-23 Multimedia data transmission method, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114244844A true CN114244844A (en) 2022-03-25
CN114244844B CN114244844B (en) 2023-10-24

Family

ID=80750693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111396598.7A Active CN114244844B (en) 2021-11-23 2021-11-23 Multimedia data transmission method, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114244844B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697126A (en) * 2022-04-12 2022-07-01 北京达佳互联信息技术有限公司 Method and device for releasing multimedia resources, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199210A (en) * 2020-09-21 2021-01-08 中国建设银行股份有限公司 Data processing method and device based on Internet of things, computer equipment and medium
CN112636462A (en) * 2020-11-13 2021-04-09 国网浙江省电力有限公司湖州供电公司 MQTT-based power distribution Internet of things system and method thereof
CN112804682A (en) * 2020-12-31 2021-05-14 新奥数能科技有限公司 Data transmission method and device, readable medium and electronic equipment
CN112800145A (en) * 2021-01-27 2021-05-14 西安重装配套技术服务有限公司 Fully mechanized coal mining face data fusion method based on big data system
CN112862650A (en) * 2021-02-24 2021-05-28 浙江蓝景科技有限公司 Object handover method and device and electronic equipment
CN113141485A (en) * 2020-10-22 2021-07-20 西安天和防务技术股份有限公司 Alarm system
CN113315830A (en) * 2021-05-26 2021-08-27 重庆高新技术产业研究院有限责任公司 Data transmission method of data engineering machine for industrial internet

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112199210A (en) * 2020-09-21 2021-01-08 中国建设银行股份有限公司 Data processing method and device based on Internet of things, computer equipment and medium
CN113141485A (en) * 2020-10-22 2021-07-20 西安天和防务技术股份有限公司 Alarm system
CN112636462A (en) * 2020-11-13 2021-04-09 国网浙江省电力有限公司湖州供电公司 MQTT-based power distribution Internet of things system and method thereof
CN112804682A (en) * 2020-12-31 2021-05-14 新奥数能科技有限公司 Data transmission method and device, readable medium and electronic equipment
CN112800145A (en) * 2021-01-27 2021-05-14 西安重装配套技术服务有限公司 Fully mechanized coal mining face data fusion method based on big data system
CN112862650A (en) * 2021-02-24 2021-05-28 浙江蓝景科技有限公司 Object handover method and device and electronic equipment
CN113315830A (en) * 2021-05-26 2021-08-27 重庆高新技术产业研究院有限责任公司 Data transmission method of data engineering machine for industrial internet

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114697126A (en) * 2022-04-12 2022-07-01 北京达佳互联信息技术有限公司 Method and device for releasing multimedia resources, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114244844B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
CN107566786B (en) Method and device for acquiring monitoring video and terminal equipment
CN103069755B (en) Use the method and system that the instant message of multiple client instance transmits
CN112019625B (en) Websocket-based message pushing method, system, device and medium
CN112312222A (en) Video sending method and device and electronic equipment
CN113194550B (en) Data channel construction method, server and data cluster system
CN112261047B (en) Gateway access method, mobile terminal and computer storage medium
CN112202744B (en) Multi-system data communication method and device
CN114244844B (en) Multimedia data transmission method, terminal equipment and storage medium
CN107332894B (en) Live broadcast method, device and system, server and storage medium
CN113438628A (en) Method and device for data interaction
CN112866385A (en) Interface calling method and device, electronic equipment and storage medium
CN110996372B (en) Message routing method, device and system and electronic equipment
CN101572764B (en) Method and system for sending pictures between electronic picture frames and electronic picture frame
CN110572476B (en) Remote control method, device and equipment
CN112689020A (en) Message transmission method, message middleware, electronic equipment and storage medium
CN109981778B (en) Method, device, equipment and storage medium for realizing service of content distribution network
CN114125024B (en) Audio transmission method, electronic device and readable storage medium
CN104714760A (en) Method and device for read and write storage device
CN113810448B (en) Cloud service method, deployment method, device, electronic equipment and storage medium
CN105592116A (en) Method, terminal and system for synchronously browsing shared resources
CN112383904A (en) Pair-free quick peripheral calling method and device
CN111752625A (en) Method and device for interface mock
SE516506C2 (en) Telecommunication system comprising one or more mobile terminals
CN112565173B (en) Method and apparatus for message processing
CN116346792A (en) Video image data transmission method and device based on MQTT protocol

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant