CN115314485A - Expression animation transmission method, device, equipment and storage medium - Google Patents

Expression animation transmission method, device, equipment and storage medium Download PDF

Info

Publication number
CN115314485A
CN115314485A CN202210790631.2A CN202210790631A CN115314485A CN 115314485 A CN115314485 A CN 115314485A CN 202210790631 A CN202210790631 A CN 202210790631A CN 115314485 A CN115314485 A CN 115314485A
Authority
CN
China
Prior art keywords
protocol
image data
intelligent vehicle
mounted robot
expression animation
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
CN202210790631.2A
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.)
Wuhan Haiwei Technology Co ltd
Original Assignee
Wuhan Haiwei Technology Co ltd
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 Wuhan Haiwei Technology Co ltd filed Critical Wuhan Haiwei Technology Co ltd
Priority to CN202210790631.2A priority Critical patent/CN115314485A/en
Publication of CN115314485A publication Critical patent/CN115314485A/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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention belongs to the technical field of network communication and discloses a method, a device, equipment and a storage medium for transmitting expression animation. The method comprises the following steps: sending a starting transmission protocol of the expression animation to an intelligent vehicle-mounted robot, and judging whether the intelligent vehicle-mounted robot is successfully verified according to a received first data protocol sent by the intelligent vehicle-mounted robot after the intelligent vehicle-mounted robot verifies the starting transmission protocol; if the received first data protocol is a request data protocol, the verification is judged to be successful, the n frames of expression animation images are divided into a plurality of image data packets, and the plurality of image data packets are transmitted through the image data protocol, so that the intelligent vehicle-mounted robot can finish expression animation display based on the plurality of image data packets. Through the mode, the transmission accidents in the transmission process can be found in time, and the expression animation can be completely transmitted to the intelligent vehicle-mounted robot.

Description

Expression animation transmission method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of network communication, in particular to a method, a device, equipment and a storage medium for transmitting expression animation pictures.
Background
With the development of intellectualization and science and technology in the automobile industry, the intelligent vehicle-mounted robot enters the automobile, provides anthropomorphic intelligent interaction experience for users in the aspects of voice, vision and hearing, and enables human-computer interaction to be more temperature-sensitive. People hope that the expression animation can be natural and smooth in the actual use process, however, the transmission accident often happens to the expression animation in the transmission process, and the result is that the expression animation can not be completely transmitted to the intelligent vehicle-mounted robot, so that the intelligent vehicle-mounted robot can not reach the estimation effect when displaying the expression animation.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for transmitting expression animations, and aims to solve the technical problem that the expression animations cannot be completely transmitted to an intelligent vehicle-mounted robot due to transmission accidents during the transmission of the expression animations in the prior art.
In order to achieve the purpose, the invention provides an expression animation transmission method, which comprises the following steps:
s10, sending a starting transmission protocol of expression animation to the intelligent vehicle-mounted robot, wherein the expression animation is composed of n frames of expression animation images;
s20, after the intelligent vehicle-mounted robot verifies the transmission starting protocol, judging whether the intelligent vehicle-mounted robot is successfully verified or not according to the received first data protocol sent by the intelligent vehicle-mounted robot;
s30, if the first data protocol sent by the intelligent vehicle-mounted robot is the request data protocol, judging that the intelligent vehicle-mounted robot is successfully verified;
s40, dividing the n frames of expression animation images into a plurality of image data packets, and transmitting the plurality of image data packets by using an image data protocol, so that the intelligent vehicle-mounted robot completes expression animation display based on the plurality of image data packets.
Optionally, before the starting transmission protocol for sending the expression animation to the intelligent vehicle-mounted robot, the method further includes:
and determining and connecting the intelligent vehicle-mounted robot for receiving the expression animation according to the binding name of the intelligent vehicle-mounted robot.
Optionally, before the protocol for starting transmission of the expression animation to the intelligent vehicle-mounted robot, the method further includes:
acquiring an expression animation list from a cloud;
and responding to the selection operation of the client based on the expression animation list, and determining the expression animation for transmission.
Optionally, after step S20, the method further includes:
s21, if the received first data protocol sent by the intelligent vehicle-mounted robot is a first error protocol, judging that the intelligent vehicle-mounted robot fails to check;
s22, judging whether the steps S10-S40 need to be executed repeatedly according to the sending flag in the first error protocol.
Optionally, the dividing the n frames of emotional animation images into a plurality of image data packets, and transmitting the plurality of image data packets by using an image data protocol includes:
dividing n frames of expression animation images into a plurality of image data packets;
generating a corresponding image data protocol according to the plurality of image data packets;
and transmitting the image data protocol in sequence based on the packet sequence number in the image data protocol.
Optionally, after the image data protocol is sequentially transmitted based on the packet sequence numbers in the image data protocol, the method further includes:
receiving a second data protocol of the intelligent vehicle-mounted robot;
and if the second data protocol is a second error protocol, determining a corresponding image data packet according to a packet sequence number in the second error protocol, and retransmitting the corresponding image data packet.
In addition, in order to achieve the above object, the present invention further provides an expression animation transmission device, including:
the sending module is used for sending a starting transmission protocol of the expression animation to the intelligent vehicle-mounted robot, wherein the expression animation is composed of n frames of expression animation images;
the judging module is used for judging whether the intelligent vehicle-mounted robot is successfully verified according to the received first data protocol sent by the intelligent vehicle-mounted robot after the intelligent vehicle-mounted robot verifies the transmission starting protocol;
the sending module is further used for judging that the verification of the intelligent vehicle-mounted robot is successful when the first data protocol sent by the intelligent vehicle-mounted robot is the request data protocol;
and the transmission module is used for dividing the n frames of expression animation images into a plurality of image data packets and transmitting the plurality of image data packets by using an image data protocol so that the intelligent vehicle-mounted robot can finish expression animation display based on the plurality of image data packets.
In addition, in order to achieve the above object, the present invention further provides an expression animation transmission device, including: the system comprises a memory, a processor and an expression animation transmission program stored on the memory and capable of running on the processor, wherein the expression animation transmission program is configured to realize the steps of the expression animation transmission method.
In addition, to achieve the above object, the present invention further provides a storage medium, wherein the storage medium stores an emoticon transmission program, and the emoticon transmission program, when executed by a processor, implements the steps of the emoticon transmission method as described above.
According to the method, a transmission starting protocol of the expression animation is sent to the intelligent vehicle-mounted robot, and after the intelligent vehicle-mounted robot verifies the transmission starting protocol, whether the intelligent vehicle-mounted robot is successfully verified or not is judged according to a received first data protocol sent by the intelligent vehicle-mounted robot; if the first data protocol sent by the intelligent vehicle-mounted robot is the request data protocol, judging that the intelligent vehicle-mounted robot is successfully verified; dividing the n frames of expression animation images into a plurality of image data packets, and transmitting the plurality of image data packets by using an image data protocol, so that the intelligent vehicle-mounted robot finishes expression animation display based on the plurality of image data packets. According to the method and the device, transmission accidents in the transmission process can be found in time, the expression animation can be completely transmitted to the intelligent vehicle-mounted robot, and therefore the intelligent vehicle-mounted robot can achieve the estimation effect when the expression animation is displayed.
Drawings
FIG. 1 is a schematic structural diagram of an emotive animation transmission device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for transmitting an expression animation according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for transmitting an expression animation according to a second embodiment of the present invention;
fig. 4 is a block diagram of a first embodiment of an expressive animation transmission device according to the invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an expression animation transmission device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the emoji animation transmission apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to implement connection communication among these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 is not intended to be limiting of the emoji animation transmission device, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and an emoji animation transmission program.
In the emotive animation transmission apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the emotion animation transmission device according to the present invention may be disposed in the emotion animation transmission device, and the emotion animation transmission device calls the emotion animation transmission program stored in the memory 1005 through the processor 1001 and executes the emotion animation transmission method according to the embodiment of the present invention.
An embodiment of the present invention provides an expression animation transmission method, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of an expression animation transmission method according to the present invention.
In this embodiment, the expression animation transmission method includes the following steps:
step S10: and sending a starting transmission protocol of the expression animation to the intelligent vehicle-mounted robot, wherein the expression animation is composed of n frames of expression animation images.
It should be noted that the execution subject of the present embodiment may be a computer service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, or the like, or an electronic device capable of implementing the above functions, and the present embodiment and the following embodiments will be described below by taking a mobile phone APP as an example.
Specifically, the expression animation refers to a dynamic picture, and is generated by continuously playing a plurality of frames of expression animation images, and one expression animation is composed of a plurality of frames of expression animation images.
Specifically, the format of the start transmission protocol is: the protocol header, protocol length, protocol type, animation image number, background color, check bit and protocol trailer, the starting transmission protocol is as shown in table 1 below:
protocol header Protocol length Type of protocol Animation type Number of animation images Background color Check bit Protocol tail
1Byte 2Byte 1Byte 2Byte 2Byte 2Byte 1Byte 1Byte
0xEE 0x08 0x01 0~0xFFFF - 16 bit color (565) - 0xFE
TABLE 1
It should be noted that the protocol types in different protocols are different, and what protocol is determined according to the protocol type in the received protocol may be, for example, 0x01.
In one embodiment, before the starting transmission protocol for sending the expression animation to the intelligent vehicle-mounted robot, the method further comprises the following steps:
and determining and connecting the intelligent vehicle-mounted robot for receiving the expression animation according to the binding name of the intelligent vehicle-mounted robot.
In concrete implementation, intelligent vehicle-mounted robot equipment can be searched through a mobile phone APP terminal, a binding name can be set for the intelligent vehicle-mounted robot in order to conveniently search a target intelligent vehicle-mounted robot, the target intelligent vehicle-mounted robot is searched through the binding name of the intelligent vehicle-mounted robot, and the searched intelligent vehicle-mounted robot is connected. Exemplarily, intelligent vehicle-mounted robot mainly comprises bluetooth chip, MCU and LCD display screen, and the bluetooth chip carries out the bluetooth as slave unit and cell-phone APP end and is connected and realize the data transmission function, and the bluetooth chip uses the mode of broadcast to make cell-phone APP end can initiatively search for according to intelligent vehicle-mounted robot's the name of binding. The MCU is the core of data processing and logic control of the intelligent vehicle-mounted robot, communicates with the Bluetooth chip through a serial port, controls the connection of the Bluetooth chip and the mobile phone APP end, and reports the version, PSN and other information of the intelligent vehicle-mounted robot to the mobile phone APP end.
In the implementation, the intelligent vehicle-mounted robot used for receiving the expression animation is determined and connected according to the binding name of the intelligent vehicle-mounted robot, and the target intelligent vehicle-mounted robot can be conveniently and efficiently determined.
In one embodiment, before the starting transmission protocol for sending the expression animation to the intelligent vehicle-mounted robot, the method further comprises the following steps:
receiving the version and the PSN sent by the intelligent vehicle-mounted robot, and verifying whether the version and the PSN are correct or not through a cloud end; if yes, a start transmission protocol is generated.
In specific implementation, the mobile phone APP terminal receives information such as versions and PSN sent by the intelligent vehicle-mounted robot, the information such as the versions and PSN sent by the intelligent vehicle-mounted robot is uploaded to the cloud terminal by the mobile phone APP terminal to be verified, a verification result is returned to the mobile phone APP terminal, and when the verification result is correct, the mobile phone APP terminal can generate a transmission protocol.
In this embodiment, after connecting intelligent vehicle-mounted robot, receive version and PSN that intelligent vehicle-mounted robot sent to verify through high in the clouds the version and PSN is correct, need not cell-phone APP end and verifies, can effectively reduce the task volume of cell-phone APP end, and then improves the transmission efficiency of expression animation.
In one embodiment, before the starting transmission protocol for sending the expression animation to the intelligent vehicle-mounted robot, the method further comprises the following steps:
acquiring an expression animation list from a cloud; and determining the expression animation for transmission in response to the selection operation of the client based on the expression animation list.
It should be noted that the expression animation list includes a plurality of expression animations, and the mobile phone APP obtains and displays the expression animation list from the cloud.
In specific implementation, a user can select expression animations to be displayed by the intelligent vehicle-mounted robot according to an expression animation list displayed on a mobile phone screen, and the mobile phone APP terminal responds to selection operation of the user based on the expression animation list, so that the expression animations required to be transmitted to the intelligent vehicle-mounted robot by the mobile phone APP terminal are determined.
In this embodiment, because the memory space of cell-phone APP end is limited, can't save too much expression animation image and lead to can't provide too much expression animation for the user, and through obtaining expression animation list from the high in the clouds, can provide richer expression animation for the user, intelligent vehicle-mounted robot's expression animation shows also more diversified, and then effectively improves user's whole experience sense.
Step S20: after the intelligent vehicle-mounted robot verifies the transmission starting protocol, whether the intelligent vehicle-mounted robot is successfully verified or not is judged according to the received first data protocol sent by the intelligent vehicle-mounted robot.
It should be noted that, after receiving the transmission start protocol sent by the mobile phone APP, the intelligent vehicle-mounted robot checks the transmission start protocol, and the checking mode may be, but is not limited to, any one or more of parity check, CRC check, LRC check, gray code check, sum check, and xor check, and the checking method of the protocol is not limited herein.
Step S30: and if the received first data protocol sent by the intelligent vehicle-mounted robot is the request data protocol, judging that the intelligent vehicle-mounted robot is successfully verified.
In the specific implementation, the intelligent vehicle-mounted robot receives the start transmission protocol sent by the mobile phone APP terminal and checks the start transmission protocol, if the check is successful, the intelligent vehicle-mounted robot sends a request data protocol to the mobile phone APP terminal, and the mobile phone APP terminal can judge whether the intelligent vehicle-mounted robot successfully checks the start transmission protocol according to the received data protocol, namely, the mobile phone APP terminal can determine that the start transmission protocol is checked successfully after receiving the request data protocol.
Specifically, the request data protocol format is: the protocol header, the protocol length, the protocol type, the animation type, the image sequence number, the check bit and the protocol tail, and the request data protocol are as shown in the following table 2:
protocol header Protocol length Type of protocol Animation type Image sequence number Check bit Protocol tail
1Byte 2Byte 1Byte 2Byte 2Byte 1Byte 1Byte
0xEE 0x06 0x21 0~0xFFFF - - 0xFE
TABLE 2
In a specific implementation, whether the first data protocol is the request data protocol may be determined according to a protocol type in the received first data protocol, for example, the protocol type of the request data protocol is 0x21, and if the protocol type in the first data protocol received by the mobile phone APP end is 0x21, the first data protocol may be determined to be the request data protocol.
In one embodiment, if it is received that a first data protocol sent by the intelligent vehicle-mounted robot is a first error protocol, it is determined that the intelligent vehicle-mounted robot fails to verify; and judging whether the steps S10-S40 need to be repeatedly executed according to the sending flag in the first error protocol.
Specifically, the first error protocol format is: protocol header, protocol length, protocol type, error type, send flag, check bits, and protocol trailer, the first error protocol is as shown in table 3 below:
Figure BDA0003733775480000081
TABLE 3
It should be noted that the first data protocol may be determined to be a first error protocol according to a protocol type in the received first data protocol, for example, the protocol type of the first error protocol is 0x11, and if the protocol type in the first data protocol received by the mobile phone APP end is 0x11, the first data protocol may be determined to be the first error protocol and it may be determined that the verification of the intelligent vehicle-mounted robot fails. After determining that the verification of the intelligent in-vehicle robot fails, whether steps S10 to S40 need to be repeatedly performed may be determined according to a transmission flag in the first error protocol. Illustratively, if the transmission flag in the first error protocol is 0x00, the transmission protocol is stopped, and if the transmission flag in the first error protocol is 0x01, the steps S10 to S40 are repeatedly performed, that is, the transmission start transmission protocol is retransmitted. The reason for starting the transmission protocol check failure may also be determined according to the error type in the first error protocol, for example, when the error type in the first error protocol is 0x00, the reason for the check failure is a case that a protocol error occurs in the starting transmission protocol, when the error type in the first error protocol is 0x01, the reason for the check failure is a check error occurring in the check process, and when the error type in the first error protocol is 0x02, the reason for the check failure may be other reasons.
In specific implementation, the intelligent vehicle-mounted robot receives the start transmission protocol sent by the mobile phone APP terminal and checks the start transmission protocol, if the check fails, the intelligent vehicle-mounted robot sends a first error protocol to the mobile phone APP terminal, and the mobile phone APP terminal can judge whether the start transmission protocol needs to be sent again according to the sending mark received in the first error protocol.
In this embodiment, whether to resend the start transmission protocol is determined by the sending flag in the first error protocol, and the reason for the verification failure is determined by the error type in the first error protocol, so that the situation that the emotive animation image cannot be successfully transmitted due to the failure of one verification can be avoided, the re-verification can be performed according to the reason for the verification failure, and the possibility of the failure of the second verification is reduced.
Step S40: dividing the n frames of expression animation images into a plurality of image data packets, and transmitting the plurality of image data packets by using an image data protocol, so that the intelligent vehicle-mounted robot finishes expression animation display based on the plurality of image data packets.
Specifically, the format of the image data protocol is: the protocol header, the protocol length, the protocol type, the total number of packets, the packet sequence number, the image data, the check bits and the protocol trailer, and the image data protocol is as shown in the following table 4:
protocol header Protocol length Type of protocol Total number of packets Packet sequence number Image data Check bit Protocol trailer
1Byte 2Byte 1Byte 2Byte 2Byte 0x1~0x1EA 1Byte 1Byte
0xEE 0x07~0x1F0 0x02 a 0~a-1 - - 0xFE
TABLE 4
In a specific implementation, n frames of expression animation images can be divided into a image data packets, one image data packet corresponds to one image data protocol, and the corresponding image data packet can be determined according to a packet sequence number in the image protocol. And after the intelligent vehicle-mounted robot receives the a image data protocols, analyzing the image data protocols, and finishing expression animation display according to the data obtained by analysis.
In the embodiment, a starting transmission protocol of an expression animation is sent to an intelligent vehicle-mounted robot, and after the intelligent vehicle-mounted robot verifies the starting transmission protocol, whether the intelligent vehicle-mounted robot successfully verifies is judged according to a received first data protocol sent by the intelligent vehicle-mounted robot; if the first data protocol sent by the intelligent vehicle-mounted robot is the request data protocol, judging that the intelligent vehicle-mounted robot is successfully verified; dividing the n frames of expression animation images into a plurality of image data packets, and transmitting the plurality of image data packets by using an image data protocol, so that the intelligent vehicle-mounted robot finishes expression animation display based on the plurality of image data packets. According to the method and the device, transmission accidents in the transmission process can be found in time, expression animations can be transmitted to the intelligent vehicle-mounted robot completely, and therefore the intelligent vehicle-mounted robot can achieve the estimation effect when the expression animations are displayed.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for transmitting an expression animation according to a second embodiment of the present invention.
Based on the first embodiment, the method for transmitting expression animation in this embodiment divides n frames of expression animation images into a plurality of image data packets, and transmits the plurality of image data packets by using an image data protocol, including:
step S401: dividing n frames of expression cartoon images into a plurality of image data packets.
It should be noted that n frames of animation images can be equally divided into a plurality of image data packets, and the size of each image data protocol is ensured to be the same as much as possible, so that the transmission time of each image data protocol is ensured to be consistent as much as possible, and it is prevented that whether a transmission accident occurs in the process of transmitting the image data protocols cannot be judged through the transmission time when the size difference of the image data protocols is too large.
Step S402: and generating a corresponding image data protocol according to the plurality of image data packets.
It should be noted that each image data packet has a corresponding image data protocol.
Specifically, the corresponding image data packet may be determined according to a packet sequence number in the image data protocol, and differences between different image data protocols mainly lie in differences between the packet sequence number and the image data.
Step S403: and transmitting the image data protocol in sequence based on the packet sequence number in the image data protocol.
It should be noted that when dividing the n frames of expression animation images into a plurality of image data packets, the n frames of expression animation images are divided according to the expression animation image sequence, for example, the 1 st to 5 th frames of expression animation images may be divided into the image data packet with the packet number 0, the 6 th to 10 th frames of expression animation images may be divided into the image data packet with the packet number 1, and so on, to complete the division of the n frames of expression animation images into a plurality of image data packets.
Step S404: and receiving a second data protocol of the intelligent vehicle-mounted robot.
In specific implementation, after the intelligent vehicle-mounted robot receives the image data protocol each time, the intelligent vehicle-mounted robot sends a second data protocol to the mobile phone APP terminal. When the intelligent vehicle-mounted robot receives the image data protocol and successfully verifies the image data protocol, sending a receiving completion protocol to the mobile phone APP terminal; and when the intelligent vehicle-mounted robot receives the image data protocol but fails in verification, sending a second error protocol to the mobile phone APP terminal.
Specifically, the format of the receiving end partial protocol is as follows: the protocol header, the protocol length, the protocol type, the image sequence number, the flag bit, the check bit and the protocol trailer, and the receiving partial protocol are as shown in the following table 5:
Figure BDA0003733775480000101
TABLE 5
The situation after the intelligent vehicle-mounted robot receives the image data protocol can be determined according to the flag bit in the received component protocol. For example, when the flag bit in the received component protocol is 0x00, it may be determined that the image data packet is successfully transmitted, when the flag bit in the received component protocol is 0x01, it may be determined that the image data packet is incomplete, that is, there is a problem that the image data packet received by the intelligent vehicle-mounted robot is incomplete due to partial data loss in the transmission process of the image data protocol, when the flag bit in the received component protocol is 0x02, it indicates that the intelligent vehicle-mounted robot has a failure in analyzing the image data packet, and when the flag bit in the received component protocol is 0x03, it indicates that the intelligent vehicle-mounted robot has a failure in analyzing the image after analyzing the image data packet.
In specific implementation, after receiving each image data protocol, the intelligent vehicle-mounted robot sends a received sub-protocol to the mobile phone APP terminal, and if the flag bit in the second data protocol is 0x01, it indicates that the image data protocol is successfully sent, and the image data packet received by the intelligent vehicle-mounted robot is complete, the intelligent vehicle-mounted robot successfully analyzes the image data packet, and the intelligent vehicle-mounted robot successfully analyzes the image data in the image data packet. After the image data protocol is successfully sent, the intelligent vehicle-mounted robot continues to send a request data protocol to continue to request the mobile phone APP terminal to send the next image data protocol until the intelligent vehicle-mounted robot receives all the image data protocols.
Step S405: and if the second data protocol is a second error protocol, determining a corresponding image data packet according to a packet sequence number in the second error protocol, and retransmitting the corresponding image data packet.
Specifically, the format of the second error protocol is: protocol header, protocol length, protocol type, error type, send flag, packet sequence number, check bit, and protocol trailer, the second error protocol is as shown in table 6 below:
Figure BDA0003733775480000111
TABLE 6
It should be noted that, when the sending flag in the second error protocol is 0x00, the mobile phone APP will stop sending the protocol, and when the sending flag in the second error protocol is 0x01, the mobile phone APP will resend the image data protocol corresponding to the packet number. The reason for the protocol check failure may also be determined according to the error type in the second error protocol, for example, when the error type in the second error protocol is 0x00, the reason for the check failure is a case that a protocol error occurs in the image data protocol, when the error type in the second error protocol is 0x01, the reason for the check failure is a check error that occurs in the checking process, when the error type in the second error protocol is 0x02, the reason for the check failure is a packet number error in the image data protocol (the image data protocol is transmitted in sequence according to packet numbers, and the packet number in the image data protocol received by the intelligent vehicle-mounted robot at the current time is the next sequence number of the packet number in the image data protocol received at the previous time), and when the error type in the second error protocol is 0x03, the reason for the check failure is another reason.
In specific implementation, when the sending flag in the second data protocol is received to be 0x01, the image data protocol corresponding to the packet serial number is sent again until the intelligent vehicle-mounted robot receives all the image data protocols and calculates the data positions according to the packet serial numbers to re-splice the expression animations.
In this embodiment, when dividing the n frames of expression animation images into a plurality of image data packets, the sizes of the image data packets are ensured to be consistent as much as possible, so that the transmission time of each image data protocol is ensured to be consistent, and whether a transmission accident occurs in the process of transmitting the image data protocol is timely discovered through the transmission time; the image data protocols are sent in sequence based on the packet serial numbers in the image data protocols, whether the currently transmitted image data protocols are wrong or not can be determined in time according to the packet serial numbers, the image data protocols are prevented from being transmitted more or less, and therefore the intelligent vehicle-mounted robot is ensured to receive all the image data protocols, and the expression animations can be transmitted to the intelligent vehicle-mounted robot completely; the image data protocol with transmission errors can be determined according to the packet sequence number in the second error protocol, the corresponding image data protocol can be rapidly determined according to the packet sequence number, and therefore the overall transmission time for transmitting the expression animation is effectively prolonged.
In addition, an embodiment of the present invention further provides a storage medium, where an expression animation transmission program is stored on the storage medium, and when being executed by a processor, the expression animation transmission program implements the steps of the expression animation transmission method described above.
Referring to fig. 4, fig. 4 is a block diagram of an expression animation transmission device according to a first embodiment of the present invention.
As shown in fig. 4, an expression animation transmission device according to an embodiment of the present invention includes:
the sending module 10 is used for sending a starting transmission protocol of the expression animation to the intelligent vehicle-mounted robot, wherein the expression animation is composed of n frames of expression animation images;
the judging module 20 is configured to, after the intelligent vehicle-mounted robot verifies the transmission start protocol, judge whether the intelligent vehicle-mounted robot is successfully verified according to the first data protocol sent by the intelligent vehicle-mounted robot;
the sending module 10 is further configured to determine that the verification of the intelligent vehicle-mounted robot is successful when the first data protocol sent by the intelligent vehicle-mounted robot is a request data protocol;
and the transmission module 30 is configured to divide the n frames of expression animation images into a plurality of image data packets, and transmit the plurality of image data packets by using an image data protocol, so that the intelligent vehicle-mounted robot completes expression animation display based on the plurality of image data packets.
In the embodiment, a starting transmission protocol of expression animation is sent to an intelligent vehicle-mounted robot, and after the intelligent vehicle-mounted robot verifies the starting transmission protocol, whether the intelligent vehicle-mounted robot succeeds in verification is judged according to a first data protocol sent by the intelligent vehicle-mounted robot; if the first data protocol sent by the intelligent vehicle-mounted robot is the request data protocol, judging that the intelligent vehicle-mounted robot is successfully verified; dividing the n frames of expression animation images into a plurality of image data packets, and transmitting the plurality of image data packets by using an image data protocol, so that the intelligent vehicle-mounted robot finishes expression animation display based on the plurality of image data packets. According to the method and the device, transmission accidents in the transmission process can be found in time, the expression animation can be completely transmitted to the intelligent vehicle-mounted robot, and therefore the intelligent vehicle-mounted robot can achieve the estimation effect when the expression animation is displayed.
In an embodiment, the sending module 410 is further configured to:
and determining and connecting the intelligent vehicle-mounted robot for receiving the expression animation according to the binding name of the intelligent vehicle-mounted robot.
In an embodiment, the sending module 410 is further configured to:
acquiring an expression animation list from a cloud;
and determining the expression animation for transmission in response to the selection operation of the client based on the expression animation list.
In an embodiment, the determining module 420 is further configured to:
if the received first data protocol sent by the intelligent vehicle-mounted robot is a first error protocol, judging that the intelligent vehicle-mounted robot fails to verify;
and judging whether the step of transmitting the expression animation needs to be executed repeatedly according to the sending mark in the first error protocol.
In an embodiment, the transmission module 430 is further configured to:
dividing n frames of expression animation images into a plurality of image data packets;
generating a corresponding image data protocol according to the plurality of image data packets;
and transmitting the image data protocol in sequence based on the packet sequence number in the image data protocol.
In an embodiment, the transmission module 430 is further configured to:
receiving a second data protocol of the intelligent vehicle-mounted robot;
and if the second data protocol is a second error protocol, determining a corresponding image data packet according to a packet sequence number in the second error protocol, and retransmitting the corresponding image data packet.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the expression animation transmission method provided in any embodiment of the present invention, and are not described herein again.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. a Read Only Memory (ROM)/RAM, a magnetic disk, and an optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. The method for transmitting the expression animation is characterized by comprising the following steps of:
s10, sending a starting transmission protocol of expression animation to the intelligent vehicle-mounted robot, wherein the expression animation is composed of n frames of expression animation images;
s20, after the intelligent vehicle-mounted robot verifies the transmission starting protocol, judging whether the intelligent vehicle-mounted robot is successfully verified or not according to the received first data protocol sent by the intelligent vehicle-mounted robot;
s30, if the first data protocol sent by the intelligent vehicle-mounted robot is the request data protocol, judging that the intelligent vehicle-mounted robot is successfully verified;
s40, dividing the n frames of expression animation images into a plurality of image data packets, and transmitting the plurality of image data packets by using an image data protocol so that the intelligent vehicle-mounted robot can complete expression animation display based on the plurality of image data packets.
2. The method of claim 1, prior to the start transmission protocol sending emoji animations to smart in-vehicle robots, further comprising:
and determining and connecting the intelligent vehicle-mounted robot for receiving the expression animation according to the binding name of the intelligent vehicle-mounted robot.
3. The method of claim 1, prior to the start transmission protocol sending emoji animations to smart in-vehicle robots, further comprising:
receiving the version and the PSN sent by the intelligent vehicle-mounted robot, and verifying whether the version and the PSN are correct or not through a cloud end;
if yes, a start transmission protocol is generated.
4. The method of claim 1, prior to the start transmission protocol sending emoji animations to smart in-vehicle robots, further comprising:
acquiring an expression animation list from a cloud;
and determining the expression animation for transmission in response to the selection operation of the client based on the expression animation list.
5. The method of claim 1, wherein after step S20, further comprising:
s21, if the received first data protocol sent by the intelligent vehicle-mounted robot is a first error protocol, judging that the intelligent vehicle-mounted robot fails to check;
s22, judging whether the steps S10-S40 need to be executed repeatedly according to the sending flag in the first error protocol.
6. The method of claim 1, wherein said dividing the n frames of emotionally animated images into a plurality of image data packets and transmitting the plurality of image data packets in an image data protocol comprises:
dividing n frames of expression animation images into a plurality of image data packets;
generating a corresponding image data protocol according to the plurality of image data packets;
and transmitting the image data protocol in sequence based on the packet sequence number in the image data protocol.
7. The method of claim 6, wherein after the transmitting the image data protocol in order based on the packet sequence number in the image data protocol, further comprising:
receiving a second data protocol of the intelligent vehicle-mounted robot;
and if the second data protocol is a second error protocol, determining a corresponding image data packet according to a packet sequence number in the second error protocol, and retransmitting the corresponding image data packet.
8. An expression animation transmission device, characterized by comprising:
the sending module is used for sending a starting transmission protocol of the expression animation to the intelligent vehicle-mounted robot, wherein the expression animation is composed of n frames of expression animation images;
the judging module is used for judging whether the intelligent vehicle-mounted robot is successfully verified according to the received first data protocol sent by the intelligent vehicle-mounted robot after the intelligent vehicle-mounted robot verifies the transmission starting protocol;
the sending module is further used for judging that the verification of the intelligent vehicle-mounted robot is successful when the first data protocol sent by the intelligent vehicle-mounted robot is the request data protocol;
and the transmission module is used for dividing the n frames of expression animation images into a plurality of image data packets and transmitting the plurality of image data packets by using an image data protocol so that the intelligent vehicle-mounted robot can finish expression animation display based on the plurality of image data packets.
9. An emoticon transmission apparatus, characterized in that the apparatus comprises: a memory, a processor and an emoji animation transmission program stored on the memory and executable on the processor, the emoji animation transmission program being configured to implement the steps of the emoji animation transmission method as claimed in any one of claims 1 to 7.
10. A storage medium, characterized in that the storage medium has stored thereon an emoji animation transmission program which, when executed by a processor, implements the steps of the emoji animation transmission method according to any one of claims 1 to 7.
CN202210790631.2A 2022-07-06 2022-07-06 Expression animation transmission method, device, equipment and storage medium Pending CN115314485A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210790631.2A CN115314485A (en) 2022-07-06 2022-07-06 Expression animation transmission method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210790631.2A CN115314485A (en) 2022-07-06 2022-07-06 Expression animation transmission method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115314485A true CN115314485A (en) 2022-11-08

Family

ID=83857296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210790631.2A Pending CN115314485A (en) 2022-07-06 2022-07-06 Expression animation transmission method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115314485A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030187915A1 (en) * 2002-03-29 2003-10-02 Xian-He Sun Communication and process migration protocols for distributed heterogenous computing
CN1728750A (en) * 2004-07-27 2006-02-01 邓里文 Method of packet voice communication
CN1728814A (en) * 2004-07-27 2006-02-01 邓里文 Communication method of video telephone
JP2013258542A (en) * 2012-06-12 2013-12-26 Idec Corp Robot control system, moving image transfer method, and moving image transfer program
CN104639425A (en) * 2015-01-06 2015-05-20 广州华多网络科技有限公司 Network expression playing method and system and service equipment
US9232345B1 (en) * 2014-07-18 2016-01-05 The Boeing Company Close proximity vehicular data transmission
CN110113323A (en) * 2019-04-20 2019-08-09 深圳瀚星翔科技有限公司 A kind of communication means, electronic equipment and computer readable storage medium
CN111787386A (en) * 2020-06-01 2020-10-16 深圳市战音科技有限公司 Animation compression method, animation display method, animation compression device, animation processing system, and storage medium
CN113760808A (en) * 2021-07-23 2021-12-07 苏州浪潮智能科技有限公司 Power supply primary and secondary serial port communication method, system and storage medium
JP2022056190A (en) * 2020-09-29 2022-04-08 パナソニックIpマネジメント株式会社 On-vehicle handsfree device and communication control method
CN114661330A (en) * 2022-05-25 2022-06-24 武汉海微科技有限公司 Vehicle hardware program updating method, device, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030187915A1 (en) * 2002-03-29 2003-10-02 Xian-He Sun Communication and process migration protocols for distributed heterogenous computing
CN1728750A (en) * 2004-07-27 2006-02-01 邓里文 Method of packet voice communication
CN1728814A (en) * 2004-07-27 2006-02-01 邓里文 Communication method of video telephone
JP2013258542A (en) * 2012-06-12 2013-12-26 Idec Corp Robot control system, moving image transfer method, and moving image transfer program
US9232345B1 (en) * 2014-07-18 2016-01-05 The Boeing Company Close proximity vehicular data transmission
CN104639425A (en) * 2015-01-06 2015-05-20 广州华多网络科技有限公司 Network expression playing method and system and service equipment
CN110113323A (en) * 2019-04-20 2019-08-09 深圳瀚星翔科技有限公司 A kind of communication means, electronic equipment and computer readable storage medium
CN111787386A (en) * 2020-06-01 2020-10-16 深圳市战音科技有限公司 Animation compression method, animation display method, animation compression device, animation processing system, and storage medium
JP2022056190A (en) * 2020-09-29 2022-04-08 パナソニックIpマネジメント株式会社 On-vehicle handsfree device and communication control method
CN113760808A (en) * 2021-07-23 2021-12-07 苏州浪潮智能科技有限公司 Power supply primary and secondary serial port communication method, system and storage medium
CN114661330A (en) * 2022-05-25 2022-06-24 武汉海微科技有限公司 Vehicle hardware program updating method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
车朝雄;赵彦敏;: "车载图像传输系统软件的设计与实现", 福州大学学报(自然科学版), no. 01, 28 February 2007 (2007-02-28) *

Similar Documents

Publication Publication Date Title
US20170329565A1 (en) Information processing method, client, server, and computer-readable storage medium
CN109726108B (en) Front-end code testing method, device, system and medium based on analog data
US20200339139A1 (en) Automobile diagnostic method, apparatus, device and system, and diagnostic connection device
CN109376088B (en) Automatic test system and automatic test method
CN112637842B (en) Screen projection equipment connection method, system, equipment and storage medium
CN112039896B (en) Data processing method, equipment, server and storage medium
CN108322437B (en) Adaptive communication method and device for multiple protocol devices
CN111475788B (en) Account registration method, device, terminal and storage medium for cross-border e-commerce platform
CN111694625B (en) Method and equipment for projecting screen from car box to car machine
CN112615753A (en) Link abnormity tracking method, first node, second node and link
CN114363225B (en) MTQQ protocol-based equipment debugging mode, system and storage medium
CN113795015B (en) Data transmission method, device, equipment and computer readable storage medium
CN111432426B (en) Method, device, equipment and storage medium for testing Bluetooth transmission speed
CN106095886B (en) Data processing method and device
CN112579452A (en) Software automation test method, device, equipment and storage medium
CN109951549B (en) Network page access method and device and computer readable storage medium
CN115314485A (en) Expression animation transmission method, device, equipment and storage medium
CN109286689B (en) Information sending method and device and vehicle-mounted man-vehicle interaction terminal
CN113630404B (en) Protocol message transmission method, device, storage medium and terminal
CN114745681B (en) Rich media information display method, rich media information display equipment and computer storage medium
CN110225097B (en) Information processing method, device and storage medium
CN106156235B (en) Picture downloading method and system based on Android platform
CN112491994B (en) Identification method and communication device of Internet of vehicles terminal
CN114968822A (en) Interface testing method and device, computer equipment and storage medium
CN112346366A (en) Control method, device and equipment of terminal equipment and computer readable storage medium

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