CN108206853B - Method and device for communication between vehicles - Google Patents

Method and device for communication between vehicles Download PDF

Info

Publication number
CN108206853B
CN108206853B CN201611186546.6A CN201611186546A CN108206853B CN 108206853 B CN108206853 B CN 108206853B CN 201611186546 A CN201611186546 A CN 201611186546A CN 108206853 B CN108206853 B CN 108206853B
Authority
CN
China
Prior art keywords
vehicle
session
identifier
identification
session connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611186546.6A
Other languages
Chinese (zh)
Other versions
CN108206853A (en
Inventor
白晓雪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAFA Automobile (China) Co., Ltd.
Original Assignee
Fafa Automobile China Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fafa Automobile China Co ltd filed Critical Fafa Automobile China Co ltd
Priority to CN201611186546.6A priority Critical patent/CN108206853B/en
Publication of CN108206853A publication Critical patent/CN108206853A/en
Application granted granted Critical
Publication of CN108206853B publication Critical patent/CN108206853B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides a method and a device for communication between vehicles, and belongs to the technical field of communication. The method comprises the following steps: receiving an instruction to select a second vehicle as a conversation object; determining the position information of the second vehicle and the current position information of the first vehicle, and generating a session connection request comprising the position information of the first vehicle, the position information of the second vehicle and the current time; sending a session connection request to a server; receiving a session establishment notification sent by a server, wherein the session establishment notification comprises a first identifier distributed to a first vehicle and a second identifier distributed to a second vehicle, and indicates that a session connection is established between the first identifier of the first vehicle and the second identifier of the second vehicle; the established session connection between the first identification of the first vehicle and the second identification of the second vehicle is used to communicate with the second vehicle. The embodiment of the invention can carry out communication based on the vehicle, does not need to rely on an external user to carry a mobile phone for communication, and gets rid of the dependence on the user.

Description

Method and device for communication between vehicles
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for communication between vehicles.
Background
When a plurality of vehicles travel together, communication between the vehicles is sometimes required, for example, communication between the vehicles is performed, or data is transmitted between the vehicles. In the prior art, a communication tool in a mobile phone is used for communication, and when a user takes the mobile phone in a vehicle, the vehicle communicates with the mobile phone of the user. However, this communication method is based on a mobile phone carried by a user, and a call can be made between vehicles only when the user is in the vehicle. The inventor of the present application finds in implementing the present invention that the above-mentioned solution of the prior art has a drawback that when a user is not in the vehicle, or the user changes the riding vehicle, the communication between the vehicles cannot be normally performed. Therefore, it is necessary to provide a communication method based on a vehicle.
Disclosure of Invention
It is an object of embodiments of the present invention to provide a method and apparatus for inter-vehicle communication that addresses the above technical problems, or at least partially addresses the above technical problems.
In order to achieve the above object, an embodiment of the present invention provides a method for inter-vehicle communication, which is used for a client of a first vehicle, and includes: receiving an instruction to select a second vehicle as a conversation object; determining the position information of the second vehicle and the current position information of the first vehicle, and generating a session connection request comprising the position information of the first vehicle, the position information of the second vehicle and the current time; sending the session connection request to a server; receiving a session establishment notification sent by a server, wherein the session establishment notification comprises a first identifier allocated to a first vehicle and a second identifier allocated to a second vehicle for a session requested to be established, and indicates that a session connection between the first identifier of the first vehicle and the second identifier of the second vehicle is established; communicating with a second vehicle using the established session connection between the first identification of the first vehicle and the second identification of the second vehicle.
Optionally, the method further includes: receiving an instruction for ending the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle; generating a session end notification for ending the session connection between the first identification of the first vehicle and the second identification of the second vehicle; sending the session completion notification to the server and the second vehicle, respectively; receiving an acknowledgement message of the server and the second vehicle for the session end notification; the session connection between the first identification of the first vehicle and the second identification of the second vehicle is ended.
Optionally, the method further includes: receiving a conversation ending notice sent by the second vehicle for ending the conversation connection between the first identification of the first vehicle and the second identification of the second vehicle; sending an acknowledgement message for the session end notification to the second vehicle; and ending the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle according to the session ending notice.
Optionally, the method further includes: receiving a request sent by a server for establishing session connection with a third vehicle; receiving an instruction to allow a session connection with a third vehicle; generating a response for accepting the request according to the instruction for allowing the session connection with the third vehicle; and sending the response of the acceptance request to the server.
Optionally, the method further includes: receiving a session establishment notification sent by the server, wherein the session establishment notification comprises a fourth identifier allocated to the first vehicle and a third identifier allocated to a third vehicle for the session requested to be established, and indicates that a session between the fourth identifier of the first vehicle and the third identifier of the third vehicle is established; communicating with a third vehicle using the established session connection between the fourth identification of the first vehicle and the third identification of the third vehicle.
According to another aspect of the present invention, there is provided a method of inter-vehicle communication for a server, the method including: receiving a session connection request sent by a first vehicle, wherein the session connection request comprises position information of the first vehicle, position information of a second vehicle and current time; sending a request to the second vehicle to establish a session connection with the first vehicle; receiving a response of the acceptance request sent by the second vehicle; generating a first identifier allocated to the first vehicle and a second identifier allocated to the second vehicle for the session requested to be established according to the position information of the first vehicle, the position information of the second vehicle and the current time; and sending a session establishment notification to the first vehicle and the second vehicle respectively, wherein the session establishment notification comprises a first identifier assigned to the first vehicle and a second identifier assigned to the second vehicle, and indicates that a session connection is established between the first identifier of the first vehicle and the second identifier of the second vehicle.
Optionally, the method further includes: receiving a session end notification for ending a session connection between a first identification of the first vehicle and a second identification of the second vehicle from the first vehicle or the second vehicle; releasing the first identifier assigned to the first vehicle and the second identifier assigned to the second vehicle according to the session end notification; sending an acknowledgement message to the first vehicle or the second vehicle in response to the session end notification.
Optionally, the method further includes: and after receiving the notification of the session ending, releasing the storage space for storing the related information of the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle.
According to another aspect of the present invention, there is provided an apparatus for inter-vehicle communication for a client of a first vehicle, the apparatus comprising: the input module is used for receiving an instruction of selecting a second vehicle as a conversation object; the processing module is used for determining the position information of the second vehicle and the current position information of the first vehicle and generating a session connection request comprising the position information of the first vehicle, the position information of the second vehicle and the current time; a sending module, configured to send the session connection request to a server; a receiving module, configured to receive a session establishment notification sent by a server, where the session establishment notification includes a first identifier assigned to a first vehicle and a second identifier assigned to a second vehicle for a session requested to be established, and indicates that a session connection between the first identifier of the first vehicle and the second identifier of the second vehicle is established; the processing module is further configured to communicate with a second vehicle using the established session connection between the first identification of the first vehicle and the second identification of the second vehicle.
Optionally, the input module is further configured to receive an instruction to end a session connection between a first identifier of the first vehicle and a second identifier of the second vehicle; the processing module is further configured to generate a session end notification for ending the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle; the sending module is further configured to send the session completion notification to the server and the second vehicle, respectively; the receiving module is further configured to receive an acknowledgement message of the server and the second vehicle for the session end notification; the processing module is further configured to end the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle.
Optionally, the receiving module is further configured to receive a session end notification that ends a session connection between the first identifier of the first vehicle and the second identifier of the second vehicle, where the session end notification is sent by the second vehicle; the sending module is further configured to send an acknowledgement message for the session end notification to the second vehicle; the processing module is further used for ending the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle according to the session ending notice.
Optionally, the receiving module is further configured to receive a request sent by the server to establish a session connection with a third vehicle; the input module is further used for receiving an instruction for allowing conversation connection with a third vehicle; the processing module is further used for generating a response for accepting the request according to the instruction for allowing the conversation connection with the third vehicle; the sending module is further configured to send a response to the request acceptance to the server.
Optionally, the receiving module is further configured to receive a session establishment notification sent by the server, where the session establishment notification includes a fourth identifier assigned to the first vehicle and a third identifier assigned to the third vehicle for the session requested to be established, and indicates that a session between the fourth identifier of the first vehicle and the third identifier of the third vehicle is established; the processing module is further configured to communicate with a third vehicle using the established session connection between the fourth identification of the first vehicle and the third identification of the third vehicle.
According to still another aspect of the present invention, there is provided an apparatus for inter-vehicle communication, for a server, the apparatus including: the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a conversation connection request sent by a first vehicle, and the conversation connection request comprises the position information of the first vehicle, the position information of a second vehicle and the current time; a sending module, configured to send a request for establishing a session connection with a first vehicle to the second vehicle; the receiving module is further used for receiving a response of the acceptance request sent by the second vehicle; the processing module is used for generating a first identifier distributed to the first vehicle and a second identifier distributed to the second vehicle aiming at the session requested to be established according to the position information of the first vehicle, the position information of the second vehicle and the current time; the sending module is further configured to send a session establishment notification to the first vehicle and the second vehicle, respectively, where the session establishment notification includes a first identifier assigned to the first vehicle and a second identifier assigned to the second vehicle, and indicates that a session connection between the first identifier of the first vehicle and the second identifier of the second vehicle is established.
Optionally, the receiving module is further configured to receive, from the first vehicle or the second vehicle, a session end notification for ending the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle; the processing module is further used for releasing the first identifier distributed to the first vehicle and the second identifier distributed to the second vehicle according to the conversation end notification; the sending module is further configured to send a confirmation message to the first vehicle or the second vehicle in response to the session end notification.
Optionally, the processing module is further configured to release a storage space used for storing the relevant information of the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle after receiving the notification of the session completion.
Through the technical scheme, the server allocates the identifiers for the vehicles for conversation, the conversation connection is established among the vehicles by using the allocated identifiers, and the vehicles communicate by using the conversation connection, so that the vehicles can communicate on the basis of the vehicles without depending on an external user carrying a mobile phone for communication, and dependence on the user is eliminated.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the embodiments of the invention without limiting the embodiments of the invention. In the drawings:
FIG. 1 is a flow chart of a method for inter-vehicle communication of a client in a vehicle according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for inter-vehicle end communication of a client in a vehicle according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method for inter-vehicle end communication of a client in a vehicle according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method for a client in a vehicle to respond to a session connection request in accordance with an embodiment of the present invention;
FIG. 5 is a flow chart of a method for a client in a vehicle to establish a session connection in response to a session connection request in accordance with an embodiment of the present invention;
FIG. 6 is a flow chart of a method for inter-vehicle communication of a server according to an embodiment of the present invention;
FIG. 7 is a flow chart of a method for inter-vehicle ending communications for a server according to an embodiment of the present invention;
FIG. 8 is a flow chart of a method of inter-vehicle communication according to an implementation scenario of the present invention;
FIG. 9 is a block diagram of an apparatus for inter-vehicle communication of a client in a vehicle according to an embodiment of the present invention; and
fig. 10 is a structural diagram of an apparatus for inter-vehicle communication of a server according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.
Example one
Fig. 1 is a flowchart of a method of inter-vehicle communication according to an embodiment of the present invention, which may be used for a client of a vehicle, such as a vehicle event recorder in the vehicle, a central control system of the vehicle, and the like. In this embodiment, taking the method as an example for being used in a client in a first vehicle, as shown in fig. 1, the method may include the following steps.
In step S110, an instruction to select the second vehicle as the conversation object is received.
For example, a map may be displayed in the screen of the vehicle, with icons of nearby vehicles marked in the map. When the user clicks an icon of a certain vehicle, for example, a second vehicle, in the map displayed on the screen, the client receives an input instruction to select the second vehicle as a conversation object.
In step S120, the location information of the second vehicle and the current location information of the first vehicle are determined, and a session connection request including the location information of the first vehicle, the location information of the second vehicle, and the current time is generated.
For example, after receiving an input instruction to select a second vehicle as a session object, the client reads the location information of the second vehicle from a map, determines the location information of the first vehicle by using a Global Positioning System (GPS), and reads the current time from a clock of a System in which the client is located. Thereafter, the obtained position information of the first vehicle, the position information of the second vehicle, and the current time are packaged as data into the session connection request.
In step S130, a session connection request is transmitted to the server.
For example, the client may send the session connection request to the server through various wireless communication networks, such as a cellular network or a wireless local area network. The server may receive the position information of the respective vehicles in real time and distribute the position information of the vehicles to the respective vehicles so that the positions of nearby vehicles may be displayed in a map in the vehicles. Also, the server records a communication address, such as an IP address, of each vehicle. Therefore, after receiving the session connection request sent by the first vehicle, the server searches the IP address of the second vehicle through the position of the second vehicle, and sends the request for establishing session connection with the first vehicle to the second vehicle. And after receiving a response of accepting the request sent by the second vehicle, the server generates a first identifier distributed to the first vehicle and a second identifier distributed to the second vehicle for the session established by the request according to the position information of the first vehicle, the position information of the second vehicle and the current time. The server packages a first identification distributed to the first vehicle and a second identification distributed to the second vehicle into the session establishment notification, and carries information in the session establishment notification to indicate that session connection between the first identification of the first vehicle and the second identification of the second vehicle is established. The session establishment notification may also carry respective IP addresses of the first vehicle and the second vehicle for use in subsequent communications.
In step S140, a session establishment notification sent by the server is received.
The session establishment notification includes a first identification assigned to the first vehicle and a second identification assigned to the second vehicle for the session requested to be established and indicates that a session connection is established between the first identification of the first vehicle and the second identification of the second vehicle.
After receiving the conversation establishment notification, the client analyzes a first identifier distributed to the first vehicle and a second identifier distributed to the second vehicle from the conversation establishment notification, and determines that conversation connection is established between the first vehicle and the second vehicle, wherein the conversation connection uses the first identifier and the second identifier. A plurality of session connections may be established between the first vehicle and the second vehicle, each session connection corresponding to a different vehicle identification. For example, when a voice call is performed between the first vehicle and the second vehicle, the session connection corresponding to the first identifier and the second identifier is used. The first vehicle may further establish another session connection with the second vehicle at different times in the above manner, for example, perform data sharing using the session connection, and at this time, the server may assign another group identifier for the session connection to the first vehicle and the second vehicle, for example, assign a fifth identifier to the first vehicle and assign a sixth identifier to the second vehicle. The session connection for data sharing corresponds to the fifth identification and the sixth identification.
In step S150, communication is performed with the second vehicle using the established session connection between the first identity of the first vehicle and the second identity of the second vehicle.
As such, the first vehicle and the second vehicle communicate with the second vehicle using the session connection corresponding to the first identification and the second identification.
Through the technical scheme, communication can be carried out based on the vehicle, communication is carried out without depending on an external user carrying a mobile phone, and dependence on the user is eliminated.
Example two
In the present embodiment, the first vehicle actively initiates the end of communication, as shown in fig. 2, and the method may include the following steps.
In step S202, an instruction to end a session connection between a first identifier of a first vehicle and a second identifier of a second vehicle is received.
In step S204, a session end notification for ending the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle is generated.
In step S206, the session end notification is transmitted to the server and the second vehicle, respectively.
At step S208, a confirmation message of the server and the second vehicle for the session end notification is received.
In step S210, the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle is ended.
For example, when a session connection between a first identifier of a first vehicle and a second identifier of a second vehicle is established, the client displays an end button for the session connection in the screen, and when the user clicks the end button, an instruction to end the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle is received. And then, the client generates a session ending notice carrying the first identifier and the second identifier, and sends the session ending notice to the server and the second vehicle. After receiving the conversation end notification, the server and the second vehicle analyze a first identifier of the first vehicle and a second identifier of the second vehicle, end the conversation connection between the first identifier of the first vehicle and the second identifier of the second vehicle, and send a confirmation message to the first vehicle. And after receiving the confirmation message, the first vehicle ends the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle.
Through the technical scheme, the first vehicle can respond to the user instruction to finish the conversation.
EXAMPLE III
In this embodiment, the end of communication is actively initiated by the second vehicle, and the first vehicle responds to the end of communication initiated by the second vehicle. As shown in fig. 3, the method may further include the following steps.
In step S302, a session end notification that ends a session connection between the first identifier of the first vehicle and the second identifier of the second vehicle, which is transmitted by the second vehicle, is received.
In step S304, a confirmation message for the session end notification is transmitted to the second vehicle.
In step S306, the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle is ended according to the session end notification.
For example, in the present embodiment, the second vehicle actively initiates the end of communication, and the first vehicle receives the session end notification sent by the second vehicle. And responding to the received conversation ending notice, the first vehicle replies a confirmation message to the second vehicle, and ends the conversation connection between the first identification of the first vehicle and the second identification of the second vehicle, and releases the resources used for the conversation connection.
Through the technical scheme, the first vehicle can respond to the session termination initiated by the second vehicle to terminate the session.
Example four
In this embodiment, session establishment is initiated by the third vehicle, to which the first vehicle responds. As shown in fig. 4, the method may include the following steps.
In step S402, a request sent by the server to establish a session connection with the third vehicle is received.
In step S404, an instruction to permit a session connection with the third vehicle is received.
In step S406, a response to accept the request is generated in accordance with the instruction to permit the session connection with the third vehicle.
In step S408, a response to accept the request is sent to the server.
For example, the third vehicle sends a session connection request to the server, and after receiving the session connection request, the server searches for relevant information of the third vehicle, packages the relevant information of the third vehicle into the request for establishing session connection with the third vehicle, and sends the request to the first vehicle. The first vehicle displays relevant information of the third vehicle, such as the current position of the third vehicle, a registered account, account identity information and the like, and pops up a button for accepting or not accepting the request, if a user clicks the button for accepting the request, the client receives an instruction for allowing session connection with the third vehicle, the client generates a response for accepting the request according to the instruction for allowing session connection with the third vehicle, and sends the response for accepting the request to the server.
Embodiment five, as shown in fig. 5, the method may further include the following steps.
In step S502, a session establishment notification sent by the server is received.
The session establishment notification includes a fourth identification assigned to the first vehicle and a third identification assigned to the third vehicle for the session requested to be established, and indicates that a session is established between the fourth identification of the first vehicle and the third identification of the third vehicle.
In step S504, a communication is made with the third vehicle using the established session connection between the fourth identification of the first vehicle and the third identification of the third vehicle.
For example, after receiving a response sent by the first vehicle to accept the request, the server generates a fourth identifier assigned to the first vehicle and a third identifier assigned to the third vehicle for the session established for the request. And the server packages the fourth identifier distributed to the first vehicle and the third identifier distributed to the third vehicle into the session establishment notification, and carries information in the session establishment notification to indicate that session connection between the fourth identifier of the first vehicle and the third identifier of the third vehicle is established. And the first vehicle receives the conversation establishment notice, analyzes a fourth identification distributed to the first vehicle and a third identification distributed to the third vehicle, and determines that the conversation between the fourth identification of the first vehicle and the third identification of the third vehicle is established. The first vehicle then communicates with the third vehicle using the established session connection between the fourth identification of the first vehicle and the third identification of the third vehicle.
Through the technical scheme, the first vehicle responds to the session connection request of the third vehicle, establishes session connection with the third vehicle and communicates with the third vehicle by using the session connection.
EXAMPLE six
FIG. 6 is a flow chart of a method for inter-vehicle communication of a server according to an embodiment of the present invention. As shown in fig. 6, the method may include the following steps.
In step S610, a session connection request sent by a first vehicle is received.
Wherein the session connection request includes location information of the first vehicle, location information of the second vehicle, and a current time.
In step S620, a request to establish a session connection with the first vehicle is sent to the second vehicle.
In step S630, a response to the acceptance request sent by the second vehicle is received.
In step S640, a first identifier assigned to the first vehicle and a second identifier assigned to the second vehicle for the session requested to be established are generated based on the location information of the first vehicle, the location information of the second vehicle, and the current time.
In step S650, session establishment notifications are transmitted to the first vehicle and the second vehicle, respectively.
Wherein the session establishment notification includes a first identification assigned to the first vehicle and a second identification assigned to the second vehicle and indicates that a session connection is established between the first identification of the first vehicle and the second identification of the second vehicle.
EXAMPLE seven
FIG. 7 is a flow chart of a method for inter-vehicle ending communications for a server according to an embodiment of the present invention; as shown in fig. 7, the method may include the following steps.
In step S702, a session end notification for ending a session connection between a first identifier of the first vehicle and a second identifier of the second vehicle is received from the first vehicle or the second vehicle.
In step S704, the first identifier assigned to the first vehicle and the second identifier assigned to the second vehicle are released according to the session end notification.
In step S706, in response to the session end notification, a confirmation message is transmitted to the first vehicle or the second vehicle.
Further, the method further comprises: and after receiving the notification of the session ending, releasing the storage space for storing the related information of the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle.
The method used in the server in the sixth embodiment and the seventh embodiment corresponds to the method used in the client, and for specific implementation, reference may be made to the detailed description of the method used in the client, which is not described herein again.
Fig. 8 is a flow chart of a method of inter-vehicle communication according to an implementation scenario in which a first vehicle and a second vehicle may be connected to a server over a network, respectively, and the first vehicle and the second vehicle will have a wireless network present. As shown in fig. 8, the method may include the following steps.
In step S802, the client in the first vehicle receives an instruction to select the second vehicle as the conversation object. In step S804, the client in the first vehicle determines the location information of the second vehicle and the current location information and current time of the first vehicle, and generates a session connection request, where the session connection request includes the location information of the first vehicle, the location information of the second vehicle and the current time. In step S806, the client in the first vehicle sends a session connection request to the server. In step S808, the server receives a session connection request sent by the first vehicle. In step S810, the server transmits a request for establishing a session connection with the first vehicle to the second vehicle. In step S812, the client in the second vehicle receives the request sent by the server to establish the session connection with the first vehicle. In step S814, the client in the second vehicle receives an instruction to allow a session connection with the first vehicle. In step S816, the client in the second vehicle generates a response accepting the request according to the instruction to allow the session connection with the first vehicle. In step S818, the client in the second vehicle transmits a response to the server to accept the request. In step S820, the server receives a response of the acceptance request transmitted by the second vehicle. In step S822, the server generates a first identifier assigned to the first vehicle and a second identifier assigned to the second vehicle for the session requested to be established, based on the location information of the first vehicle, the location information of the second vehicle, and the current time. In step S824, the server transmits a session establishment notification to the first vehicle and the second vehicle, respectively, the session establishment notification including a first identifier assigned to the first vehicle and a second identifier assigned to the second vehicle, and indicating that a session connection between the first identifier of the first vehicle and the second identifier of the second vehicle is established. In step S826, the client of the first vehicle receives the session establishment notification transmitted by the server. In step S828, the client of the first vehicle communicates with the second vehicle using the established first inter-identification session connection of the first vehicle and the second inter-identification session connection of the second vehicle. In step S830, the client of the second vehicle receives the session establishment notification transmitted by the server. In step S832, the client of the second vehicle communicates with the first vehicle using the established first identification of the first vehicle and the established second inter-identification session connection of the second vehicle.
The above embodiments are intended to illustrate the technical solutions of the present invention, and are not intended to limit the scope of the present invention.
Fig. 9 is a structural diagram of an apparatus for inter-vehicle communication according to an embodiment of the present invention, which can be used for a client of a vehicle, such as a drive recorder in the vehicle, a central control system of the vehicle, and the like. In this embodiment, taking the method applied to the client in the first vehicle as an example, as shown in fig. 9, the apparatus may include the following modules.
An input module 910, configured to receive an instruction to select a second vehicle as a session object;
a processing module 920, configured to determine location information of the second vehicle and current location information of the first vehicle, and generate a session connection request including the location information of the first vehicle, the location information of the second vehicle, and a current time;
a sending module 930, configured to send the session connection request to a server;
a receiving module 940, configured to receive a session establishment notification sent by the server, where the session establishment notification includes a first identifier assigned to the first vehicle and a second identifier assigned to the second vehicle for the session requested to be established, and indicates that a session connection between the first identifier of the first vehicle and the second identifier of the second vehicle is established;
the processing module 920 is further configured to communicate with the second vehicle using the established session connection between the first identity of the first vehicle and the second identity of the second vehicle.
In an alternative embodiment, the input module 910 is further configured to receive an instruction to end the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle; the processing module 920 is further configured to generate a session ending notification for ending the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle; the sending module 930 is further configured to send the session ending notification to the server and the second vehicle, respectively; the receiving module 940 is further configured to receive an acknowledgement message of the server and the second vehicle for the session end notification; the processing module 920 is further configured to end the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle.
In an optional embodiment, the receiving module 940 is further configured to receive a session ending notification sent by the second vehicle to end the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle; the sending module 930 is further configured to send an acknowledgement message for the session end notification to the second vehicle; the processing module 920 is further configured to end the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle according to the session end notification.
In an alternative embodiment, the receiving module 940 is further configured to receive a request sent by the server to establish a session connection with a third vehicle; the input module 910 is further configured to receive an instruction to allow a session connection with a third vehicle; the processing module 920 is further configured to generate a response to accept the request according to the instruction to allow the session connection with the third vehicle; the sending module 930 is further configured to send the response of the acceptance request to the server.
In an alternative embodiment, the receiving module 940 is further configured to receive a session establishment notification sent by the server, where the session establishment notification includes a fourth identifier assigned to the first vehicle and a third identifier assigned to the third vehicle for the session requested to be established, and indicates that a session between the fourth identifier of the first vehicle and the third identifier of the third vehicle is established; the processing module 920 is further configured to communicate with a third vehicle using the established session connection between the fourth identification of the first vehicle and the third identification of the third vehicle.
The above device corresponds to the above method, and the detailed description of the specific embodiments can be found in the method, which is not repeated herein.
Through the technical scheme, communication can be carried out based on the vehicle, communication is carried out without depending on an external user carrying a mobile phone, and dependence on the user is eliminated.
Fig. 10 is a structural diagram of an apparatus for inter-vehicle communication of a server according to an embodiment of the present invention. As shown in fig. 10, the apparatus may include the following modules.
A receiving module 1010, configured to receive a session connection request sent by a first vehicle, where the session connection request includes location information of the first vehicle, location information of a second vehicle, and a current time;
a sending module 1020, configured to send a request to the second vehicle to establish a session connection with the first vehicle;
the receiving module 1010 is further configured to receive a response of the acceptance request sent by the second vehicle;
a processing module 1030 configured to generate a first identifier assigned to the first vehicle and a second identifier assigned to the second vehicle for the session requested to be established, according to the location information of the first vehicle, the location information of the second vehicle, and the current time;
the sending module 1020 is further configured to send a session establishment notification to the first vehicle and the second vehicle, respectively, where the session establishment notification includes a first identifier assigned to the first vehicle and a second identifier assigned to the second vehicle, and indicates that a session connection between the first identifier of the first vehicle and the second identifier of the second vehicle is established.
In an alternative embodiment, the receiving module 1010 is further configured to receive a session ending notification for ending the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle from the first vehicle or the second vehicle; the processing module 1030 is further configured to release the first identifier assigned to the first vehicle and the second identifier assigned to the second vehicle according to the session end notification; the sending module 1020 is further configured to send a confirmation message to the first vehicle or the second vehicle in response to the session end notification.
In an alternative embodiment, the processing module 1030 is further configured to release a storage space for storing the relevant information of the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle after receiving the notification of the end of the session.
The above device corresponds to the above method, and the detailed description of the specific embodiments can be found in the method, which is not repeated herein.
Through the technical scheme, communication can be carried out based on the vehicle, communication is carried out without depending on an external user carrying a mobile phone, and dependence on the user is eliminated.
Although the embodiments of the present invention have been described in detail with reference to the accompanying drawings, the embodiments of the present invention are not limited to the details of the above embodiments, and various simple modifications can be made to the technical solutions of the embodiments of the present invention within the technical idea of the embodiments of the present invention, and these simple modifications all belong to the protection scope of the embodiments of the present invention.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, the embodiments of the present invention do not describe every possible combination.
Those skilled in the art can understand that all or part of the steps in the method for implementing the above embodiments may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a (may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In addition, any combination of various different implementation manners of the embodiments of the present invention is also possible, and the embodiments of the present invention should be considered as disclosed in the embodiments of the present invention as long as the combination does not depart from the spirit of the embodiments of the present invention.

Claims (16)

1. A method of inter-vehicle communication for a client of a first vehicle, the method comprising:
receiving an instruction to select a second vehicle as a conversation object;
determining the position information of the second vehicle and the current position information of the first vehicle, and generating a session connection request comprising the position information of the first vehicle, the position information of the second vehicle and the current time;
sending the session connection request to a server;
receiving at least one session establishment notification sent by a server, wherein the session establishment notification comprises a first identifier allocated to a first vehicle and a second identifier allocated to a second vehicle for a session requested to be established, and indicates that a session connection is established between the first identifier of the first vehicle and the second identifier of the second vehicle;
communicating with a second vehicle using the established session connection between the first identification of the first vehicle and the second identification of the second vehicle.
2. The method of claim 1, further comprising:
receiving an instruction for ending the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle;
generating a session end notification for ending the session connection between the first identification of the first vehicle and the second identification of the second vehicle;
sending the session completion notification to the server and the second vehicle, respectively;
receiving an acknowledgement message of the server and the second vehicle for the session end notification;
the session connection between the first identification of the first vehicle and the second identification of the second vehicle is ended.
3. The method of claim 1, further comprising:
receiving a conversation ending notice sent by the second vehicle for ending the conversation connection between the first identification of the first vehicle and the second identification of the second vehicle;
sending an acknowledgement message for the session end notification to the second vehicle;
and ending the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle according to the session ending notice.
4. The method of claim 1, further comprising:
receiving a request sent by a server for establishing session connection with a third vehicle;
receiving an instruction to allow a session connection with a third vehicle;
generating a response for accepting the request according to the instruction for allowing the session connection with the third vehicle;
and sending the response of the acceptance request to the server.
5. The method of claim 4, further comprising:
receiving a session establishment notification sent by the server, wherein the session establishment notification comprises a fourth identifier allocated to the first vehicle and a third identifier allocated to a third vehicle for the session requested to be established, and indicates that a session between the fourth identifier of the first vehicle and the third identifier of the third vehicle is established;
communicating with a third vehicle using the established session connection between the fourth identification of the first vehicle and the third identification of the third vehicle.
6. A method of inter-vehicle communication for a server, the method comprising:
receiving a session connection request sent by a first vehicle, wherein the session connection request comprises position information of the first vehicle, position information of a second vehicle and current time;
sending a request to the second vehicle to establish a session connection with the first vehicle;
receiving a response of the acceptance request sent by the second vehicle;
generating a first identifier allocated to the first vehicle and a second identifier allocated to the second vehicle for the session requested to be established according to the position information of the first vehicle, the position information of the second vehicle and the current time;
at least one session establishment notification is sent to the first vehicle and the second vehicle, respectively, the session establishment notification including a first identification assigned to the first vehicle and a second identification assigned to the second vehicle and indicating that a session connection is established between the first identification of the first vehicle and the second identification of the second vehicle.
7. The method of claim 6, further comprising:
receiving a session end notification for ending a session connection between a first identification of the first vehicle and a second identification of the second vehicle from the first vehicle or the second vehicle;
releasing the first identifier assigned to the first vehicle and the second identifier assigned to the second vehicle according to the session end notification;
sending an acknowledgement message to the first vehicle or the second vehicle in response to the session end notification.
8. The method of claim 7, further comprising:
and after receiving the notification of the session ending, releasing the storage space for storing the related information of the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle.
9. An apparatus for inter-vehicle communication for a client of a first vehicle, the apparatus comprising:
the input module is used for receiving an instruction of selecting a second vehicle as a conversation object;
the processing module is used for determining the position information of the second vehicle and the current position information of the first vehicle and generating a session connection request comprising the position information of the first vehicle, the position information of the second vehicle and the current time;
a sending module, configured to send the session connection request to a server;
a receiving module, configured to receive at least one session establishment notification sent by a server, where the session establishment notification includes a first identifier assigned to the first vehicle and a second identifier assigned to the second vehicle for the session requested to be established, and indicates that a session connection between the first identifier of the first vehicle and the second identifier of the second vehicle is established;
the processing module is further configured to communicate with a second vehicle using the established session connection between the first identification of the first vehicle and the second identification of the second vehicle.
10. The apparatus of claim 9, wherein the input module is further configured to receive an instruction to end a session connection between a first identification of a first vehicle and a second identification of a second vehicle;
the processing module is further configured to generate a session end notification for ending the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle;
the sending module is further configured to send the session completion notification to the server and the second vehicle, respectively;
the receiving module is further configured to receive an acknowledgement message of the server and the second vehicle for the session end notification;
the processing module is further configured to end the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle.
11. The apparatus according to claim 9, wherein the receiving module is further configured to receive a session ending notification sent by the second vehicle to end the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle;
the sending module is further configured to send an acknowledgement message for the session end notification to the second vehicle;
the processing module is further used for ending the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle according to the session ending notice.
12. The apparatus of claim 9, wherein the receiving module is further configured to receive a request sent by the server to establish a session connection with a third vehicle;
the input module is further used for receiving an instruction for allowing conversation connection with a third vehicle;
the processing module is further used for generating a response for accepting the request according to the instruction for allowing the conversation connection with the third vehicle;
the sending module is further configured to send a response to the request acceptance to the server.
13. The apparatus of claim 12, wherein the receiving module is further configured to receive a session establishment notification sent by the server, the session establishment notification including a fourth identifier assigned to the first vehicle and a third identifier assigned to the third vehicle for the session requested to be established, and indicating that a session between the fourth identifier of the first vehicle and the third identifier of the third vehicle is established;
the processing module is further configured to communicate with a third vehicle using the established session connection between the fourth identification of the first vehicle and the third identification of the third vehicle.
14. An apparatus for inter-vehicle communication for a server, the apparatus comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a conversation connection request sent by a first vehicle, and the conversation connection request comprises the position information of the first vehicle, the position information of a second vehicle and the current time;
a sending module, configured to send a request for establishing a session connection with a first vehicle to the second vehicle;
the receiving module is further used for receiving a response of the acceptance request sent by the second vehicle;
the processing module is used for generating a first identifier distributed to the first vehicle and a second identifier distributed to the second vehicle aiming at the session requested to be established according to the position information of the first vehicle, the position information of the second vehicle and the current time;
the sending module is further configured to send at least one session establishment notification to the first vehicle and the second vehicle, respectively, where the session establishment notification includes a first identifier assigned to the first vehicle and a second identifier assigned to the second vehicle, and indicates that a session connection between the first identifier of the first vehicle and the second identifier of the second vehicle is established.
15. The apparatus of claim 14, wherein the receiving module is further configured to receive a session end notification from the first vehicle or the second vehicle for ending the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle;
the processing module is further used for releasing the first identifier distributed to the first vehicle and the second identifier distributed to the second vehicle according to the conversation end notification;
the sending module is further configured to send a confirmation message to the first vehicle or the second vehicle in response to the session end notification.
16. The apparatus of claim 15, wherein the processing module is further configured to release a storage space for storing information related to the session connection between the first identifier of the first vehicle and the second identifier of the second vehicle after receiving the notification of the end of the session.
CN201611186546.6A 2016-12-20 2016-12-20 Method and device for communication between vehicles Active CN108206853B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611186546.6A CN108206853B (en) 2016-12-20 2016-12-20 Method and device for communication between vehicles

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611186546.6A CN108206853B (en) 2016-12-20 2016-12-20 Method and device for communication between vehicles

Publications (2)

Publication Number Publication Date
CN108206853A CN108206853A (en) 2018-06-26
CN108206853B true CN108206853B (en) 2021-01-19

Family

ID=62603439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611186546.6A Active CN108206853B (en) 2016-12-20 2016-12-20 Method and device for communication between vehicles

Country Status (1)

Country Link
CN (1) CN108206853B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784432B (en) * 2018-07-31 2021-11-19 华为技术有限公司 Session creation method and device
CN109286561A (en) * 2018-11-19 2019-01-29 广州小鹏汽车科技有限公司 Vehicle instant communication method and onboard system
CN110099368A (en) * 2019-05-15 2019-08-06 安徽三联学院 A kind of vehicle realtime communication system and method based on car networking

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1757019A (en) * 2002-12-25 2006-04-05 松下电器产业株式会社 Terminal device and session management device
CN102204212A (en) * 2008-08-26 2011-09-28 诺迈光谱有限公司 Mobile data communication
CN103281191A (en) * 2013-05-30 2013-09-04 江苏大学 Method and system for communicating based on car networking
CN104519414A (en) * 2013-09-27 2015-04-15 北京新媒传信科技有限公司 Method and system for streaming media transmission
CN105610950A (en) * 2015-12-30 2016-05-25 腾讯科技(深圳)有限公司 Session processing method and system in motorcade travel

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9615248B2 (en) * 2015-03-31 2017-04-04 Globalfoundries Inc. Anonymous vehicle communication protocol in vehicle-to-vehicle networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1757019A (en) * 2002-12-25 2006-04-05 松下电器产业株式会社 Terminal device and session management device
CN102204212A (en) * 2008-08-26 2011-09-28 诺迈光谱有限公司 Mobile data communication
CN103281191A (en) * 2013-05-30 2013-09-04 江苏大学 Method and system for communicating based on car networking
CN104519414A (en) * 2013-09-27 2015-04-15 北京新媒传信科技有限公司 Method and system for streaming media transmission
CN105610950A (en) * 2015-12-30 2016-05-25 腾讯科技(深圳)有限公司 Session processing method and system in motorcade travel

Also Published As

Publication number Publication date
CN108206853A (en) 2018-06-26

Similar Documents

Publication Publication Date Title
CN112153098B (en) Application migration method and device
CN109922472B (en) Acquisition of user policy
US10602438B2 (en) Network slice selection method and apparatus
US20200337062A1 (en) V2x message communication method and apparatus
EP3046394B1 (en) Message processing method and mme selection method and device
EP3761679B1 (en) Location method and related device
US11432349B2 (en) Group creation method, apparatus, and system
CN109246769B (en) PDU session establishment method and device
CN108206853B (en) Method and device for communication between vehicles
EP3200486A1 (en) Connection establishment method, device, and system
US20140323088A1 (en) Telecommunication method and telecommunication system
CN114342332A (en) Communication method, device and system
EP3836619B1 (en) Direct connection communication method, access control and mobility management function entity and terminal
CN114697945A (en) Method and device for generating discovery response message and method for processing discovery message
CN103973648B (en) Application data method for pushing, apparatus and system
US10701552B2 (en) Enhanced dynamic feature support in wireless diameter-based networks
CN109729516B (en) User equipment capability information limiting method, device, medium, terminal and base station
CN106231538B (en) Method and device for binding OneM2M architecture equipment
US20180242180A1 (en) Identifying volte to different technology types
CN110972204B (en) Resource allocation method, device, storage medium, network equipment and terminal
US9077700B2 (en) Authentication server, authentication method and computer program
CN112822644A (en) Group establishing method and equipment
CN108307457B (en) Message routing method and device
CN107211479B (en) Method and device for selecting access network
RU2656248C2 (en) Message transmission method, apparatus and gateway device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180731

Address after: 511458 9, Nansha District Beach Road, Guangzhou, Guangdong, 9

Applicant after: Rui Chi intelligent automobile (Guangzhou) Co., Ltd.

Address before: 100026 8 floor 909, 105 building 3, Yao Yuan Road, Chaoyang District, Beijing.

Applicant before: Music Automotive (Beijing) Co., Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 511458 9, Nansha District Beach Road, Guangzhou, Guangdong, 9

Applicant after: Hengda Faraday future intelligent vehicle (Guangdong) Co., Ltd.

Address before: 511458 9, Nansha District Beach Road, Guangzhou, Guangdong, 9

Applicant before: Rui Chi intelligent automobile (Guangzhou) Co., Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20190318

Address after: 100015 Building No. 7, 74, Jiuxianqiao North Road, Chaoyang District, Beijing, 001

Applicant after: FAFA Automobile (China) Co., Ltd.

Address before: 511458 9, Nansha District Beach Road, Guangzhou, Guangdong, 9

Applicant before: Hengda Faraday future intelligent vehicle (Guangdong) Co., Ltd.

GR01 Patent grant
GR01 Patent grant