CN114765753A - Communication method and device of vehicle-mounted terminal, terminal equipment and storage medium - Google Patents

Communication method and device of vehicle-mounted terminal, terminal equipment and storage medium Download PDF

Info

Publication number
CN114765753A
CN114765753A CN202110012446.6A CN202110012446A CN114765753A CN 114765753 A CN114765753 A CN 114765753A CN 202110012446 A CN202110012446 A CN 202110012446A CN 114765753 A CN114765753 A CN 114765753A
Authority
CN
China
Prior art keywords
vehicle
mounted terminal
instruction
communication
authentication
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
CN202110012446.6A
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.)
Guangzhou Automobile Group Co Ltd
Original Assignee
Guangzhou Automobile Group 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 Guangzhou Automobile Group Co Ltd filed Critical Guangzhou Automobile Group Co Ltd
Priority to CN202110012446.6A priority Critical patent/CN114765753A/en
Publication of CN114765753A publication Critical patent/CN114765753A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
    • 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

Landscapes

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

Abstract

The invention relates to the technical field of vehicle communication, and discloses a communication method, a device, terminal equipment and a storage medium of a vehicle-mounted terminal, wherein the method comprises the following steps: receiving a message to be issued; the message to be issued at least comprises vehicle-mounted terminal information of the message to be received and issued; acquiring an authentication protocol of the vehicle-mounted terminal from a preset communication protocol list according to the message to be issued; the authentication protocol is a communication protocol which passes negotiation authentication between the vehicle-mounted system and the vehicle-mounted terminal, and the authentication protocol and the vehicle-mounted terminal are in one-to-one correspondence; and transmitting the message to be issued to a corresponding vehicle-mounted terminal according to the authentication protocol. According to the invention, the communication protocol list which can be directly communicated between the vehicle-mounted terminal and the vehicle-mounted system is generated through the pre-negotiation authentication of the vehicle-mounted system and the vehicle-mounted terminal, so that the problem of low transmission efficiency of the message routing when a large amount of communication data are concurrently transmitted is effectively solved.

Description

Communication method and device of vehicle-mounted terminal, terminal equipment and storage medium
Technical Field
The present invention relates to the field of vehicle communication technologies, and in particular, to a communication method and apparatus for a vehicle-mounted terminal, a terminal device, and a storage medium.
Background
With the development of the technology, more and more intelligent vehicle-mounted devices are applied to vehicles, and the vehicle-mounted devices need to establish a communication relationship with a vehicle-mounted device system to normally work, so that the communication between the vehicle-mounted device system and the vehicle-mounted devices becomes more important.
At present, communication between a vehicle-mounted machine system and a vehicle-mounted terminal is mainly transmitted through a message route, and in the mode, because all information data are communicated by taking the message route as a medium, the vehicle-mounted machine system and the vehicle-mounted terminal cannot be directly communicated, and when the transmission data volume is large, the problem of low message transmission efficiency can occur.
Disclosure of Invention
The embodiment of the invention aims to provide a communication method and device of a vehicle-mounted terminal, terminal equipment and a storage medium, a communication protocol list which can be directly communicated between a vehicle-mounted system and the vehicle-mounted terminal is generated through pre-negotiation authentication of the vehicle-mounted system and the vehicle-mounted terminal, and the problem of low transmission efficiency of a message route when a large amount of communication data are sent concurrently is effectively solved.
In order to achieve the above object, an embodiment of the present invention provides a communication method for a vehicle-mounted terminal, including the following steps:
receiving a message to be issued; the message to be issued at least comprises vehicle-mounted terminal information of the message to be received and issued;
acquiring an authentication protocol of the vehicle-mounted terminal from a preset communication protocol list according to the message to be issued; the authentication protocol is a communication protocol which passes negotiation authentication between the vehicle-mounted system and the vehicle-mounted terminal, and the authentication protocol and the vehicle-mounted terminal are in one-to-one correspondence;
and transmitting the message to be issued to a corresponding vehicle-mounted terminal according to the authentication protocol.
Preferably, before the receiving the message to be sent, the method further includes:
receiving an instruction requesting to generate a communication protocol list, generating a communication negotiation instruction, and sending the communication negotiation instruction to each vehicle-mounted terminal through a message route; wherein the communication negotiation instructions comprise a plurality of different communication protocols;
receiving a negotiation authentication instruction returned by each vehicle-mounted terminal through the message route; the negotiation authentication instruction comprises an ID of a corresponding vehicle-mounted terminal and a communication protocol authenticated from the communication negotiation instruction;
and generating the preset communication protocol list according to the negotiation authentication instruction.
Preferably, the method further comprises:
receiving an instruction requesting to verify a communication protocol list, generating a verification instruction, and sending the verification instruction to each vehicle-mounted terminal according to the communication protocol list; the verification instruction comprises verification information and authentication protocols of all vehicle-mounted terminals;
receiving a feedback instruction returned by the vehicle-mounted terminal according to the corresponding authentication protocol; the feedback instruction comprises feedback information of the vehicle-mounted terminal responding to the verification information;
judging whether an unrevealed vehicle-mounted terminal exists in a preset time period or not;
and when the vehicle-mounted terminal which is not fed back exists, updating the preset communication protocol list.
Preferably, after the receiving of the feedback instruction returned by the vehicle-mounted terminal according to the corresponding authentication protocol, the method further includes:
judging whether feedback information in the feedback instruction is abnormal or not;
and when the feedback information is abnormal, updating the preset communication protocol list.
Preferably, the method further comprises:
and when detecting that a new vehicle-mounted terminal appears, updating the preset communication protocol list.
The embodiment of the invention also provides a communication device of the vehicle-mounted terminal, which comprises the following components:
the message receiving module is used for receiving the message to be issued; the message to be issued at least comprises vehicle-mounted terminal information of the message to be received and issued;
the protocol acquisition module is used for acquiring the authentication protocol of the vehicle-mounted terminal from a preset communication protocol list according to the message to be issued; the authentication protocol is a communication protocol which passes negotiation authentication between a vehicle-mounted terminal and a vehicle-mounted system, and the authentication protocols correspond to the vehicle-mounted terminals one to one;
and the message transmission module is used for transmitting the message to be issued to the corresponding vehicle-mounted terminal according to the authentication protocol.
Preferably, the apparatus further comprises:
the negotiation instruction generating module is used for receiving an instruction for requesting to generate a communication protocol list, generating a communication negotiation instruction and sending the communication negotiation instruction to each vehicle-mounted terminal through a message route; wherein the communication negotiation instructions comprise a plurality of different communication protocols;
the authentication receiving instruction module is used for receiving a negotiation authentication instruction returned by each vehicle-mounted terminal through the message route; the negotiation authentication instruction comprises an ID of a corresponding vehicle-mounted terminal and a communication protocol authenticated from the communication negotiation instruction;
and the communication list generating module is used for generating the preset communication protocol list according to the negotiation authentication instruction.
Preferably, the apparatus further comprises:
the verification instruction generating module is used for receiving an instruction for requesting verification of a communication protocol list, generating a verification instruction and sending the verification instruction to each vehicle-mounted terminal according to the communication protocol list; the verification instruction comprises verification information and authentication protocols of all vehicle-mounted terminals;
the feedback instruction receiving module is used for receiving a feedback instruction returned by the vehicle-mounted terminal according to the corresponding authentication protocol; the feedback instruction comprises feedback information of the vehicle-mounted terminal responding to the verification information;
the first judgment module is used for judging whether the vehicle-mounted terminal which is not fed back exists in a preset time period;
and the first updating module is used for updating the preset communication protocol list when the vehicle-mounted terminal without feedback exists.
Correspondingly, the embodiment of the invention also provides terminal equipment, which comprises a processor, a memory and a computer program which is stored in the memory and configured to be executed by the processor, wherein the processor realizes the communication method of the vehicle-mounted terminal according to any one of the above items when executing the computer program.
The embodiment of the invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program runs, the device where the computer-readable storage medium is located is controlled to execute the communication method of the vehicle-mounted terminal according to any one of the above items.
Compared with the prior art, the communication method, the communication device, the communication terminal equipment and the storage medium of the vehicle-mounted terminal disclosed by the embodiment of the invention generate the communication protocol list which can be directly communicated between the vehicle-mounted system and the vehicle-mounted terminal through the pre-negotiation authentication of the vehicle-mounted system and the vehicle-mounted terminal, and effectively solve the problem of low transmission efficiency when a message route concurrently transmits a large amount of communication data.
Drawings
Fig. 1 is a schematic flowchart of an embodiment of a communication method of a vehicle-mounted terminal according to the present invention;
FIG. 2 is a flowchart illustrating another embodiment of a communication method of a vehicle-mounted terminal according to the present invention;
FIG. 3 is a schematic diagram illustrating components of an embodiment of a communication negotiation instruction provided in the present invention;
FIG. 4 is a schematic diagram illustrating components of an embodiment of a negotiate authentication instruction;
FIG. 5 is a block diagram illustrating one embodiment of a validate instruction provided by the present invention;
FIG. 6 is a block diagram illustrating an embodiment of a feedback instruction provided by the present invention;
FIG. 7 is a schematic structural diagram of an embodiment of a communication device of a vehicle-mounted terminal according to the present invention;
fig. 8 is a schematic structural diagram of an embodiment of a terminal device provided in 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.
Referring to fig. 1, which is a flowchart illustrating an embodiment of a communication method of a vehicle-mounted terminal according to the present invention, the method includes steps S1 to S3:
s1, receiving a message to be issued; the message to be issued at least comprises vehicle-mounted terminal information of the message to be received and issued;
s2, acquiring an authentication protocol of the vehicle-mounted terminal from a preset communication protocol list according to the message to be issued; the authentication protocol is a communication protocol which passes negotiation authentication between the vehicle-mounted system and the vehicle-mounted terminal, and the authentication protocol and the vehicle-mounted terminal are in one-to-one correspondence;
and S3, directly transmitting the message to be issued to the corresponding vehicle-mounted terminal according to the authentication protocol.
Specifically, the above steps are performed by a vehicle system of the vehicle. Generally, a car machine system acquires a message to be issued from a message center, that is, receives a message to be issued; the message to be issued at least comprises vehicle-mounted terminal information of the message to be received and issued. Generally, the in-vehicle terminal information is an ID of the in-vehicle terminal.
And acquiring the authentication protocol of the vehicle-mounted terminal from a preset communication protocol list according to the message to be issued, wherein the communication protocol list records the one-to-one correspondence relationship between the authentication protocol of the vehicle-mounted terminal and the ID, so that the corresponding authentication protocol of the vehicle-mounted terminal can be found from the communication protocol list. The authentication protocol is a communication protocol which passes negotiation authentication between the vehicle-mounted system and the vehicle-mounted terminal, and the authentication protocol corresponds to the vehicle-mounted terminal one to one.
And directly transmitting the message to be issued to the corresponding vehicle-mounted terminal according to the authentication protocol. After receiving the message to be issued, the vehicle-mounted terminal analyzes and identifies the message to be issued according to an authentication protocol stored in the vehicle-mounted terminal, and obtains the content of the message to be issued. In the message transmission process, the vehicle-mounted terminal and the vehicle-mounted terminal directly communicate through the authentication protocol without transmission through an intermediate medium of message routing, so that the message transmission efficiency is effectively improved.
In order to more clearly understand the implementation process of the present invention, a schematic flow diagram of another embodiment of a communication method of a vehicle-mounted terminal is further provided in the present invention, and refer to fig. 2.
According to the communication method of the vehicle-mounted terminal provided by the embodiment of the invention, the communication protocol list which can be directly communicated between the vehicle-mounted system and the vehicle-mounted terminal is generated through the pre-negotiation authentication of the vehicle-mounted system and the vehicle-mounted terminal, so that the problem of low transmission efficiency of a message route when a large amount of communication data is transmitted concurrently is effectively solved.
As an improvement of the above scheme, before the receiving the message to be sent, the method further includes:
receiving an instruction requesting to generate a communication protocol list, generating a communication negotiation instruction, and sending the communication negotiation instruction to each vehicle-mounted terminal through a message route; wherein the communication negotiation instruction comprises a plurality of different communication protocols;
receiving a negotiation authentication instruction returned by each vehicle-mounted terminal through the message route; the negotiation authentication instruction comprises an ID of a corresponding vehicle-mounted terminal and a communication protocol authenticated from the communication negotiation instruction;
and generating the preset communication protocol list according to the negotiation authentication instruction.
Specifically, before the in-vehicle system communicates with each vehicle-mounted terminal according to the authentication protocol, a communication protocol list needs to be established first, and this embodiment mainly describes a generation flow of the communication protocol list. After receiving the command requesting to generate the communication protocol list, the vehicle-mounted system generates a communication negotiation command and sends the communication negotiation command to each vehicle-mounted terminal through a message route; wherein the communication negotiation instruction comprises a plurality of different communication protocols.
And when the vehicle-mounted terminal receives the communication negotiation instruction, analyzing the communication negotiation instruction to obtain a plurality of communication protocols, and selecting one of the communication protocols as a communication protocol between the vehicle-mounted terminal and the vehicle-mounted machine system. And after the communication protocol is selected, packaging the communication protocol and the ID of the communication protocol and the ID to form a negotiation authentication instruction, and returning the negotiation authentication instruction to the vehicle-mounted machine system. That is to say, the vehicle-mounted terminal will respond to the communication negotiation command sent by the vehicle-mounted system, and generate a negotiation authentication command.
The vehicle-mounted terminal system receives a negotiation authentication instruction returned by each vehicle-mounted terminal through a message route; the negotiation authentication instruction comprises the ID of the corresponding vehicle-mounted terminal and the communication protocol authenticated from the communication negotiation instruction. And the communication protocol authenticated from the communication negotiation instruction is the authentication protocol corresponding to the vehicle-mounted terminal.
And generating a preset communication protocol list according to the negotiation authentication instruction. Because the negotiation authentication instruction comprises the ID and the authentication protocol of the vehicle-mounted terminal, the vehicle-mounted system can analyze and obtain the ID information and the authentication protocol corresponding to different vehicle-mounted terminals after receiving the negotiation authentication instruction fed back by all different vehicle-mounted terminals, simultaneously establish a communication protocol list, fill the ID information and the authentication protocol corresponding to all the vehicle-mounted terminals into the list, and generate the communication protocol list.
And after the communication protocol list is generated, all subsequent message transmission actions are directly sent to different vehicle-mounted terminals by the vehicle-mounted system through the authentication protocol.
As an improvement of the above scheme, the method further comprises:
receiving an instruction requesting to verify a communication protocol list, generating a verification instruction, and sending the verification instruction to each vehicle-mounted terminal according to the communication protocol list; the verification instruction comprises verification information and authentication protocols of all vehicle-mounted terminals;
receiving a feedback instruction returned by the vehicle-mounted terminal according to the corresponding authentication protocol; the feedback instruction comprises feedback information of the vehicle-mounted terminal responding to the verification information;
judging whether an unrevealed vehicle-mounted terminal exists in a preset time period or not;
and when the vehicle-mounted terminal which is not fed back exists, updating the preset communication protocol list.
Specifically, in order to verify the feasibility of the communication protocol list, the embodiment of the present invention also verifies the communication protocol list, and the verification process is performed by using an authentication protocol, so that the rate of data transmission can be further increased without using message routing. That is to say, after the communication protocol list is generated, if the authentication protocol of the vehicle-mounted terminal changes, the verification can be performed through the following steps, and when the verification is abnormal, the list is updated through the message route without updating through the message route every time, so that the data transmission rate is effectively improved.
The vehicle-mounted terminal generates a verification instruction after receiving the instruction requesting verification of the communication protocol list, and sends the verification instruction to each vehicle-mounted terminal according to the communication protocol list; the verification instruction comprises verification information and authentication protocols of all vehicle-mounted terminals. The specific content of the verification information may be changed or modified according to the actual application requirement, and is not limited herein.
And after receiving the verification instruction, the vehicle-mounted terminal responds to the verification instruction to generate a feedback instruction and sends the feedback instruction to the vehicle-mounted system.
The vehicle-mounted terminal receives a feedback instruction returned by the vehicle-mounted terminal according to the corresponding authentication protocol; and the feedback instruction comprises feedback information of the vehicle-mounted terminal responding to the verification information. The specific content of the feedback information may be changed or modified according to the actual application requirement, and is not limited herein.
And judging whether the vehicle-mounted terminal which is not fed back exists in a preset time period. Under the normal condition, in the preset time quantum, the vehicle-mounted machine system can receive the feedback instructions of all the vehicle-mounted terminals, when the abnormality occurs, the vehicle-mounted machine system cannot receive the feedback instructions of all the vehicle-mounted terminals, and the vehicle-mounted terminals without feedback can be identified. The in-vehicle terminal having no feedback information generally transmits a changed in-vehicle terminal for a newly added in-vehicle terminal or a communication protocol.
When there is an unreeeded vehicle-mounted terminal, the vehicle-mounted system needs to repeatedly execute the steps of the second embodiment on the vehicle-mounted terminal, that is, send a communication negotiation instruction to the vehicle-mounted terminal through a message route, receive a negotiation authentication instruction returned by the vehicle-mounted terminal through the message route, update the ID of the vehicle-mounted terminal and a new authentication protocol included in the negotiation authentication instruction into an original communication protocol list, and update a preset communication protocol list.
As an improvement of the above scheme, after the receiving of the feedback instruction returned by the vehicle-mounted terminal according to the corresponding authentication protocol, the method further includes:
judging whether feedback information in the feedback instruction is abnormal or not;
and when the feedback information is abnormal, updating the preset communication protocol list.
Specifically, even if the in-vehicle system can receive the feedback instructions of all the vehicle-mounted terminals, the communication between the in-vehicle system and the vehicle-mounted terminals still may have risks, and in order to deepen the reliability of the communication, the embodiment of the invention also verifies the feedback instructions and judges whether the feedback information in the feedback instructions is abnormal.
Generally, the vehicle-mounted terminal system presets verification information and corresponding feedback information, and sends the feedback information to each vehicle-mounted terminal for storage. When the vehicle-mounted terminal receives the verification instruction, the verification information can be obtained through analysis, then the corresponding feedback information stored by the vehicle-mounted terminal is obtained according to the verification information, the feedback information is returned to the vehicle-mounted system, and the vehicle-mounted system can compare whether the received feedback information is consistent with the preset feedback information or not, so that whether the feedback information of the vehicle-mounted terminal is abnormal or not is judged.
When the feedback information is abnormal, the vehicle-mounted terminal is considered to be abnormal in state, protocol negotiation needs to be carried out again, and a preset communication protocol list is updated. And when the feedback information is not abnormal, the communication between the vehicle-mounted terminal system and the corresponding vehicle-mounted terminal is considered to be reliable, and a preset communication protocol list does not need to be updated.
As an improvement of the above scheme, the method further comprises:
and when detecting that a new vehicle-mounted terminal appears, updating the preset communication protocol list.
Specifically, when the new vehicle-mounted terminal is detected to appear, the preset communication protocol list is updated. In this case, when the in-vehicle device system accesses a new in-vehicle terminal and the communication protocol list is not verified yet, and the new in-vehicle terminal is detected, the in-vehicle terminal may be directly negotiated and authenticated.
In the negotiation authentication process, the in-vehicle system needs to repeatedly execute the steps of the second embodiment on the vehicle-mounted terminal, that is, send a communication negotiation instruction to the vehicle-mounted terminal through the message routing, receive the negotiation authentication instruction returned by the vehicle-mounted terminal through the message routing, add the ID and the authentication protocol of the vehicle-mounted terminal included in the negotiation authentication instruction to the original communication protocol list, and update the preset communication protocol list.
As an improvement of the above scheme, refer to fig. 3, which is a schematic composition diagram of an embodiment of a communication negotiation instruction provided by the present invention. As can be seen from fig. 3, the communication negotiation instruction includes a first padding header, a plurality of communication protocols, and a first padding trailer. Fig. 4 is a schematic diagram illustrating a composition of an embodiment of a negotiation authentication instruction provided in the present invention. As can be seen from fig. 4, the negotiation authentication instruction includes a second padding header, an authentication protocol, an ID of the corresponding vehicle terminal, and a second padding trailer. Referring to fig. 5, a schematic diagram illustrating an embodiment of a validation instruction according to the present invention is shown. The verification instruction comprises a third padding header, verification information, an authentication protocol and a third padding trailer. Fig. 6 is a schematic diagram illustrating a composition of an embodiment of a feedback instruction according to the present invention. The feedback instruction includes a fourth fill header, feedback information, and a fourth fill trailer.
Referring to fig. 7, it is a schematic structural diagram of an embodiment of a communication device of a vehicle-mounted terminal provided in the present invention, where the device includes:
a message receiving module 11, configured to receive a message to be issued; the message to be issued at least comprises vehicle-mounted terminal information of the message to be received and issued;
the protocol acquisition module 12 is configured to acquire an authentication protocol of the vehicle-mounted terminal from a preset communication protocol list according to the message to be issued; the authentication protocol is a communication protocol which passes negotiation authentication between a vehicle-mounted terminal and a vehicle-mounted system, and the authentication protocols correspond to the vehicle-mounted terminals one to one;
and the message transmission module 13 is configured to directly transmit the message to be issued to the corresponding vehicle-mounted terminal according to the authentication protocol.
Preferably, the apparatus further comprises:
the negotiation instruction generating module is used for receiving an instruction for requesting to generate a communication protocol list, generating a communication negotiation instruction and sending the communication negotiation instruction to each vehicle-mounted terminal through a message route; wherein the communication negotiation instructions comprise a plurality of different communication protocols;
the authentication receiving instruction module is used for receiving a negotiation authentication instruction returned by each vehicle-mounted terminal through the message route; the negotiation authentication instruction comprises an ID of a corresponding vehicle-mounted terminal and a communication protocol authenticated from the communication negotiation instruction;
and the communication list generating module is used for generating the preset communication protocol list according to the negotiation authentication instruction.
Preferably, the apparatus further comprises:
the verification instruction generating module is used for receiving an instruction for requesting verification of a communication protocol list, generating a verification instruction and sending the verification instruction to each vehicle-mounted terminal according to the communication protocol list; the verification instruction comprises verification information and authentication protocols of all vehicle-mounted terminals;
the feedback instruction receiving module is used for receiving a feedback instruction returned by the vehicle-mounted terminal according to the corresponding authentication protocol; the feedback instruction comprises feedback information of the vehicle-mounted terminal responding to the verification information;
the first judgment module is used for judging whether the vehicle-mounted terminal which is not fed back exists in a preset time period;
and the first updating module is used for updating the preset communication protocol list when the vehicle-mounted terminal which is not fed back exists.
Preferably, the apparatus further comprises:
the second judgment module is used for judging whether the feedback information in the feedback instruction is abnormal or not;
and the second updating module is used for updating the preset communication protocol list when the feedback information is abnormal.
Preferably, the apparatus further comprises:
and the third updating module is used for updating the preset communication protocol list when detecting that a new vehicle-mounted terminal appears.
Preferably, the communication negotiation instruction comprises a first padding header, a plurality of communication protocols and a first padding trailer.
Preferably, the negotiation authentication instruction includes a second padding header, an authentication protocol, an ID of the corresponding in-vehicle terminal, and a second padding trailer.
The communication device of the vehicle-mounted terminal provided in the embodiment of the present invention can implement all the processes of the communication method of the vehicle-mounted terminal described in any one of the embodiments, and the functions and the implemented technical effects of each module and unit in the device are respectively the same as those of the communication method of the vehicle-mounted terminal described in the embodiment described above, and are not described herein again.
Referring to fig. 8, which is a schematic structural diagram of an embodiment of the terminal device provided in the present invention, the terminal device includes a processor 10, a memory 20, and a computer program stored in the memory 20 and configured to be executed by the processor 10, and when the processor 10 executes the computer program, the communication method of the in-vehicle terminal according to any of the embodiments is implemented.
Illustratively, the computer program may be divided into one or more modules/units, which are stored in the memory 20 and executed by the processor 10 to implement the present invention. One or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in a communication method of an in-vehicle terminal. For example, the computer program may be divided into a message receiving module, a protocol acquiring module and a message transmitting module, and the specific functions of the modules are as follows:
a message receiving module 11, configured to receive a message to be issued; the message to be issued at least comprises vehicle-mounted terminal information of the message to be received and issued;
the protocol acquisition module 12 is configured to acquire an authentication protocol of the vehicle-mounted terminal from a preset communication protocol list according to the message to be issued; the authentication protocol is a communication protocol which passes negotiation authentication between the vehicle-mounted system and the vehicle-mounted terminal, and the authentication protocol and the vehicle-mounted terminal are in one-to-one correspondence;
and the message transmission module 13 is used for directly transmitting the message to be issued to the corresponding vehicle-mounted terminal according to the authentication protocol.
The terminal device may include, but is not limited to, a processor, a memory. It will be understood by those skilled in the art that the schematic diagram 8 is merely an example of a terminal device, and is not intended to limit the terminal device, and may include more or less components than those shown, or some components may be combined, or different components, for example, the terminal device may further include an input-output device, a network access device, a bus, etc.
The Processor 10 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor 10 may be any conventional processor or the like, the processor 10 being the control center of the terminal device and connecting the various parts of the whole terminal device with various interfaces and lines.
The memory 20 may be used to store the computer programs and/or modules, and the processor 10 implements various functions of the in-vehicle terminal by operating or executing the computer programs and/or modules stored in the memory 20 and calling data stored in the memory 20. The memory 20 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory 20 may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the module integrated by the terminal device can be stored in a computer readable storage medium if it is implemented in the form of software functional unit and sold or used as an independent product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium and can implement the steps of the embodiments of the method when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, software distribution medium, etc. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, a device where the computer-readable storage medium is located is controlled to execute the communication method of the vehicle-mounted terminal according to any one of the foregoing embodiments.
To sum up, the communication negotiation method, the communication negotiation apparatus, the terminal device, and the storage medium of the vehicle-mounted terminal provided in the embodiments of the present invention are established between the vehicle-mounted system and different vehicle-mounted terminals by generating the communication negotiation instruction, so that the vehicle-mounted system can directly perform information interaction with different vehicle-mounted terminals according to the communication protocol list, and data transmission is not required through the message route, thereby solving the technical defect problem that direct communication cannot be performed between the sending terminal and the receiving terminal, and avoiding the risk of low message transmission efficiency due to the limitation of the message route when the amount of transmitted data is huge. Meanwhile, the invention can also realize the update of the communication protocol list, effectively solve the problem of incompatibility caused when the communication protocol of the vehicle-mounted terminal is changed, and improve the transmission rate of the information data between the sending terminal and the receiving terminal under the condition of solving the compatibility among different vehicle-mounted terminals.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A communication method of a vehicle-mounted terminal is characterized by comprising the following steps:
receiving a message to be issued; the message to be issued at least comprises vehicle-mounted terminal information of the message to be received and issued;
acquiring an authentication protocol of the vehicle-mounted terminal from a preset communication protocol list according to the message to be issued; the authentication protocol is a communication protocol which passes negotiation authentication between a vehicle-mounted terminal and a vehicle-mounted system, and the authentication protocols correspond to the vehicle-mounted terminals one to one;
and transmitting the message to be issued to a corresponding vehicle-mounted terminal according to the authentication protocol.
2. The communication method of the in-vehicle terminal according to claim 1, further comprising, before the receiving the message to be issued:
receiving an instruction requesting to generate a communication protocol list, generating a communication negotiation instruction, and sending the communication negotiation instruction to each vehicle-mounted terminal through a message route; wherein the communication negotiation instructions comprise a plurality of different communication protocols;
receiving a negotiation authentication instruction returned by each vehicle-mounted terminal through the message route; the negotiation authentication instruction comprises an ID of a corresponding vehicle-mounted terminal and a communication protocol authenticated from the communication negotiation instruction;
and generating the preset communication protocol list according to the negotiation authentication instruction.
3. The communication method of the in-vehicle terminal according to claim 1, characterized by further comprising:
receiving an instruction requesting to verify a communication protocol list, generating a verification instruction, and sending the verification instruction to each vehicle-mounted terminal according to the communication protocol list; the verification instruction comprises verification information and authentication protocols of all vehicle-mounted terminals;
receiving a feedback instruction returned by the vehicle-mounted terminal according to the corresponding authentication protocol; the feedback instruction comprises feedback information of the vehicle-mounted terminal responding to the verification information;
judging whether an unrevealed vehicle-mounted terminal exists in a preset time period or not;
and when the vehicle-mounted terminal which is not fed back exists, updating the preset communication protocol list.
4. The communication method of the vehicle-mounted terminal according to claim 3, wherein after receiving the feedback instruction returned by the vehicle-mounted terminal according to the corresponding authentication protocol, the method further comprises the following steps:
judging whether feedback information in the feedback instruction is abnormal or not;
and when the feedback information is abnormal, updating the preset communication protocol list.
5. The communication method of the in-vehicle terminal according to any one of claims 1 to 4, characterized by further comprising:
and when detecting that a new vehicle-mounted terminal appears, updating the preset communication protocol list.
6. A communication apparatus of a vehicle-mounted terminal, characterized by comprising:
the message receiving module is used for receiving the message to be issued; the message to be issued at least comprises vehicle-mounted terminal information of the message to be received and issued;
the protocol acquisition module is used for acquiring the authentication protocol of the vehicle-mounted terminal from a preset communication protocol list according to the message to be issued; the authentication protocol is a communication protocol which passes negotiation authentication between a vehicle-mounted terminal and a vehicle-mounted system, and the authentication protocols correspond to the vehicle-mounted terminals one to one;
and the message transmission module is used for transmitting the message to be issued to the corresponding vehicle-mounted terminal according to the authentication protocol.
7. The communication apparatus of the in-vehicle terminal according to claim 6, characterized in that the apparatus further comprises:
the negotiation instruction generating module is used for receiving an instruction for requesting to generate a communication protocol list, generating a communication negotiation instruction and sending the communication negotiation instruction to each vehicle-mounted terminal through a message route; wherein the communication negotiation instructions comprise a plurality of different communication protocols;
the authentication receiving instruction module is used for receiving a negotiation authentication instruction returned by each vehicle-mounted terminal through the message route; the negotiation authentication instruction comprises an ID of a corresponding vehicle-mounted terminal and a communication protocol authenticated from the communication negotiation instruction;
and the communication list generating module is used for generating the preset communication protocol list according to the negotiation authentication instruction.
8. The communication apparatus of the in-vehicle terminal according to claim 6, characterized in that the apparatus further comprises:
the verification instruction generating module is used for receiving an instruction for requesting verification of a communication protocol list, generating a verification instruction and sending the verification instruction to each vehicle-mounted terminal according to the communication protocol list; the verification instruction comprises verification information and an authentication protocol of each vehicle-mounted terminal;
the feedback instruction receiving module is used for receiving a feedback instruction returned by the vehicle-mounted terminal according to the corresponding authentication protocol; the feedback instruction comprises feedback information of the vehicle-mounted terminal responding to the verification information;
the first judgment module is used for judging whether the vehicle-mounted terminal which is not fed back exists in a preset time period;
and the first updating module is used for updating the preset communication protocol list when the vehicle-mounted terminal which is not fed back exists.
9. A terminal device characterized by comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the communication method of the in-vehicle terminal according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored computer program, wherein the computer program, when running, controls an apparatus in which the computer-readable storage medium is located to perform the communication method of the in-vehicle terminal according to any one of claims 1 to 7.
CN202110012446.6A 2021-01-04 2021-01-04 Communication method and device of vehicle-mounted terminal, terminal equipment and storage medium Pending CN114765753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110012446.6A CN114765753A (en) 2021-01-04 2021-01-04 Communication method and device of vehicle-mounted terminal, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110012446.6A CN114765753A (en) 2021-01-04 2021-01-04 Communication method and device of vehicle-mounted terminal, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114765753A true CN114765753A (en) 2022-07-19

Family

ID=82364471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110012446.6A Pending CN114765753A (en) 2021-01-04 2021-01-04 Communication method and device of vehicle-mounted terminal, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114765753A (en)

Similar Documents

Publication Publication Date Title
CN108243259B (en) Method, device and system for transmitting Internet of vehicles data
CN110928567A (en) Vehicle system upgrading method, terminal device and computer-readable storage medium
CN112362983A (en) Battery management system diagnosis method, upper computer and system
CN113920615B (en) Method for connecting Bluetooth key with vehicle, vehicle Bluetooth system and Bluetooth key
CN113282310A (en) Application management method and system, vehicle-mounted device, server and readable storage medium
CN113141593A (en) Detection method and detection system for vehicle virtual key and upper computer
CN102136932B (en) Method, device and system for realizing service application
CN113759883A (en) Vehicle diagnosis method, vehicle gateway device, server, and storage medium
CN112003774B (en) Method, system and storage medium for checking error frame of automobile CAN bus
CN111402456A (en) Unlocking method and device
CN114765753A (en) Communication method and device of vehicle-mounted terminal, terminal equipment and storage medium
Onuma et al. A method of ECU software updating
CN110446197B (en) Communication control method, device, equipment and storage medium of intelligent equipment
CN111295908B (en) Method and device for establishing a wireless connection between a vehicle and a vehicle accessory
CN112713998B (en) Charging pile certificate application method, system, equipment and storage medium
CN112217799B (en) Vehicle diagnosis method, vehicle diagnosis device and terminal equipment
CN110191438B (en) Authentication method for vehicle-to-vehicle communication and related product
CN115225681A (en) Multi-robot cooperation method, electronic device, cloud server and storage medium
CN112235173B (en) Communication control method, communication control device, terminal device and storage medium
CN114726505B (en) Vehicle remote security authentication method and device, storage medium and terminal equipment
CN114785522A (en) Internet of vehicles information security authentication method, system, terminal and storage medium
CN115396844A (en) Method, system and device for detecting offline of automobile digital key
CN114244653B (en) Whole vehicle signal routing method and system based on central gateway centralized architecture
CN112526972B (en) Self-calibration method, self-calibration device, readable storage medium and electronic equipment
CN116232618A (en) Certificate authentication method and device, V2X terminal and 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