CN113726864A - Data transmission system and method for intelligent sound box and big data platform system - Google Patents

Data transmission system and method for intelligent sound box and big data platform system Download PDF

Info

Publication number
CN113726864A
CN113726864A CN202110973644.9A CN202110973644A CN113726864A CN 113726864 A CN113726864 A CN 113726864A CN 202110973644 A CN202110973644 A CN 202110973644A CN 113726864 A CN113726864 A CN 113726864A
Authority
CN
China
Prior art keywords
data
transmission data
transmission
sound box
platform system
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.)
Pending
Application number
CN202110973644.9A
Other languages
Chinese (zh)
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.)
China Academy of Information and Communications Technology CAICT
Original Assignee
China Academy of Information and Communications Technology CAICT
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 China Academy of Information and Communications Technology CAICT filed Critical China Academy of Information and Communications Technology CAICT
Priority to CN202110973644.9A priority Critical patent/CN113726864A/en
Publication of CN113726864A publication Critical patent/CN113726864A/en
Pending legal-status Critical Current

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/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/167Audio streaming, i.e. formatting and decoding of an encoded audio signal representation into a data stream for transmission or storage purposes

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data transmission system and a data transmission method for an intelligent sound box and a big data platform system, wherein the method comprises the following steps: the intelligent sound box performs Varint coding and serialization processing on transmission data based on Protocol Buffers, and transmits the transmission data subjected to the Varint coding and serialization processing to a big data platform system; the big data platform system receives transmission data sent by the intelligent sound box, decodes and returns to serialization processing on the basis of Protocol Buffers, and sends the transmission data after decoding and returning to serialization processing to an external application program; the method and the system have the advantages that the resource data corresponding to the transmission data returned by the external application program are received, and the resource data corresponding to the transmission data are sent to the intelligent sound box.

Description

Data transmission system and method for intelligent sound box and big data platform system
Technical Field
The invention relates to the technical field of data transmission, in particular to a data transmission system and a data transmission method for an intelligent sound box and a big data platform system.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
A sound box is a common audio device in daily life, and generally refers to a device capable of converting an audio signal into sound. Briefly put simply just indicate audio amplifier host computer box or bass box are internal from taking power amplifier, amplify audio signal and play sound by audio amplifier itself after handling, make its sound grow, the audio amplifier all need use under many scenes, now along with the development of science and technology, intelligent audio amplifier is developed, and it has the function of automatic handling some problems, and intelligent audio amplifier needs to carry out data transmission with backstage system and just can realize corresponding function.
In the existing data transmission research, researches are mainly carried out on the aspects of mapping rule construction, data transmission interface construction, data transmission service construction and the like among different modules, the researches on data encoding and decoding are less, and because the data volume involved in data transmission between the intelligent sound box and the background system is larger, the encoding and decoding method adopted by the prior art is more complex, the data transmission efficiency is lower, and the occupied storage space is large.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a big data platform system, which is used for improving the efficiency of data transmission between an intelligent sound box and the big data platform system and saving storage space, and comprises:
the data receiving module is used for receiving transmission data sent by the intelligent sound box, wherein the transmission data are subjected to Varint coding and serialization processing through Protocol Buffers, and the transmission data comprise a client instruction, and operation data, internal parameters and position data of the intelligent sound box;
the decoding module is used for decoding and returning serialization processing to the transmission data based on Protocol Buffers and sending the transmission data after decoding and returning serialization processing to an external application program;
and the resource sending module is used for receiving resource data corresponding to the transmission data returned by the external application program and sending the resource data corresponding to the transmission data to the intelligent sound box.
The embodiment of the invention provides an intelligent sound box, which is used for improving the efficiency of data transmission between the intelligent sound box and a big data platform system and saving storage space, and comprises:
the system comprises an encoding module, a big data platform system and a processing module, wherein the encoding module is used for carrying out Varint encoding and serialization processing on transmission data based on Protocol Buffers, and sending the transmission data subjected to Varint encoding and serialization processing to the big data platform system, the transmission data comprise client instructions and operation data, internal parameters and position data of an intelligent sound box, the big data platform system is used for carrying out decoding and reverse serialization processing on the transmission data, sending the transmission data subjected to decoding and reverse serialization processing to an external application program, and receiving resource data corresponding to the transmission data returned by the external application program;
and the resource receiving module is used for receiving resource data corresponding to the transmission data returned by the big data platform system.
The embodiment of the invention provides a data transmission system of an intelligent sound box and a big data platform system, which is used for improving the efficiency of data transmission between the intelligent sound box and the big data platform system and saving the storage space, and comprises the following components: big data platform system as above, smart speaker as above.
The embodiment of the invention provides a data transmission method of an intelligent sound box and a big data platform system, which is used for improving the efficiency of data transmission between the intelligent sound box and the big data platform system and saving storage space, and comprises the following steps:
receiving transmission data sent by the intelligent sound box, wherein the transmission data is subjected to Varint coding and serialization processing through Protocol Buffers, and the transmission data comprises a client instruction, and operation data, internal parameters and position data of the intelligent sound box;
decoding and re-serializing the transmission data based on Protocol Buffers, and sending the transmission data after decoding and re-serializing to an external application program;
and receiving resource data corresponding to the transmission data returned by the external application program, and sending the resource data corresponding to the transmission data to the intelligent sound box.
The embodiment of the invention provides a data transmission method of an intelligent sound box and a big data platform system, which is used for improving the efficiency of data transmission between the intelligent sound box and the big data platform system and saving storage space, and comprises the following steps:
performing Varint coding and serialization processing on transmission data based on Protocol Buffers, and sending the transmission data subjected to Varint coding and serialization processing to a big data platform system, wherein the transmission data comprise a client instruction, and operation data, internal parameters and position data of an intelligent sound box, the big data platform system is used for decoding and re-serializing the transmission data, sending the decoded and re-serialized transmission data to an external application program, and receiving resource data corresponding to the transmission data returned by the external application program;
and receiving resource data corresponding to the transmission data returned by the big data platform system.
The embodiment of the invention provides a data transmission method of an intelligent sound box and a big data platform system, which is used for improving the efficiency of data transmission between the intelligent sound box and the big data platform system and saving storage space, and comprises the following steps:
the intelligent sound box carries out Varint coding and serialization processing on transmission data based on Protocol Buffers, and the transmission data subjected to Varint coding and serialization processing are sent to a big data platform system, wherein the transmission data comprise client instructions, and operation data, internal parameters and position data of the intelligent sound box;
the big data platform system receives transmission data sent by the intelligent sound box, decodes and returns to serialization processing on the basis of Protocol Buffers, and sends the transmission data after decoding and returning to serialization processing to an external application program; and receiving resource data corresponding to the transmission data returned by the external application program, and sending the resource data corresponding to the transmission data to the intelligent sound box.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the data transmission method of the intelligent sound box and the big data platform system when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the data transmission method of the smart sound box and the big data platform system is stored in the computer-readable storage medium.
The embodiment of the invention comprises the following steps: the intelligent sound box carries out Varint coding and serialization processing on transmission data based on Protocol Buffers, the transmission data subjected to Varint coding and serialization processing are sent to a big data platform system, the big data platform system receives the transmission data sent by the intelligent sound box, decoding and re-serialization processing are carried out on the transmission data based on the Protocol Buffers, and the transmission data subjected to decoding and re-serialization processing are sent to an external application program; the method comprises the steps of receiving resource data corresponding to transmission data returned by an external application program, sending the resource data corresponding to the transmission data to the intelligent sound box, coding the transmission data into a binary format by Protocol Buffers, completing coding and decoding processes only through simple shifting operation, applying the Protocol Buffers to data transmission of the intelligent sound box and a large data platform system, improving data transmission efficiency, representing the transmission data by using fewer bytes through Varint coding, and improving the utilization rate of a storage space.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a diagram illustrating a system architecture of a big data platform according to an embodiment of the present invention;
FIG. 2 is a diagram of another structure of a big data platform system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a smart sound box according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a data transmission system structure of an intelligent sound box and a big data platform system according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a data transmission method flow of the smart sound box and the big data platform system in the embodiment of the present invention (a big data platform system angle);
fig. 6 is a schematic view of another flow of the data transmission method of the smart sound box and the big data platform system in the embodiment of the present invention (a big data platform system angle);
FIG. 7 is a schematic diagram of a data transmission method flow (smart speaker angle) of the smart speaker and the big data platform system according to an embodiment of the present invention;
fig. 8 is a schematic diagram (view of the whole system) of a data transmission method flow of the smart sound box and the big data platform system in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, method or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
An embodiment of the present invention provides a big data platform system, which is used to improve efficiency of data transmission between an intelligent sound box and the big data platform system and save storage space, where fig. 1 is a schematic diagram of a structure of the big data platform system in an embodiment of the present invention, and as shown in fig. 1, the big data platform system includes:
the data receiving module 101 is configured to receive transmission data sent by the smart sound box, where the transmission data is subjected to Varint coding and serialization processing by Protocol Buffers, and the transmission data includes a client instruction, and operation data, internal parameters, and position data of the smart sound box;
the decoding module 102 is configured to perform decoding and reverse serialization processing on transmission data based on Protocol Buffers, and send the transmission data after the decoding and reverse serialization processing to an external application program;
and the resource sending module 103 is configured to receive resource data corresponding to the transmission data returned by the external application program, and send the resource data corresponding to the transmission data to the smart sound box.
During specific implementation, the intelligent sound box first needs to generate transmission data, and the transmission data can comprise a client instruction, and operation data, internal parameters and position data of the intelligent sound box; then, encoding transmission data by utilizing a Varint code of Protocol Buffers, wherein the Protocol Buffers are a flexible, efficient and automatic serialized structural data method, the Varint is a compact digital representation encoding method, the integer type of the traditional encoding is represented by 32 bits, the storage needs 4 bytes, when the size of the integer is within 128, the Varint can represent the integer only by using one byte, and the storage space of 3 bytes can be saved; and then, utilizing Protocol Buffers to perform serialization processing on the coded transmission data, generating a binary data stream after the serialization processing, and finally transmitting the Varint code and the transmission data after the serialization processing.
Specifically, after the big data platform system receives the transmission data sent by the intelligent loudspeaker box, decoding and deserializing the transmission data based on Protocol Buffers are firstly carried out, decoding and deserializing of the Protocol Buffers are usually completed by a frame code and a compiler of the big data platform system, then the transmission data after decoding and deserializing are sent to an external application program, the external application program is used for acquiring resource data corresponding to the transmission data from the internet, for example, a client instruction in the transmission data is a song, the external application program can download song audio resources according to the transmission data and return the resource data corresponding to the transmission data to the big data platform system, and after the big data platform system receives the resource data corresponding to the transmission data returned by the external application program, the method comprises the steps of selecting a folder through a file dialog box, conducting batch export of resource data, extracting the exported resource data, sending the resource data corresponding to transmission data to intelligent sound boxes, and completing data exchange between the intelligent sound boxes in the region.
Fig. 2 is a schematic diagram of another structure of a big data platform system in an embodiment of the present invention, as shown in fig. 2, in an embodiment, the big data platform system may further include: a client representation update module 104 for:
storing the decoded and re-serialized transmission data into a database;
performing secondary encoding on the decoded and re-serialized transmission data based on Protocol Buffers to obtain a proto file corresponding to the transmission data, wherein the proto file comprises a plurality of fields, and the field attribute of each field is determined according to the data type of the transmission data;
and updating the client portrait according to the proto file corresponding to the transmission data.
In one embodiment, client representation update module 104 is specifically configured to:
judging whether the client portrait contains a field in a proto file corresponding to the transmission data;
and if the client portrait does not contain the fields in the proto file corresponding to the transmission data, adding the fields and the field attributes in the proto file corresponding to the transmission data in the client portrait.
As shown in FIG. 2, in one embodiment, the big data platform system may further comprise: a client representation generation module 105 for:
before updating the client portrait according to the proto file corresponding to the transmission data, generating the client portrait according to the following mode;
acquiring historical transmission data from a database;
generating a proto file corresponding to historical transmission data based on Protocol Buffers;
and generating the client portrait according to the fields and the field attributes in the proto file corresponding to the historical transmission data.
In the embodiment of the present invention, in order to further enhance the intelligent function of the smart sound box and achieve accurate marketing and recommendation of resources, a big data platform system may further generate a customer image, specifically, transmission data sent to the big data platform system by the smart sound box each time is stored in a database, first, historical transmission data is obtained from the database, the historical transmission data is classified, the classification may be performed according to different functions such as a customer instruction, operation data of the smart sound box, internal parameters, and location data, and then, the classified historical transmission data is recoded through a Protocol Buffers format, a corresponding proto file is generated after a Protocol Buffers is operated, the proto file includes a plurality of fields, a field attribute of each field is determined according to a data type of the transmission data, and the Protocol Buffers have three rules, which are: required, optional and required, wherein required indicates that the field attribute cannot be null in the message, optional indicates that the field attribute can be null in the message, required indicates that the field attribute is multiple in the message, each field attribute is followed by a unique digital tag, the digital tag is used for positioning each field attribute in the binary stream, and the tag value cannot be repeated; opening a File selection dialog box, opening a Caris data exchange File through a ". proto" File (File) object, finding a specific row, starting to read historical transmission data, obtaining corresponding field elements, saving the field elements as an array, defining a point set object and a geometric object, filling the geometric object through the point set object, creating a geometric feature object in a specific layer, storing the geometric feature object, and generating a line primitive or a point primitive.
When transmission data of the intelligent sound box are received each time, a client portrait can be updated in real time according to new transmission data, a proto file corresponding to the transmission data is generated according to the proto file generation mode, whether a field in the proto file corresponding to the transmission data is contained in the client portrait or not is judged, specifically, a table object of a line primitive or a point primitive can be obtained, a field set of the table object is obtained, whether a field in the proto file corresponding to the transmission data is contained in the field set or not is judged, if yes, the client portrait does not need to be updated, and if not, the field and field attributes in the proto file corresponding to the transmission data are added in the client portrait, so that the new client portrait is generated.
An embodiment of the present invention provides an intelligent sound box, configured to improve efficiency of data transmission between the intelligent sound box and a big data platform system, and save a storage space, where fig. 3 is a schematic diagram of a structure of the intelligent sound box in an embodiment of the present invention, and as shown in fig. 3, the intelligent sound box includes:
the encoding module 301 is configured to perform Varint encoding and serialization processing on transmission data based on Protocol Buffers, and send the transmission data after the Varint encoding and serialization processing to a big data platform system, where the transmission data includes a client instruction, and operation data, internal parameters, and position data of an intelligent sound box, the big data platform system is configured to decode and return serialization processing on the transmission data, send the transmission data after the decoding and return serialization processing to an external application program, and receive resource data corresponding to the transmission data returned by the external application program;
and the resource receiving module 302 is configured to receive resource data corresponding to transmission data returned by the big data platform system.
An embodiment of the present invention provides a data transmission system for an intelligent sound box and a big data platform system, so as to improve efficiency of data transmission between the intelligent sound box and the big data platform system and save storage space, where fig. 4 is a schematic diagram of a data transmission system structure for the intelligent sound box and the big data platform system in an embodiment of the present invention, and as shown in fig. 4, the system includes: big data platform system as above, smart speaker as above.
Based on the same inventive concept, the embodiment of the present invention provides a data transmission method (from the perspective of a big data platform system) for an intelligent sound box and a big data platform system, as in the following embodiments. Because the principle of solving the problems of the data transmission method of the intelligent sound box and the big data platform system is similar to that of the data transmission system of the intelligent sound box and the big data platform system, the implementation of the method can refer to the implementation of the system, and repeated parts are not described again.
Fig. 5 is a schematic diagram (from the perspective of a big data platform system) of a data transmission method flow of an intelligent sound box and a big data platform system in an embodiment of the present invention, and as shown in fig. 5, the method includes:
step 501: receiving transmission data sent by the intelligent sound box, wherein the transmission data is subjected to Varint coding and serialization processing through Protocol Buffers, and the transmission data comprises a client instruction, and operation data, internal parameters and position data of the intelligent sound box;
step 502: decoding and re-serializing the transmission data based on Protocol Buffers, and sending the transmission data after decoding and re-serializing to an external application program;
step 503: and receiving resource data corresponding to the transmission data returned by the external application program, and sending the resource data corresponding to the transmission data to the intelligent sound box.
Fig. 6 is a schematic diagram of another flow of a data transmission method between an intelligent sound box and a big data platform system in an embodiment of the present invention (from the perspective of the big data platform system), as shown in fig. 6, in an embodiment, the method further includes:
step 504: storing the decoded and re-serialized transmission data into a database;
step 505: performing secondary encoding on the decoded and re-serialized transmission data based on Protocol Buffers to obtain a proto file corresponding to the transmission data, wherein the proto file comprises a plurality of fields, and the field attribute of each field is determined according to the data type of the transmission data;
step 506: and updating the client portrait according to the proto file corresponding to the transmission data.
In one embodiment, step 506: updating the client image according to the proto file corresponding to the transmission data may include:
judging whether the client portrait contains a field in a proto file corresponding to the transmission data;
and if the client portrait does not contain the fields in the proto file corresponding to the transmission data, adding the fields and the field attributes in the proto file corresponding to the transmission data in the client portrait.
In one embodiment, the method may further comprise:
before updating the client portrait according to the proto file corresponding to the transmission data, generating the client portrait according to the following mode;
acquiring historical transmission data from a database;
generating a proto file corresponding to historical transmission data based on Protocol Buffers;
and generating the client portrait according to the fields and the field attributes in the proto file corresponding to the historical transmission data.
Based on the same inventive concept, an embodiment of the present invention provides a data transmission method (smart speaker angle) for a smart speaker and a big data platform system, and fig. 7 is a schematic diagram (smart speaker angle) of a data transmission method flow for the smart speaker and the big data platform system in the embodiment of the present invention, as shown in fig. 7, the method includes:
step 701: performing Varint coding and serialization processing on transmission data based on Protocol Buffers, and sending the transmission data subjected to Varint coding and serialization processing to a big data platform system, wherein the transmission data comprise a client instruction, and operation data, internal parameters and position data of an intelligent sound box, the big data platform system is used for decoding and re-serializing the transmission data, sending the decoded and re-serialized transmission data to an external application program, and receiving resource data corresponding to the transmission data returned by the external application program;
step 702: and receiving resource data corresponding to the transmission data returned by the big data platform system.
Based on the same inventive concept, an embodiment of the present invention provides a data transmission method (overall system angle) for an intelligent sound box and a big data platform system, and fig. 8 is a schematic diagram (overall system angle) of a data transmission method flow of the intelligent sound box and the big data platform system in the embodiment of the present invention, as shown in fig. 8, the method includes:
step 801: the intelligent sound box carries out Varint coding and serialization processing on transmission data based on Protocol Buffers, and the transmission data subjected to Varint coding and serialization processing are sent to a big data platform system, wherein the transmission data comprise client instructions, and operation data, internal parameters and position data of the intelligent sound box;
step 802: the big data platform system receives transmission data sent by the intelligent sound box, decodes and returns to serialization processing on the basis of Protocol Buffers, and sends the transmission data after decoding and returning to serialization processing to an external application program; and receiving resource data corresponding to the transmission data returned by the external application program, and sending the resource data corresponding to the transmission data to the intelligent sound box.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the data transmission method of the intelligent sound box and the big data platform system when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program for executing the data transmission method of the smart sound box and the big data platform system is stored in the computer-readable storage medium.
To sum up, the embodiment of the present invention provides: the intelligent sound box carries out Varint coding and serialization processing on transmission data based on Protocol Buffers, the transmission data subjected to Varint coding and serialization processing are sent to a big data platform system, the big data platform system receives the transmission data sent by the intelligent sound box, decoding and re-serialization processing are carried out on the transmission data based on the Protocol Buffers, and the transmission data subjected to decoding and re-serialization processing are sent to an external application program; the method comprises the steps of receiving resource data corresponding to transmission data returned by an external application program, sending the resource data corresponding to the transmission data to the intelligent sound box, coding the transmission data into a binary format by Protocol Buffers, completing coding and decoding processes only through simple shifting operation, applying the Protocol Buffers to data transmission of the intelligent sound box and a large data platform system, improving data transmission efficiency, representing the transmission data by using fewer bytes through Varint coding, and improving the utilization rate of a storage space.
In addition, the embodiment of the invention generates the proto file corresponding to the transmission data based on the Protocol Buffers so as to obtain the customer portrait.
Although the present invention provides method steps as described in the examples or flowcharts, more or fewer steps may be included based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, apparatus (system) or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The terms "upper", "lower", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred devices or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Unless expressly stated or limited otherwise, the terms "mounted," "connected," and "connected" are intended to be inclusive and mean, for example, that they may be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations. It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. The present invention is not limited to any single aspect, nor is it limited to any single embodiment, nor is it limited to any combination and/or permutation of these aspects and/or embodiments. Moreover, each aspect and/or embodiment of the present invention may be utilized alone or in combination with one or more other aspects and/or embodiments thereof.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (11)

1. A big data platform system, comprising:
the data receiving module is used for receiving transmission data sent by the intelligent sound box, wherein the transmission data are subjected to Varint coding and serialization processing through Protocol Buffers, and the transmission data comprise a client instruction, and operation data, internal parameters and position data of the intelligent sound box;
the decoding module is used for decoding and returning serialization processing to the transmission data based on Protocol Buffers and sending the transmission data after decoding and returning serialization processing to an external application program;
and the resource sending module is used for receiving resource data corresponding to the transmission data returned by the external application program and sending the resource data corresponding to the transmission data to the intelligent sound box.
2. The big data platform system of claim 1, further comprising: a client representation update module to:
storing the decoded and re-serialized transmission data into a database;
performing secondary encoding on the decoded and re-serialized transmission data based on Protocol Buffers to obtain a proto file corresponding to the transmission data, wherein the proto file comprises a plurality of fields, and the field attribute of each field is determined according to the data type of the transmission data;
and updating the client portrait according to the proto file corresponding to the transmission data.
3. The big data platform system of claim 2, wherein the client representation update module is specifically configured to:
judging whether the client portrait contains a field in a proto file corresponding to the transmission data;
and if the client portrait does not contain the fields in the proto file corresponding to the transmission data, adding the fields and the field attributes in the proto file corresponding to the transmission data in the client portrait.
4. The big data platform system of claim 2, further comprising: a client representation generation module to:
before updating the client portrait according to the proto file corresponding to the transmission data, generating the client portrait according to the following mode;
acquiring historical transmission data from a database;
generating a proto file corresponding to historical transmission data based on Protocol Buffers;
and generating the client portrait according to the fields and the field attributes in the proto file corresponding to the historical transmission data.
5. An intelligent sound box, comprising:
the system comprises an encoding module, a big data platform system and a processing module, wherein the encoding module is used for carrying out Varint encoding and serialization processing on transmission data based on Protocol Buffers, and sending the transmission data subjected to Varint encoding and serialization processing to the big data platform system, the transmission data comprise client instructions and operation data, internal parameters and position data of an intelligent sound box, the big data platform system is used for carrying out decoding and reverse serialization processing on the transmission data, sending the transmission data subjected to decoding and reverse serialization processing to an external application program, and receiving resource data corresponding to the transmission data returned by the external application program;
and the resource receiving module is used for receiving resource data corresponding to the transmission data returned by the big data platform system.
6. The utility model provides a data transmission system of intelligence audio amplifier and big data platform system which characterized in that includes: the big data platform system of any one of claims 1 to 4, the smart sound box of claim 5.
7. A data transmission method of an intelligent sound box and a big data platform system is characterized by comprising the following steps:
receiving transmission data sent by the intelligent sound box, wherein the transmission data are subjected to Varint coding and serialization processing through Protocol Buffers, and the transmission data comprise a client instruction, and operation data, internal parameters and position data of the intelligent sound box;
decoding and re-serializing the transmission data based on Protocol Buffers, and sending the transmission data after decoding and re-serializing to an external application program;
and receiving resource data corresponding to the transmission data returned by the external application program, and sending the resource data corresponding to the transmission data to the intelligent sound box.
8. A data transmission method of an intelligent sound box and a big data platform system is characterized by comprising the following steps:
performing Varint coding and serialization processing on transmission data based on Protocol Buffers, and sending the transmission data subjected to Varint coding and serialization processing to a big data platform system, wherein the transmission data comprise a client instruction, and operation data, internal parameters and position data of an intelligent sound box, the big data platform system is used for decoding and re-serializing the transmission data, sending the decoded and re-serialized transmission data to an external application program, and receiving resource data corresponding to the transmission data returned by the external application program;
and receiving resource data corresponding to the transmission data returned by the big data platform system.
9. A data transmission method of an intelligent sound box and a big data platform system is characterized by comprising the following steps:
the intelligent sound box carries out Varint coding and serialization processing on transmission data based on Protocol Buffers, and the transmission data subjected to Varint coding and serialization processing are sent to a big data platform system, wherein the transmission data comprise client instructions, and operation data, internal parameters and position data of the intelligent sound box;
the big data platform system receives transmission data sent by the intelligent sound box, decodes and returns to serialization processing on the basis of Protocol Buffers, and sends the transmission data after decoding and returning to serialization processing to an external application program; and receiving resource data corresponding to the transmission data returned by the external application program, and sending the resource data corresponding to the transmission data to the intelligent sound box.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any of claims 7 to 9 when executing the computer program.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any of claims 7 to 9.
CN202110973644.9A 2021-08-24 2021-08-24 Data transmission system and method for intelligent sound box and big data platform system Pending CN113726864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110973644.9A CN113726864A (en) 2021-08-24 2021-08-24 Data transmission system and method for intelligent sound box and big data platform system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110973644.9A CN113726864A (en) 2021-08-24 2021-08-24 Data transmission system and method for intelligent sound box and big data platform system

Publications (1)

Publication Number Publication Date
CN113726864A true CN113726864A (en) 2021-11-30

Family

ID=78677544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110973644.9A Pending CN113726864A (en) 2021-08-24 2021-08-24 Data transmission system and method for intelligent sound box and big data platform system

Country Status (1)

Country Link
CN (1) CN113726864A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040220946A1 (en) * 2003-05-01 2004-11-04 Oracle International Corporation Techniques for transferring a serialized image of XML data
US8924435B1 (en) * 2011-03-23 2014-12-30 Google Inc. Transferring values among fields in data structures
CN107332854A (en) * 2017-07-17 2017-11-07 联动优势科技有限公司 A kind of sequence of message machinery of consultation and service providing device
CN107861723A (en) * 2017-10-25 2018-03-30 深圳市华成峰科技有限公司 Mass data processing method and its system
CN109408522A (en) * 2018-09-28 2019-03-01 阿里巴巴集团控股有限公司 A kind of update method and device of user characteristic data
CN112750435A (en) * 2020-12-28 2021-05-04 苏州思必驰信息科技有限公司 Smart home equipment synchronization method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040220946A1 (en) * 2003-05-01 2004-11-04 Oracle International Corporation Techniques for transferring a serialized image of XML data
US8924435B1 (en) * 2011-03-23 2014-12-30 Google Inc. Transferring values among fields in data structures
CN107332854A (en) * 2017-07-17 2017-11-07 联动优势科技有限公司 A kind of sequence of message machinery of consultation and service providing device
CN107861723A (en) * 2017-10-25 2018-03-30 深圳市华成峰科技有限公司 Mass data processing method and its system
CN109408522A (en) * 2018-09-28 2019-03-01 阿里巴巴集团控股有限公司 A kind of update method and device of user characteristic data
CN112750435A (en) * 2020-12-28 2021-05-04 苏州思必驰信息科技有限公司 Smart home equipment synchronization method and device

Similar Documents

Publication Publication Date Title
CN109523022B (en) Terminal data processing method and device and terminal
CN112311664B (en) Industrial Internet data interaction method and system and industrial gateway
CN110427359A (en) A kind of diagram data treating method and apparatus
CN110191156B (en) Data processing method and device based on block chain
CN111131403A (en) Message coding and decoding method and device for Internet of things equipment
WO2023124425A1 (en) Data processing method and apparatus, electronic device, and storage medium
CN110263277A (en) Display methods, update method, device, equipment and the storage medium of page data
CN112884120A (en) Graph neural network representation architecture
CN117749899A (en) Protocol conversion framework, device communication method, device and computer storage medium
CN113746855A (en) Data access method of energy industry cloud network and related equipment
CN113726864A (en) Data transmission system and method for intelligent sound box and big data platform system
CN105335135A (en) Data processing method and center node
CN116860941A (en) Question answering method and device, electronic equipment and storage medium
CN111143310B (en) Log recording method and device and readable storage medium
CN114928587B (en) AIoT equipment multiplexing modeling method based on cloud edge cooperative system
CN115150413B (en) Block chain data storage method and device, electronic equipment and storage medium
CN109829004A (en) Data processing method, device, equipment and storage medium based on unmanned vehicle
CN116561202A (en) Method and device for serializing object
CN105389355A (en) Data processing method and terminal
CN114640697B (en) Data processing method, equipment and storage medium for distribution internet of things edge controller
CN114302425B (en) Equipment network distribution method and device, storage medium and electronic equipment
CN117992578B (en) Method for processing data based on large language model, large language model and electronic equipment
CN112311833B (en) Data updating method and device
WO2024044954A1 (en) State graph transmission method and device
CN118229509A (en) Image processing optimization method, system, equipment and medium suitable for DSP

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211130

RJ01 Rejection of invention patent application after publication