Message transmission method and system, storage medium and electronic device in vehicle networking

By verifying the message identification in the broadcast data in the Internet of Vehicles, the problem of poor message transmission reliability is solved, and the effect of improving service accuracy is achieved.

CN116132929BActive Publication Date: 2025-03-04VANJEE TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211718680.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-29
Publication Date
2025-03-04
Estimated Expiration
2042-12-29

AI Technical Summary

Technical Problem

The message transmission method in the Internet of Vehicles has poor reliability of message transmission, resulting in low accuracy of service provision.

Method used

The packaged data broadcasted by the sending terminal is received through the direct communication interface of the receiving terminal. The packaged data carries wireless communication messages and message identifiers. The receiving terminal verifies the message identifier to determine whether to obtain the corresponding service.

Benefits of technology

It improves the reliability of message transmission and ensures that the receiving terminal can accurately obtain the required services, thereby improving the accuracy of service provision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116132929B_ABST
    Figure CN116132929B_ABST
Patent Text Reader

Abstract

The present application discloses a message transmission method and system, storage medium and electronic device in an Internet of Vehicles, wherein the method comprises: receiving packaged data broadcasted by a sending terminal through a direct communication interface of a receiving terminal, wherein the packaged data carries a wireless communication message and a first message identifier, the wireless communication message is used to provide a preset service, and the first message identifier is obtained by encoding the first dimension information of the preset service; when the first message identifier is verified, the first dimension information of the preset service is determined based on the first message identifier; when it is determined that the receiving terminal is allowed to obtain the preset service according to the first dimension information of the preset service, the preset service is obtained based on the wireless communication message. Through the present application, the problem of low accuracy of service provision caused by poor reliability of message transmission in the message transmission method in the Internet of Vehicles in the related art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle wireless communications, and more specifically, to a message transmission method and system, a storage medium, and an electronic device in a connected vehicle network. Background Art

[0002] In order to ensure traffic safety and improve traffic efficiency, services can be provided to traffic participants and managers based on the Internet of Vehicles and vehicle-road collaboration. The Internet of Vehicles mainly uses V2X (vehicle to everything, vehicle-to-external information exchange) communication technology. Among them, vehicles can use V2X technology to obtain the movement status information of surrounding vehicles and road condition information, route guidance and safety warning services provided by roadside V2X terminal equipment, thereby improving the safety and stability of vehicle driving and ensuring traffic safety; managers can use vehicle-road collaboration technology to obtain dynamic traffic information, road congestion conditions and other information in real time, helping operation and management units to improve traffic operations and service levels.

[0003] The main communication technology used to realize vehicle networking and vehicle-road collaboration is C-V2X (cellular vehicle to everything). LTE-V2X (Long Term Evolution V2X) is the first generation of C-V2X technology, which defines two communication modes: cellular communication mode and direct communication mode. Since the direct communication mode does not require cellular participation, it can realize communication between wireless terminals and has the characteristics of low latency and high reliability. It mainly meets the transmission requirements of road safety services in scenarios where nodes move at high speed.

[0004] The direct communication mode generally corresponds to the direct communication interface, for example, the PC5 interface (a short-distance direct communication interface between vehicles, people and roads). The direct communication interface defines the direct communication technology in the broadcast mode, and the provider of V2X messages can provide valuable services to the consumers of V2X messages. However, due to the message transmission through broadcasting, the reliability of message transmission cannot be guaranteed, which affects the accuracy of service provision.

[0005] It can be seen that the message transmission method in the Internet of Vehicles in the related art has the problem of low accuracy of service provision due to poor reliability of message transmission. Summary of the invention

[0006] The embodiments of the present application provide a message transmission method and system, storage medium and electronic device in an Internet of Vehicles, so as to at least solve the problem of low accuracy of message transmission due to the inability to perform targeted message transmission to a designated terminal in the message transmission method in the Internet of Vehicles in the related art.

[0007] According to one aspect of an embodiment of the present application, a message transmission method in a vehicle network is provided, comprising: receiving packaged data broadcast by a sending terminal through a direct communication interface of a receiving terminal, wherein the packaged data carries a wireless communication message and a first message identifier, the wireless communication message is used to provide a preset service, and the first message identifier is obtained by encoding first dimensional information of the preset service; in a case where the first message identifier is verified, determining the first dimensional information of the preset service based on the first message identifier; in a case where it is determined that the receiving terminal is allowed to obtain the preset service according to the first dimensional information of the preset service, obtaining the preset service based on the wireless communication message.

[0008] According to another aspect of an embodiment of the present application, a message transmission method in a vehicle network is also provided, including: obtaining a target message identifier corresponding to a wireless communication message to be broadcast, wherein the wireless communication message is used to provide a preset service, and the target message identifier is obtained by encoding preset dimension information of the preset service; obtaining packaged data, wherein the packaged data carries the wireless communication message and the target message identifier; and broadcasting the packaged data through a direct communication interface of a sending terminal.

[0009] According to another aspect of the embodiment of the present application, a message transmission system in a vehicle network is also provided, including: a sending terminal, used to obtain a first message identifier corresponding to a wireless communication message to be broadcast, wherein the wireless communication message is used to provide a preset service, and the first message identifier is obtained by encoding the first dimension information of the preset service; obtaining packaged data, wherein the packaged data carries the wireless communication message and the first message identifier; broadcasting the packaged data through the direct communication interface of the sending terminal; a receiving terminal, used to receive the packaged data broadcast by the sending terminal through the direct communication interface of the receiving terminal; in case the first message identifier is verified, determining the first dimension information of the preset service based on the first message identifier; in case it is determined that the receiving terminal is allowed to obtain the preset service according to the first dimension information of the preset service, obtaining the preset service based on the wireless communication message.

[0010] According to another aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned message transmission method in the Internet of Vehicles when running.

[0011] According to another aspect of an embodiment of the present application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the message transmission method in the Internet of Vehicles through the computer program.

[0012] In an embodiment of the present application, a method of verifying a message identifier carried in a received message to determine whether to obtain a service provided by the corresponding message is adopted, and packaged data broadcasted by a sending terminal is received through a direct communication interface of a receiving terminal, wherein the packaged data carries a wireless communication message and a first message identifier, the wireless communication message is used to provide a preset service, and the first message identifier is obtained by encoding the first dimension information of the preset service; when the first message identifier is verified, the first dimension information of the preset service is determined based on the first message identifier; when it is determined that the receiving terminal is allowed to obtain the preset service according to the first dimension information of the preset service, the preset service is obtained based on the wireless communication message, because the transmitted wireless communication message carries a message identifier encoded using the dimension information of the preset service, in a method of transmitting messages by broadcasting, by controlling the receiving terminal to verify the message identifier in the received packaged data to determine whether the receiving terminal can obtain the preset service corresponding to the wireless communication message, the purpose of improving the reliability of message transmission can be achieved, and the technical effect of improving the accuracy of service provision can be achieved, thereby solving the problem of low accuracy of service provision caused by poor reliability of message transmission in the message transmission method in the Internet of Vehicles in the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0015] Figure 1 is a schematic diagram of a hardware environment of an optional message transmission method in a connected vehicle network according to an embodiment of the present application;

[0016] Figure 2 is a flow chart of an optional message transmission method in a connected vehicle network according to an embodiment of the present application;

[0017] Figure 3 is a schematic diagram of an optional message transmission method in a connected vehicle network according to an embodiment of the present application;

[0018] Figure 4 is a flowchart of another optional message transmission method in a connected vehicle network according to an embodiment of the present application;

[0019] Figure 5 is a schematic diagram of another optional message transmission method in a connected vehicle network according to an embodiment of the present application;

[0020] Figure 6 is a schematic diagram of another optional message transmission method in a connected vehicle network according to an embodiment of the present application;

[0021] Figure 7 It is a structural block diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0024] According to one aspect of an embodiment of the present application, a method for transmitting messages in an Internet of Vehicles is provided. Optionally, in this embodiment, the method for transmitting messages in an Internet of Vehicles can be applied to: Figure 1 In the hardware environment including the Internet of Vehicles device 102 and the server 104 shown in FIG. Figure 1As shown, the server 104 is connected to the Internet of Vehicles device 102 through a network, and can be used to provide services for message transmission of the Internet of Vehicles device 102. A database can be set on the server or independently of the server to provide data storage services for the server 104. Here, the Internet of Vehicles device 102 can be a V2X device such as a roadside device or an on-board device, and can include a sending terminal and a receiving terminal for message transmission.

[0025] The above network may include but is not limited to at least one of the following: wired network, wireless network. The above wired network may include but is not limited to at least one of the following: wide area network, metropolitan area network, local area network, and the above wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth.

[0026] The message transmission method in the Internet of Vehicles of the present application embodiment can be executed by the Internet of Vehicles device 102, or can be executed by the server 104 and the Internet of Vehicles device 102. Taking the method for transmitting messages in the Internet of Vehicles of the present application embodiment executed by the sending terminal in the Internet of Vehicles device 102 as an example, Figure 2 is a flow chart of an optional message transmission method in a vehicle network according to an embodiment of the present application, such as Figure 2 As shown, the process of the method may include the following steps:

[0027] Step S202, receiving the packaged data broadcast by the sending terminal through the direct communication interface of the receiving terminal, wherein the packaged data carries a wireless communication message and a first message identifier, the wireless communication message is used to provide a preset service, and the first message identifier is obtained by encoding the first dimension information of the preset service.

[0028] The message transmission method in the Internet of Vehicles in this embodiment can be applied to the scenario of message transmission in the Internet of Vehicles in a direct communication mode. The above-mentioned Internet of Vehicles can be a cellular Internet of Vehicles C-V2X (Cellular-V2X, cellular Internet of Vehicles), which can provide services for traffic participants and managers, further ensure traffic safety and improve traffic efficiency. Among them, the vehicle can obtain the motion state information of the surrounding vehicles and the road condition information, path guidance and safety warning services provided by the roadside V2X equipment terminal by using V2X technology, thereby improving the safety and stability of vehicle driving and ensuring traffic safety. The manager can obtain dynamic traffic conditions, road congestion conditions and other information in real time by using vehicle-road collaborative technology, helping the operation management unit to improve the operation and service level of traffic, thereby realizing the all-round network connection in the car, between cars, between cars and roads, between cars and people, and between cars and service platforms, improving the intelligence level of cars and automatic driving capabilities, thereby improving traffic efficiency, improving the driving experience of cars, and providing users with intelligent, comfortable, safe, energy-saving and efficient comprehensive services. Through the message transmission in the Internet of Vehicles, the provider of V2X messages provides valuable services to the consumers of V2X messages.

[0029] LTE-V2X is the first generation (C-V2X) technology, which establishes the basic system architecture, control method and resource allocation method of C-V2X, and defines two general modes: cellular communication mode and direct communication mode, which correspond to the Uu (Ultimate User) and PC5 interfaces respectively.

[0030] The above cellular communication method uses the cellular network as a centralized control center and data information forwarding center, and the base station completes centralized scheduling, congestion control and interference coordination, etc., which can significantly improve the access and networking efficiency of LTE-V2X and ensure the continuity and reliability of the service, but the end-to-end communication delay is large. The direct communication method does not require cellular participation and can communicate between wireless terminals. It has the characteristics of low latency and high reliability. It can meet the transmission requirements of road safety services in the scenario of high-speed node movement, and is more suitable for short-distance communication between vehicles, people and roads.

[0031] However, the PC5 interface of LTE-V2X's direct communication defines direct communication technology in broadcast mode. Since message transmission is carried out through broadcasting, the reliability of message transmission cannot be guaranteed, which affects the accuracy of service provision.

[0032] In order to at least solve some of the above problems, in this embodiment, the broadcast data method can still be used to identify the message to be broadcast according to the message identifier determined by the service corresponding to the message to be broadcast, and then the message identifier is verified at the receiving terminal to determine whether to obtain the service provided by the message. After receiving the corresponding broadcast, the receiving terminal that has no demand for the service can choose to abandon the broadcast, thereby achieving the accuracy of message transmission and ensuring that all receiving terminals that have demand for the service can receive the message. Here, the sending terminal and the receiving terminal can be two different V2X device terminals, for example, a V2X vehicle-mounted device terminal, a V2X roadside device terminal, etc. The same device terminal can be used as a sending terminal and a receiving terminal for data at the same time.

[0033] In this embodiment, the packaged data broadcast by the sending terminal can be received through the direct communication interface of the receiving terminal. Here, the direct communication interface can be the aforementioned PC5 interface. The packaged data can carry a wireless communication message and a first message identifier. The wireless communication message can be a V2X message, which can be used to provide a preset service.

[0034] The messages transmitted in the Internet of Vehicles are usually complex and diverse. In order to meet the needs of message providers and message consumers for marking information of different dimensions of interactive messages, the identification can be determined based on the information of different dimensions of the message. In this embodiment, the first message identifier can be obtained by encoding the first dimension information of the preset service. The preset services may include a variety of vehicle-road collaborative services such as active safety warnings, route guidance, and traffic participant data sharing services, which may have multiple dimensions of information, including but not limited to the type, time, location, and object of the service. The first dimension information may be one of the aforementioned dimensional information.

[0035] Optionally, the received packaged data may be unpacked according to a predefined protocol to obtain the wireless communication message and the first message identifier in the packaged data. Here, the predefined protocol may be a predefined protocol for the sending terminal to package data and the receiving terminal to unpack data.

[0036] Optionally, after completing the unpacking of the packaged data, the validity of the wireless communication message carried in the packaged data can be checked. If the check determines that the wireless communication message is invalid, the packaged data is directly discarded and no subsequent processing operations are performed. If the check determines that the wireless communication message is valid, it is determined that the wireless communication message may be a message related to the receiving terminal, and then subsequent processing is performed on the information carried in the packaged data.

[0037] Step S204: When the first message identifier is verified, first dimension information of the preset service is determined based on the first message identifier.

[0038] The first message identifier in the packaged data can be verified to determine the correctness or legality of the first message identifier. The correctness here can mean that the received first message identifier is a complete, accurate, and legal identifier to prevent the reception of garbled or wrongly coded messages. The legality here can be similar to the description of correctness, meaning that the received first message identifier does not have garbled or wrongly coded problems and complies with the encoding protocol of the sending terminal for the message identifier.

[0039] Optionally, the verification of the first message identifier may be performed by the receiving terminal itself, or may be completed by another server that is independent of the sending terminal and the receiving terminal and is dedicated to verification, and then fed back to the receiving terminal.

[0040] In this embodiment, when the first message identifier is verified, the first dimension information of the preset service can be determined based on the first message identifier. Since the first message identifier is obtained by encoding the first dimension information of the preset service, the receiving terminal can obtain the first dimension information of the preset service by decoding the first message identifier. Here, the decoding method can correspond to the encoding method of the sending terminal, which is not limited in this embodiment.

[0041] Step S206: When it is determined according to the first dimension information of the preset service that the receiving terminal is allowed to obtain the preset service, the preset service is obtained based on the wireless communication message.

[0042] In V2X message transmission, the recipient of the message is a consumer of the service. The services that each consumer is allowed to obtain are related to the service requirements submitted by itself, and the services required by each consumer may be different. In order to avoid the situation where the receiving terminal receives and consumes some unnecessary services, in this embodiment, it can be determined whether the receiving terminal can legally obtain the preset service based on the received first dimension information, that is, whether it can consume the received wireless communication message (it is a consumer that can consume the received wireless communication message).

[0043] The above determination of whether the receiving terminal can legally obtain the preset service may refer to determining whether the receiving terminal needs to obtain the preset service, that is, whether the receiving terminal is allowed to obtain the preset service. Optionally, if it is determined that the receiving terminal is not allowed to obtain the preset service, the wireless communication message may be directly discarded.

[0044] In this embodiment, when it is determined according to the first dimension information of the preset service that the receiving terminal allows the preset service to be obtained, the preset service can be obtained based on the wireless communication message. Here, obtaining the preset service based on the wireless communication message can mean that the receiving terminal consumes the wireless communication message.

[0045] Through the above steps S202 to S206, the packaged data broadcast by the sending terminal is received through the direct communication interface of the receiving terminal, wherein the packaged data carries a wireless communication message and a first message identifier, the wireless communication message is used to provide a preset service, and the first message identifier is obtained by encoding the first dimension information of the preset service; when the first message identifier is verified, the first dimension information of the preset service is determined based on the first message identifier; when it is determined that the receiving terminal is allowed to obtain the preset service according to the first dimension information of the preset service, the preset service is obtained based on the wireless communication message, which solves the problem of low accuracy of service provision caused by poor reliability of message transmission in the message transmission method in the Internet of Vehicles in the related technology, thereby improving the accuracy of service provision.

[0046] In an exemplary embodiment, after receiving the packetized data broadcasted by the sending terminal through the direct communication interface of the receiving terminal, the method further includes:

[0047] S11, using the identification verification information to verify the legitimacy of the first message identification, and obtaining a legitimacy verification result of the first message identification, wherein the packaged data also carries the identification verification information, and the identification verification information is used to verify the legitimacy of the first message identification; or,

[0048] S12, sending the first message identifier to the first server; receiving the legitimacy verification result of the first message identifier returned by the first server.

[0049] For the verification process of the first message identifier, the verification of the first message identifier can be completed by the receiving terminal itself. In this embodiment, the packaged data sent by the sending terminal may also carry identifier verification information. After receiving the packaged data, the receiving terminal can use the identifier verification information to perform a legitimacy verification on the first message identifier to obtain a legitimacy verification result of the first message identifier. Here, the identifier verification information can be a calculation result obtained by the sending terminal performing relevant calculations on the generated first message identifier, which can be used to verify the legitimacy of the first message identifier.

[0050] Optionally, the receiving terminal may generate new identification verification information by using the same calculation method as the sending terminal to calculate the identification verification information of the first message identifier, and determine whether the first message identifier is legal by comparing the two identification verification information, thereby obtaining the legality verification result of the first message identifier.

[0051] In addition, the verification process of the first message identifier can also be completed by other devices besides the sending terminal and the receiving terminal, and the other device here can be the first server. In this embodiment, the first message identifier can be sent by the receiving terminal to the first server, and the first server checks the message identifier. The receiving terminal can determine whether the first message identifier is legal by receiving the legitimacy verification result of the first message identifier returned by the first server. Here, the first server can be a third-party platform, a trusted certification agency, etc.

[0052] For example, taking the receiving terminal as the receiver and the wireless communication message as a V2X message as an example, the receiver can verify the correctness of the current V2X message identifier by sending the message identifier to a third-party platform or a trusted certification agency for inspection, and obtaining the inspection result of the legitimacy of the identifier.

[0053] Optionally, the first message identifier may be verified by using one of the above verification methods or a combination of the above verification methods, which is not limited in this embodiment.

[0054] Through this embodiment, by verifying the message identifier using at least one of a plurality of verification methods, the flexibility of message identifier verification can be improved, thereby improving the efficiency of message transmission.

[0055] In an exemplary embodiment, using the identifier verification information to perform a legitimacy verification on the first message identifier to obtain a legitimacy verification result of the first message identifier includes:

[0056] S21, when the identifier check information is a first check digit corresponding to the first message identifier, generating a check digit according to the first message identifier to obtain a second check digit;

[0057] S22, when the first check digit and the second check digit are the same, determining that the first message identifier is legal;

[0058] S23: When the first check digit and the second check digit are different, determining that the first message identifier is illegal.

[0059] For the scenario where the first message identifier is verified at the receiving terminal (the server-side verification method can be similar to this), the identifier verification information carried in the packaged data can be a first check digit obtained after calculating the first message identifier. Here, the check digit can be a check code, such as a cyclic redundancy check code.

[0060] In this embodiment, when the identification verification information is a first verification bit corresponding to the first message identification, a verification bit can be generated according to the first message identification to obtain a second verification bit. Here, the calculation method for generating the second verification bit can be the same as the calculation method for generating the first verification bit.

[0061] By comparing the first check digit and the second check digit, it can be determined whether the first message identifier is legal. If the first check digit and the second check digit are the same, it can be determined that the first message identifier is legal. If the first check digit and the second check digit are different, it can be determined that the first message identifier is illegal.

[0062] For example, taking the sending terminal as the sender and the receiving terminal as the receiver, according to the preset algorithm, the sender calculates the identifier of the current V2X message to obtain the check bit of the current message, and sends the check bit and the message identifier together. After receiving the message, the receiver decodes the message identifier and the check bit, regenerates the check bit for the message identifier using the preset algorithm, and checks whether the check bit is the same as the transmitted check bit, thereby determining whether the message identifier is legal.

[0063] Through this embodiment, by comparing the check bits of the message identifiers generated by the sending terminal and the receiving terminal, it is determined whether the corresponding message identifier is legal, which can improve the efficiency of the message identifier legitimacy check.

[0064] In an exemplary embodiment, using the identifier verification information to perform a legitimacy verification on the first message identifier to obtain a legitimacy verification result of the first message identifier includes:

[0065] S31, when the identification verification information is a first hash value corresponding to the first message identification, using the public key of the specified certificate to generate a hash value corresponding to the first message identification, to obtain a second hash value, wherein the first hash value is generated using the private key of the specified certificate;

[0066] S32, when the first hash value and the second hash value are the same, determining that the first message identifier is legal;

[0067] S33: When the first hash value and the second hash value are different, determine that the first message identifier is illegal.

[0068] For the scenario where the first message identifier is verified at the receiving terminal, the identifier verification information carried in the packaged data may be a hash value (hash value) generated from the first message identifier and a key of a specified certificate. Here, the specified certificate may be a certificate that provides a pair of public and private keys for asymmetric encryption.

[0069] In this embodiment, when the identification verification information is a first hash value corresponding to the first message identification, the hash value corresponding to the first message identification can be generated using the public key of the specified certificate to obtain the second hash value. Here, the first hash value can be generated using the private key of the specified certificate.

[0070] By comparing the first Hash value and the second Hash value, it can be determined whether the first message identifier is legal. If the first Hash value and the second Hash value are the same, it can be determined that the first message identifier is legal. If the first Hash value and the second Hash value are different, it can be determined that the first message identifier is illegal.

[0071] For example, taking the sending terminal as the sender and the receiving terminal as the receiver, the sender transmits the identifier and the hash value generated by the specified certificate private key. After receiving the message, the receiver decodes the message identifier and hash value, and uses the public key of the specified certificate to generate a new hash value. By comparing the two hash values ​​to see if they are the same, the legality of the transmitted message identifier can be verified.

[0072] Through this embodiment, by comparing the hash values ​​of the message identifiers generated by the sending terminal and the receiving terminal, it is determined whether the corresponding message identifier is legal, which can improve the efficiency of the message identifier legitimacy verification.

[0073] In an exemplary embodiment, when the first message identifier is verified, determining the first dimension information of the preset service based on the first message identifier includes:

[0074] S41, when the first message identifier is verified, first dimension information is obtained by decoding the first message identifier, wherein the first dimension information includes at least one of the following: service type, service entity, service period, and service area.

[0075] In this embodiment, when the first message identifier is verified, the first dimension information can be obtained by decoding the first message identifier. The decoding process here is the aforementioned unpacking process, which is not limited in this embodiment. Here, the dimension information of the message identifier may include at least one of the following: service type, service entity, service period, service area, etc., wherein:

[0076] The service type, ie, the aforementioned type of service, can be used to distinguish different types of services of interactive messages, and a pre-agreed number can be used to describe the service type.

[0077] The service entity, i.e., the object of the aforementioned service, can be used to distinguish the specific service provider of the V2X message service, and the service provider name and other information can be described using a predefined number. The service entity can also be used to distinguish the specific consumer consuming the V2X message service, and the consumer name and other information can be described using a predefined number.

[0078] The service period, i.e., the time of the aforementioned service, can be used to distinguish the period information during which the service provider provides the V2X message service, and can also be used to distinguish the period (or moment) information during which consumers can obtain the V2X message service. The service period can be described using a pre-agreed number.

[0079] The service area, i.e., the location of the aforementioned service, can be used to distinguish the regional information where the service provider provides V2X message services, and can also be used to distinguish the regional information where consumers can obtain V2X message services. The service area can be described using a pre-agreed number or specific geographic location information.

[0080] Through this embodiment, when it is determined that the message identifier is legal, the message identifier is decoded to determine the dimension information, which can improve the efficiency of processing the received packaged data.

[0081] In an exemplary embodiment, after determining the first dimension information of the preset service based on the first message identifier, the method further includes:

[0082] S51, when the first dimension information includes a service type, and the service type of the preset service does not belong to the service type that the receiving terminal is allowed to obtain, determining that the receiving terminal is not allowed to obtain the preset service;

[0083] S52, when the first dimension information includes a service entity and the service entity of the preset service does not belong to the service entity that the receiving terminal is allowed to obtain, determining that the receiving terminal is not allowed to obtain the preset service;

[0084] S53, when the first dimension information includes a service period, and the service period during which the receiving terminal is allowed to obtain the preset service does not belong to the service period of the preset service, determining that the receiving terminal is not allowed to obtain the preset service;

[0085] S54: When the first dimension information includes a service area and the current terminal location of the receiving terminal does not belong to the service area of ​​the preset service, determine that the receiving terminal is not allowed to obtain the preset service.

[0086] In the case where all or part of the information in the first dimension information does not belong to the dimension information that the receiving terminal is allowed to obtain, it can be determined that the receiving terminal is not allowed to obtain the preset service. In this embodiment, in the case where the first dimension information includes the service type, and the service type of the preset service does not belong to the service type that the receiving terminal is allowed to obtain, it can be determined that the receiving terminal is not allowed to obtain the preset service. In the case where the first dimension information includes the service entity, and the service entity of the preset service does not belong to the service entity that the receiving terminal is allowed to obtain, it can be determined that the receiving terminal is not allowed to obtain the preset service. In the case where the first dimension information includes the service period, and the service period in which the receiving terminal is allowed to obtain the preset service does not belong to the service period of the preset service, it can be determined that the receiving terminal is not allowed to obtain the preset service. In the case where the first dimension information includes the service area, and the current terminal location of the receiving terminal does not belong to the service area of ​​the preset service, it can be determined that the receiving terminal is not allowed to obtain the preset service.

[0087] For example, Figure 3 As shown, taking the direct communication interface as the PC5 interface and the wireless communication message as the V2X message as an example, the receiving terminal receives the packaged data through the PC5 interface of the V2X module, unpacks it according to the predefined protocol, and obtains the corresponding message identifier, identifier verification and V2X message. Check the validity of the V2X message, and discard the message if it is invalid. In the case of validity, perform a service legitimacy check, that is, based on the message identifier, determine the service type of the message (service entity, service period and service area, etc.) according to a predefined algorithm or from a third platform, and then determine whether the receiving terminal can legally obtain the V2X service. If it is illegal, discard the message, and if it is legal, consume the V2X message.

[0088] Through this embodiment, whether the receiving terminal can legally obtain the preset service is determined by using the dimension information corresponding to the message identifier, so that the accuracy of message transmission can be improved.

[0089] In an exemplary embodiment, the method further comprises:

[0090] S61, obtaining a second message identifier corresponding to a preset service, wherein the second message identifier is obtained by encoding second dimension information of the preset service;

[0091] S62, sending a service acquisition request to the second server, wherein the service acquisition request carries a second message identifier, and the service acquisition request is used to request to obtain a preset service according to the second dimension information;

[0092] S63, receiving a request response message returned by the second server in response to the service acquisition request, wherein the request response message is used to indicate whether the receiving terminal has the authority to obtain the preset service according to the second dimension information.

[0093] The service requirements of consumers of messages in the Internet of Vehicles may change in real time. In this embodiment, when consumers have a demand for a preset service, they may request a service provider to provide the preset service by sending a request carrying a message identifier related to the preset service.

[0094] In this embodiment, the consumer can act as the sender of the request and obtain the second message identifier corresponding to the preset service when it is necessary to obtain the preset service. And according to the determined second message identifier, send a service acquisition request to the second server. Here, the second message identifier can be similar to the description of the first message identifier, and can be obtained by encoding the second dimension information of the preset service. The second server can be a server that provides various services and can be different from the first server. The service acquisition request can carry a second message identifier, and the service acquisition request can be used to request to obtain the preset service according to the second dimension information.

[0095] After receiving the service acquisition request, the second server can determine whether the sender of the service acquisition request has the authority to obtain the preset service through the second message identifier, and return the corresponding request response result. Optionally, if the request response result indicates that the receiving terminal has the authority to obtain the preset service according to the second dimension information, the second server can provide the preset service to the consumer.

[0096] In this embodiment, the sending terminal may receive a request response message returned by the second server in response to the service acquisition request. Here, the request response message may be used to indicate whether the receiving terminal has the authority to obtain the preset service according to the second dimension information. The receiving terminal here may be the sender of the service acquisition request, that is, the consumer of the message.

[0097] For example, taking the second server as the service provider, the consumer sends a service acquisition request with a V2X message identifier based on V2X. The service provider obtains the service request and determines whether the consumer has the right to obtain the specified V2X service through the message identifier. If the consumer has the right to obtain the service, the service provider provides the corresponding service to the consumer through V2X, otherwise, the corresponding service is not provided.

[0098] Through this embodiment, the service acquisition is completed by sending a service acquisition request with a message identifier, which can improve the accuracy of service provision.

[0099] According to another aspect of the embodiment of the present application, a message transmission method in an Internet of Vehicles is also provided. Optionally, in this embodiment, the message transmission method in the Internet of Vehicles can be applied to the following: Figure 1 The hardware environment shown includes the vehicle networking device 102 and the server 104. Those that have been explained will not be explained again here.

[0100] Taking the method for transmitting messages in the Internet of Vehicles in this embodiment executed by the receiving terminal in the Internet of Vehicles device 102 as an example, Figure 4 is a flow chart of another optional message transmission method in the Internet of Vehicles according to an embodiment of the present application, such as Figure 4 As shown, the process of the method may include the following steps:

[0101] Step S402: Acquire a target message identifier corresponding to the wireless communication message to be broadcast, wherein the wireless communication message is used to provide a preset service, and the target message identifier is obtained by encoding preset dimension information of the preset service.

[0102] In this embodiment, for the transmitting terminal of the broadcast packaged data, after determining the wireless communication message to be broadcast, the target message identifier corresponding to the wireless communication message to be broadcast can be obtained. Here, the wireless communication message can be the same as the description of the previous embodiment, and this embodiment will not be repeated. The target message identifier can be obtained by encoding the preset dimension information of the preset service, and can be the same as the first message identifier.

[0103] Optionally, the process of generating the target message identifier may be completed by the sending terminal itself or by a message identifier generating entity. Here, the message identifier entity may be a third-party cloud platform or a trusted certification authority other than the sending terminal and the receiving terminal.

[0104] Step S404: obtaining packaged data, wherein the packaged data carries a wireless communication message and a target message identifier.

[0105] In this embodiment, after determining the target message identifier, the wireless communication message, the target message identifier and other data to be sent to the receiving terminal can be packaged to obtain packaged data. Here, the packaged data can be packaged according to a predefined protocol, which can correspond to the unpacking of the receiving terminal.

[0106] Optionally, in the case where the sending terminal needs to send identification verification information for the target message identifier, the packaged data may also include the identification verification information for the target message identifier.

[0107] Step S406: broadcast the packaged data through the direct communication interface of the sending terminal.

[0108] In this embodiment, the packaged data can be broadcasted through the direct communication interface of the sending terminal. The direct communication interface of the sending terminal can be the same as the direct communication interface of the receiving terminal, which is the PC5 interface of the V2X module.

[0109] For example, Figure 5As shown, taking the wireless communication message as a V2X message as an example, the sending process of the V2X message is as follows: when the sending terminal is required to send identification verification information for the target message identifier, the sending terminal can generate the V2X message identifier and identification verification based on the V2X message itself or obtain the V2X message identifier and identification verification from the message identifier generation entity, package the V2X message, message identifier and identification verification according to a predefined protocol, obtain the packaged data, and broadcast the packaged data to the surrounding through the PC5 interface of the V2X module.

[0110] Through the above steps S402 to S406, a target message identifier corresponding to the wireless communication message to be broadcast is obtained, wherein the wireless communication message is used to provide a preset service, and the target message identifier is obtained by encoding preset dimension information of the preset service; packaged data is obtained, wherein the packaged data carries the wireless communication message and the target message identifier; and the packaged data is broadcast through the direct communication interface of the sending terminal, thereby solving the problem of low accuracy of service provision caused by poor reliability of message transmission in the message transmission method in the Internet of Vehicles in the related art, thereby improving the accuracy of service provision.

[0111] In an exemplary embodiment, before obtaining the packaged data, the method further includes:

[0112] S71, obtaining identification verification information corresponding to the target message identification, wherein the identification verification information is used to verify the legitimacy of the target message identification, and the packaged data also carries the identification verification information.

[0113] The identification verification information of the target message identification sent by the sending terminal may be obtained by the sending terminal after verifying the target message identification, or may be obtained by the message identification generation entity after verifying the target message identification after generating the target message identification. This embodiment does not limit this.

[0114] In this embodiment, when the packaged data also needs to carry the identification verification information, the identification verification information corresponding to the target message identification can be obtained, and the identification verification information is packaged together with the wireless communication message and the target message identification into the packaged data. The identification verification information can be used to verify the legitimacy of the target message identification.

[0115] Through this embodiment, by acquiring the identification verification information corresponding to the target message identification and sending it to the receiving terminal, the accuracy of message transmission can be improved.

[0116] In an exemplary embodiment, obtaining a target message identifier corresponding to a wireless communication message to be broadcast includes:

[0117] S81, determining preset dimension information of a preset service, wherein the preset dimension information includes at least one of the following: a service type of the preset service, a service entity of the preset service, a service period of the preset service, and a service area of ​​the preset service;

[0118] S82, encode the preset dimension information to obtain a target message identifier.

[0119] For the generation of the target message identifier, in this embodiment, the preset dimension information of the preset service can be determined according to the service corresponding to the wireless communication message to be broadcast. Here, the preset dimension information may include at least one of the following: the service type of the preset service, the service entity of the preset service, the service period of the preset service, and the service area of ​​the preset service.

[0120] By encoding the preset dimension information, the target message identifier can be obtained. Here, the object of encoding can be the description field of the preset dimension information. The encoding method can be to calculate the hash value of the current field, that is, to calculate the MD5 (Message-Digest Algorithm 5, a cryptographic hash function) value of the current field, which is not limited in this embodiment.

[0121] For example, Figure 6 As shown, taking the wireless communication message as a V2X message as an example, the V2X message identifier generation method can be: determining the description field of the service type, service entity, service period, service area and other related information of the V2X message, encoding the description field of the above information according to the specified rules, and obtaining the identifier of the current V2X message, such as calculating the Hash, MD5, etc. of the current field.

[0122] Through this embodiment, by encoding the dimension information of the wireless communication message to determine the message identifier, the diversity of the message identifier can be improved, thereby improving the accuracy of message transmission.

[0123] In an exemplary embodiment, obtaining a target message identifier corresponding to a wireless communication message to be broadcast includes:

[0124] S91, sending an identifier acquisition request to an identifier generation entity, wherein the identifier acquisition request is used to request to acquire a message identifier corresponding to a wireless communication message;

[0125] S92: Receive the target message identifier returned by the identifier generation entity in response to the identifier acquisition request.

[0126] Regarding the method of obtaining the target message identifier corresponding to the wireless communication message to be broadcast through the identifier generation entity, in this embodiment, after determining the wireless communication with broadcast, the sending terminal can send an identifier acquisition request to the identifier generation entity. Here, the identifier acquisition request can be used to request to obtain the message identifier corresponding to the wireless communication message, and the description of the identifier generation entity can be the same as the above embodiment, and this embodiment will not be repeated here.

[0127] The identifier generation entity can perform the aforementioned encoding operation according to the obtained identifier acquisition request, generate a target message identifier, and feed it back to the sending terminal. The sending terminal obtains the target message identifier corresponding to the wireless communication message to be broadcast by receiving the target message identifier returned by the identifier generation entity in response to the identifier acquisition request.

[0128] Through this embodiment, the message identifier is generated by the identifier generation entity, which can improve the efficiency of the message identifier and thus improve the accuracy of message transmission.

[0129] The message transmission method in the Internet of Vehicles in the embodiment of the present application is explained below in conjunction with an optional example. In this optional example, the direct communication interface is a PC5 interface, and the wireless communication message is a V2X message.

[0130] A V2X message identification method and apparatus are provided in this optional example, which achieves the divisibility, traceability and measurability of V2X services by generating a V2X message identification using information such as the provider of the V2X message service, the service type, the effective period of the service, and the service provision location.

[0131] The process of the message transmission method in the Internet of Vehicles in this optional example may include the following steps:

[0132] Step 1: The sending terminal generates a V2X message identifier and verifies the identifier based on the V2X message itself, or obtains the V2X message identifier from the message identifier generation entity.

[0133] Step 2: Packaging the V2X message, message identifier and identifier verification according to a predefined protocol to obtain packaged data.

[0134] Step 3: Broadcast the packaged data to the surrounding area through the PC5 interface of the V2X module.

[0135] Step 4: The receiving terminal receives the packaged data through the PC5 interface of the V2X module.

[0136] Step 5: Unpack according to the pre-defined protocol, obtain the corresponding message identifier, identifier verification and V2X message.

[0137] Optionally, the validity of the V2X message is checked, and if it is confirmed that the V2X message is invalid, the message is discarded; if it is valid, subsequent processing is performed.

[0138] Step 6, based on the message identifier, determine the service type, service entity, service period, service area and other information of the message according to the pre-defined (or through a third platform), and then determine whether the receiving terminal can legally obtain the V2X service. If yes, proceed to step 7, otherwise, discard the message.

[0139] Step 7: Consume V2X message.

[0140] Through this optional example, by generating a V2X message identifier based on information such as the provider of the V2X message service, the service type, the effective period of the service, the service provision location, etc., the accuracy of message traceability and measurement is improved. At the same time, by adding a corresponding identifier check to the transmitted V2X message, the accuracy of the receiver's verification of whether the V2X message identifier is legal can be improved, further improving the accuracy of message transmission.

[0141] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0142] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM (Read-Only Memory) / RAM (Random Access Memory), a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0143] According to another aspect of the embodiment of the present application, a message transmission system in an Internet of Vehicles for implementing the above-mentioned message transmission method in an Internet of Vehicles is also provided. The message transmission system in the Internet of Vehicles may include:

[0144] A sending terminal is used to obtain a first message identifier corresponding to a wireless communication message to be broadcast, wherein the wireless communication message is used to provide a preset service, and the first message identifier is obtained by encoding first dimension information of the preset service; obtain packaged data, wherein the packaged data carries the wireless communication message and the first message identifier; and broadcast the packaged data through a direct communication interface of the sending terminal;

[0145] A receiving terminal is used to receive the packaged data broadcast by the sending terminal through the direct communication interface of the receiving terminal; when the first message identifier is verified, the first dimension information of the preset service is determined based on the first message identifier; when it is determined that the receiving terminal is allowed to obtain the preset service according to the first dimension information of the preset service, the preset service is obtained based on the wireless communication message.

[0146] It should be noted that the sending terminal in this embodiment can be used to execute the above steps S202 to S206, and can also be used to execute other steps in the above embodiments; the receiving terminal in this embodiment can be used to execute the above steps S402 to S406, and can also be used to execute other steps in the above embodiments.

[0147] Through the message transmission system in the above-mentioned Internet of Vehicles, the packaged data broadcast by the sending terminal is received through the direct communication interface of the receiving terminal, wherein the packaged data carries a wireless communication message and a first message identifier, the wireless communication message is used to provide a preset service, and the first message identifier is obtained by encoding the first dimension information of the preset service; when the first message identifier is verified, the first dimension information of the preset service is determined based on the first message identifier; when it is determined that the receiving terminal is allowed to obtain the preset service according to the first dimension information of the preset service, the preset service is obtained based on the wireless communication message, which solves the problem of low accuracy of service provision caused by poor reliability of message transmission in the message transmission method in the Internet of Vehicles in the related art, thereby improving the accuracy of service provision.

[0148] In an exemplary embodiment, the receiving terminal is also used to use the identification verification information to verify the legitimacy of the first message identifier to obtain the legitimacy verification result of the first message identifier, wherein the packaged data also carries the identification verification information, and the identification verification information is used to verify the legitimacy of the first message identifier; or, send the first message identifier to the first server; receive the legitimacy verification result of the first message identifier returned by the first server.

[0149] In an exemplary embodiment, the receiving terminal is also used to generate a check bit according to the first message identifier to obtain a second check bit when the identifier verification information is a first check bit corresponding to the first message identifier; when the first check bit and the second check bit are the same, determine that the first message identifier is legal; when the first check bit and the second check bit are different, determine that the first message identifier is illegal.

[0150] In an exemplary embodiment, the receiving terminal is also used to, when the identification verification information is a first hash value corresponding to the first message identifier, use the public key of the specified certificate to generate a hash value corresponding to the first message identifier, and obtain a second hash value, wherein the first hash value is generated using the private key of the specified certificate; when the first hash value and the second hash value are the same, determine that the first message identifier is legal; when the first hash value and the second hash value are different, determine that the first message identifier is illegal.

[0151] In an exemplary embodiment, the receiving terminal is used to obtain first dimension information by decoding the first message identifier when the first message identifier is verified, wherein the first dimension information includes at least one of the following: service type, service entity, service period, and service area.

[0152] In an exemplary embodiment, the receiving terminal is also used to determine that the receiving terminal is not allowed to obtain the preset service when the first dimension information includes a service type and the service type of the preset service does not belong to the service type that the receiving terminal is allowed to obtain; determine that the receiving terminal is not allowed to obtain the preset service when the first dimension information includes a service entity and the service entity of the preset service does not belong to the service entity that the receiving terminal is allowed to obtain; determine that the receiving terminal is not allowed to obtain the preset service when the first dimension information includes a service period and the service period during which the receiving terminal is allowed to obtain the preset service does not belong to the service period of the preset service; determine that the receiving terminal is not allowed to obtain the preset service when the first dimension information includes a service area and the current terminal location of the receiving terminal does not belong to the service area of ​​the preset service.

[0153] In an exemplary embodiment, the receiving terminal is also used to obtain a second message identifier corresponding to a preset service, wherein the second message identifier is obtained by encoding the second dimension information of the preset service; send a service acquisition request to a second server, wherein the service acquisition request carries the second message identifier, and the service acquisition request is used to request to obtain the preset service according to the second dimension information; receive a request response message returned by the second server in response to the service acquisition request, wherein the request response message is used to indicate whether the receiving terminal has the authority to obtain the preset service according to the second dimension information.

[0154] In an exemplary embodiment, the sending terminal is further used to obtain identification verification information corresponding to the target message identification, wherein the identification verification information is used to verify the legitimacy of the target message identification, and the packaged data also carries the identification verification information.

[0155] In an exemplary embodiment, the sending terminal is also used to determine preset dimension information of a preset service, wherein the preset dimension information includes at least one of the following: a service type of the preset service, a service entity of the preset service, a service period of the preset service, and a service area of ​​the preset service; and the preset dimension information is encoded to obtain a target message identifier.

[0156] In an exemplary embodiment, the sending terminal is further used to send an identifier acquisition request to the identifier generation entity, wherein the identifier acquisition request is used to request to obtain a message identifier corresponding to the wireless communication message; and the receiving identifier generation entity returns a target message identifier in response to the identifier acquisition request.

[0157] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware, wherein the hardware environment includes a network environment.

[0158] According to another aspect of the embodiments of the present application, a storage medium is further provided. Optionally, in this embodiment, the storage medium can be used to execute the program code of any of the above-mentioned message transmission methods in the Internet of Vehicles in the embodiments of the present application.

[0159] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.

[0160] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0161] S1, receiving packaged data broadcasted by a sending terminal through a direct communication interface of a receiving terminal, wherein the packaged data carries a wireless communication message and a first message identifier, the wireless communication message is used to provide a preset service, and the first message identifier is obtained by encoding first dimension information of the preset service;

[0162] S2, when the first message identifier is verified, determining first dimension information of the preset service based on the first message identifier;

[0163] S3, when it is determined according to the first dimension information of the preset service that the receiving terminal is allowed to obtain the preset service, obtain the preset service based on the wireless communication message.

[0164] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0165] S1, obtaining a target message identifier corresponding to a wireless communication message to be broadcast, wherein the wireless communication message is used to provide a preset service, and the target message identifier is obtained by encoding preset dimension information of the preset service;

[0166] S2, obtaining packaged data, wherein the packaged data carries a wireless communication message and a target message identifier;

[0167] S3, broadcast the packaged data through the direct communication interface of the sending terminal.

[0168] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, which will not be described in detail in this embodiment.

[0169] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a ROM, a RAM, a mobile hard disk, a magnetic disk, or an optical disk.

[0170] According to another aspect of an embodiment of the present application, an electronic device for implementing the above-mentioned message transmission method in the Internet of Vehicles is also provided. The electronic device may be a server, a terminal, or a combination thereof.

[0171] Figure 7 is a structural block diagram of an optional electronic device according to an embodiment of the present application, such as Figure 7 As shown, it includes a processor 702, a communication interface 704, a memory 706 and a communication bus 708, wherein the processor 702, the communication interface 704 and the memory 706 communicate with each other through the communication bus 708, wherein,

[0172] Memory 706, used to store computer programs;

[0173] The processor 702 is used to implement the following steps when executing the computer program stored in the memory 706:

[0174] S1, receiving packaged data broadcasted by a sending terminal through a direct communication interface of a receiving terminal, wherein the packaged data carries a wireless communication message and a first message identifier, the wireless communication message is used to provide a preset service, and the first message identifier is obtained by encoding first dimension information of the preset service;

[0175] S2, when the first message identifier is verified, determining first dimension information of the preset service based on the first message identifier;

[0176] S3, when it is determined according to the first dimension information of the preset service that the receiving terminal is allowed to obtain the preset service, obtain the preset service based on the wireless communication message.

[0177] Optionally, the processor 702 is configured to implement the following steps when executing the computer program stored in the memory 706:

[0178] S1, obtaining a target message identifier corresponding to a wireless communication message to be broadcast, wherein the wireless communication message is used to provide a preset service, and the target message identifier is obtained by encoding preset dimension information of the preset service;

[0179] S2, obtaining packaged data, wherein the packaged data carries a wireless communication message and a target message identifier;

[0180] S3, broadcast the packaged data through the direct communication interface of the sending terminal.

[0181] Optionally, the communication bus may be a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 The communication interface is used for communication between the electronic device and other devices.

[0182] The memory may include RAM, or may include non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0183] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0184] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0185] It can be understood by those skilled in the art that Figure 7 The structure shown is for illustration only. The device for implementing the above-mentioned message transmission method in the Internet of Vehicles may be a terminal device, which may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Figure 7 The structure of the electronic device is not limited. Figure 7 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 7 Different configurations shown.

[0186] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.

[0187] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0188] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0189] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0190] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0191] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in this embodiment.

[0192] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist physically separately, or at least two units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0193] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A message transmission method in a vehicle network, characterized in that: include: Receiving, through the direct communication interface of the receiving terminal, packaged data broadcasted by the sending terminal, wherein the packaged data carries a wireless communication message and a first message identifier, the wireless communication message is used to provide a preset service, and the first message identifier is obtained by encoding first dimension information of the preset service; In a case where the first message identifier is verified, determining the first dimension information of the preset service based on the first message identifier; In a case where it is determined according to the first dimension information of the preset service that the receiving terminal is allowed to obtain the preset service, obtaining the preset service based on the wireless communication message; Among them, when the first message identifier is verified, the first dimension information of the preset service is determined based on the first message identifier, including: when the first message identifier is verified, the first dimension information is obtained by decoding the first message identifier, wherein the first dimension information includes at least one of the following: service type, service entity, service period, and service area.

2. The method according to claim 1, characterized in that After receiving the packetized data broadcasted by the sending terminal through the direct communication interface of the receiving terminal, the method further includes: Using the identification verification information to perform a validity verification on the first message identification to obtain a validity verification result of the first message identification, wherein the packaged data also carries the identification verification information, and the identification verification information is used to verify the validity of the first message identification; or, Sending the first message identifier to a first server; and receiving a legitimacy verification result of the first message identifier returned by the first server.

3. The method according to claim 2, characterized in that The using the identifier verification information to perform a validity verification on the first message identifier to obtain a validity verification result of the first message identifier includes: In a case where the identifier verification information is a first check digit corresponding to the first message identifier, generating a check digit according to the first message identifier to obtain a second check digit; When the first check digit and the second check digit are the same, determining that the first message identifier is legal; When the first check digit is different from the second check digit, it is determined that the first message identifier is illegal.

4. The method according to claim 2, characterized in that: The using the identifier verification information to perform a validity verification on the first message identifier to obtain a validity verification result of the first message identifier includes: In a case where the identification verification information is a first hash value corresponding to the first message identification, a hash value corresponding to the first message identification is generated using a public key of a designated certificate to obtain a second hash value, wherein the first hash value is generated using a private key of the designated certificate; When the first hash value and the second hash value are the same, determining that the first message identifier is legal; When the first hash value and the second hash value are different, it is determined that the first message identifier is illegal.

5. The method according to claim 1, characterized in that After determining the first dimension information of the preset service based on the first message identifier, the method further includes: In a case where the first dimension information includes a service type, and the service type of the preset service does not belong to a service type that the receiving terminal is allowed to obtain, determining that the receiving terminal is not allowed to obtain the preset service; In a case where the first dimension information includes a service entity, and the service entity of the preset service does not belong to the service entity that the receiving terminal is allowed to obtain, determining that the receiving terminal is not allowed to obtain the preset service; In a case where the first dimension information includes a service period, and the service period during which the receiving terminal is allowed to obtain the preset service does not belong to the service period of the preset service, determining that the receiving terminal is not allowed to obtain the preset service; When the first dimensional information includes a service area and the current terminal location of the receiving terminal does not belong to the service area of ​​the preset service, it is determined that the receiving terminal is not allowed to obtain the preset service.

6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: Acquire a second message identifier corresponding to the preset service, wherein the second message identifier is obtained by encoding second dimension information of the preset service; Sending a service acquisition request to the second server, wherein the service acquisition request carries the second message identifier, and the service acquisition request is used to request to obtain the preset service according to the second dimension information; Receive a request response message returned by the second server in response to the service acquisition request, wherein the request response message is used to indicate whether the receiving terminal has the authority to obtain the preset service according to the second dimension information.

7. A message transmission method in a vehicle network, characterized in that: include: Acquire a target message identifier corresponding to a wireless communication message to be broadcast, wherein the wireless communication message is used to provide a preset service, and the target message identifier is obtained by encoding preset dimension information of the preset service; Acquire packaged data, wherein the packaged data carries the wireless communication message and the target message identifier; broadcasting the packaged data via a direct communication interface of a sending terminal; Among them, the obtaining of the target message identifier corresponding to the wireless communication message to be broadcast includes: determining the preset dimension information of the preset service, wherein the preset dimension information includes at least one of the following: the service type of the preset service, the service entity of the preset service, the service period of the preset service, and the service area of ​​the preset service; encoding the preset dimension information to obtain the target message identifier.

8. The method according to claim 7, characterized in that Before obtaining the packaged data, the method further includes: Obtain identification verification information corresponding to the target message identification, wherein the identification verification information is used to verify the legitimacy of the target message identification, and the packaging data also carries the identification verification information.

9. The method according to any one of claims 7 to 8, characterized in that The acquiring of a target message identifier corresponding to the wireless communication message to be broadcast includes: Sending an identifier acquisition request to an identifier generation entity, wherein the identifier acquisition request is used to request to obtain a message identifier corresponding to the wireless communication message; The target message identifier returned by the identifier generating entity in response to the identifier obtaining request is received.

10. A message transmission system in a vehicle network, characterized in that: include: A sending terminal, configured to obtain a first message identifier corresponding to a wireless communication message to be broadcast, wherein the wireless communication message is used to provide a preset service, and the first message identifier is obtained by encoding first dimension information of the preset service; obtaining packaged data, wherein the packaged data carries the wireless communication message and the first message identifier; and broadcasting the packaged data through a direct communication interface of the sending terminal; A receiving terminal, configured to receive the packaged data broadcast by the sending terminal through a direct communication interface of the receiving terminal; determine the first dimension information of the preset service based on the first message identifier when the first message identifier is verified; and acquire the preset service based on the wireless communication message when it is determined that the receiving terminal is allowed to acquire the preset service according to the first dimension information of the preset service; The receiving terminal is further used to: when the first message identifier is verified, obtain the first dimension information by decoding the first message identifier, wherein the first dimension information includes at least one of the following: service type, service entity, service period, and service area.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method according to any one of claims 1 to 9 when executed.

Citation Information

Patent Citations

  • Message pushing method and device, terminal equipment and storage medium

    CN110769382A

  • Information pushing method and device, electronic device and computer readable storage medium

    CN110784529A

  • Message verification method of vehicle-mounted terminal and terminal

    CN112689260A