WO2022127529A1 - 一种通信系统、方法及装置 - Google Patents

一种通信系统、方法及装置 Download PDF

Info

Publication number
WO2022127529A1
WO2022127529A1 PCT/CN2021/132354 CN2021132354W WO2022127529A1 WO 2022127529 A1 WO2022127529 A1 WO 2022127529A1 CN 2021132354 W CN2021132354 W CN 2021132354W WO 2022127529 A1 WO2022127529 A1 WO 2022127529A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
terminal device
terminal
server
identifier
Prior art date
Application number
PCT/CN2021/132354
Other languages
English (en)
French (fr)
Inventor
任乾栋
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP21905458.2A priority Critical patent/EP4246908A4/en
Publication of WO2022127529A1 publication Critical patent/WO2022127529A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4535Network directories; Name-to-address mapping using an address exchange platform which sets up a session between two nodes, e.g. rendezvous servers, session initiation protocols [SIP] registrars or H.323 gatekeepers
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a communication system, method, and apparatus.
  • the communication between the vehicle and the terminal device such as a mobile phone
  • the smart home device and the terminal device all need to be forwarded by the server.
  • the mobile phone sends the control instruction to the server in response to the control instruction input by the user
  • the server sends the control instruction to the vehicle after receiving the control instruction from the mobile phone.
  • the server since the vehicle will enter the sleep mode after turning off the ignition switch, when the vehicle is in the sleep mode, after receiving the control command, the server also needs to connect to the operator's short message service-service center (SMS-SC) Or voice gateway, after waking up the vehicle through the SMC-SC or voice gateway, the control command can be sent to the vehicle.
  • SMS-SC short message service-service center
  • voice gateway after waking up the vehicle through the SMC-SC or voice gateway, the control command can be sent to the vehicle.
  • SMS-SC or voice gateway there are too many network elements in the communication system, and the transmission path is too long, which leads to problems such as prolonged communication time and low reliability, which affects the user experience
  • Embodiments of the present application provide a communication system, method, and device, which are used to solve the problems of long transmission paths and prolonged communication times caused by many communication network elements in the prior art.
  • an embodiment of the present application provides a communication system, where the communication system includes a server, a first terminal device, and a second terminal device.
  • the first terminal device is used to obtain a first Internet Protocol (IP) address allocated by the network device to the first terminal device, and send the first IP address and the first identifier of the first terminal device to server.
  • IP Internet Protocol
  • the first IP address is used for direct communication with the second terminal device associated with the first terminal device.
  • the server is configured to receive the first identifier and the first IP address from the first terminal device; and notify the second terminal device of the first IP address according to the first identifier. Wherein, there is an association relationship between the first identification and the second identification of the second terminal device.
  • the second terminal device is configured to receive and store the first IP address from the server; and send the first information to the first terminal device according to the first IP address.
  • the first terminal device is further configured to receive the first information from the second terminal device.
  • the first terminal device after acquiring the first IP address, can send the first IP address to the second terminal device associated with the first terminal device through the server. This enables the second terminal device to send the first information to the first terminal device according to the first IP address after acquiring the first IP address.
  • the direct communication between the first terminal device and the second terminal device is realized, the reduction of transmission delay caused by too many communication network elements is avoided, and the communication reliability is improved.
  • the first IP address is an Internet Protocol Version 6 IPv6 address.
  • the second terminal device can be addressed directly through the IPv6 address of the first terminal device, ensuring that the first terminal device and the second terminal device can be addressed directly.
  • the direct communication between the terminal devices improves the communication efficiency between the first terminal device and the second terminal device.
  • the first terminal device when acquiring the first IP address allocated by the network device to the first terminal device, the first terminal device is used to: send a network registration request to the network device, where the network registration request carries the address type parameter, the address type The parameter is used to instruct the network device to assign an IPv6 address to the first terminal device; obtain a network registration response returned by the network device, where the network registration response carries the first IP address.
  • the network device is instructed to allocate an IPv6 address to the first terminal device through the address type parameter carried in the network registration request, so that the first terminal device can obtain the IPv6 address, so as to ensure that the first terminal device can communicate with the first terminal device through the IPv6 address.
  • the two terminal devices perform direct communication, thereby improving the communication efficiency between the first terminal device and the second terminal device.
  • the first terminal device is further configured to acquire a third IP address allocated by the network device to the first terminal device during the process of reattaching the first terminal device to the network, and the third IP address is the same as the first terminal device.
  • the IP addresses are different; the third IP address is notified to the second terminal device; the second terminal device is further configured to receive the third IP address from the first terminal device, and replace the stored first IP address with the third IP address .
  • the first terminal device can obtain a new IP address in the process of re-attaching to the network, and then notify the second terminal device of the new IP address, so that the second terminal device can communicate with the second terminal device through the new IP address.
  • the first terminal device communicates to prevent the second terminal device from being unable to address the first terminal device when the IP address is changed.
  • the first terminal device acquires a new IP address in the process of re-attaching to the network, instead of actively detecting whether the IP address is changed, so as to reduce the power consumption of the first terminal device.
  • the first terminal device is further configured to update the first IP address to a third IP address when it is determined that the usage duration of the first IP address reaches the first duration, the host address of the third IP address and The host address of the first IP address is different, the network address of the third IP address is the same as the network address of the first IP address; and the third IP address is notified to the second terminal device; the second terminal device is also used to receive the third IP address. IP address, and replace the stored first IP address with the third IP address.
  • the first terminal device can periodically update the IP address. Since the network addresses of the new IP address and the old IP address are the same during the periodic update, the first terminal device can still update the network address according to the new IP address. side to communicate, while ensuring communication security and availability.
  • the first terminal device when notifying the second terminal device of the third IP address, is configured to send the third IP address to the server; the server is further configured to receive the third IP address from the first terminal device IP address, and send the third IP address to the second terminal device; the second terminal device is used to receive the third IP address sent by the service.
  • the updated IP address can be notified to the second terminal device through the server, so as to ensure real-time communication between the first terminal device and the second terminal device and improve communication reliability. sex.
  • the first terminal device when notifying the second terminal device of the third IP address, is configured to send the third IP address to the second terminal device according to the second IP address; when receiving the third IP address , the second terminal device is configured to receive the third IP address sent by the first terminal device.
  • the updated IP address is directly sent to the second terminal device to ensure real-time communication between the first terminal device and the second terminal device and improve communication efficiency.
  • the first terminal device is further configured to send a reception response to the second terminal device after receiving the first information from the second terminal device; the second terminal device is further configured to send a reception response to the second terminal device if the second time duration If the reception response from the first terminal device is not received, an address query request is sent to the server, and the address query request carries the first identifier; the server is also used for receiving the address query request from the second terminal device; according to the address query request , query the fourth IP address of the first terminal device identified by the first identifier; and send the fourth IP address to the second terminal device; the second terminal device is also used to receive the fourth IP address from the server, and according to The fourth IP address sends the first information to the first terminal device again.
  • the second terminal device when the second terminal device cannot establish a communication connection with the first terminal device, it can obtain the IP address of the first terminal device stored in the server through the server, and according to the IP address of the first terminal device stored in the server, Communicate with the first terminal device to ensure communication efficiency.
  • the first terminal device is associated with N second terminal devices, and when notifying the second terminal device of the first IP address according to the first identifier, the server is configured to: determine, according to the first mapping relationship, the The first terminal device has N associated second terminal devices, the first mapping relationship includes an association relationship between the first identifier and the N second identifiers, and the N second identifiers are respectively used to identify the N second terminal devices ; Notify the N second terminal devices of the first IP address.
  • the server sends the first IP address of the first terminal device to the N second terminal devices associated with the first terminal device.
  • the value of N is a positive integer.
  • the first terminal device is associated with one second terminal device.
  • the value of N is greater than or equal to 2
  • the first terminal device is associated with multiple second terminals. In this way, the second terminal device associated with the first terminal device can all communicate with the first terminal device in real time, thereby improving communication reliability.
  • the first terminal device is associated with N second terminal devices, and when sending the first IP address and the first identifier of the first terminal device to the server, the first terminal device is used to send the first IP address to the server.
  • the first identification of the first terminal device and the first service type of the first terminal device are sent to the server;
  • the server is also used to receive the first service type from the first terminal device; according to the first identification, the first IP address is notified
  • the server is configured to: determine N second terminal devices associated with the first terminal device according to the first mapping relationship, where the first mapping relationship includes the relationship between the first identification and the N second identifications
  • the N second identifiers are respectively used to identify the N second terminal devices; according to the second mapping relationship, at least one second terminal device is selected from the N second terminal devices, and the second mapping relationship includes The association relationship between the second identifier of the at least one second terminal device and the second service type of the at least one second terminal device, the second service type of the at least one second terminal device is the same as
  • the server sends the first IP address of the first terminal device to the second terminal device associated with the first terminal device and having the same service type as the first terminal device.
  • the first terminal device as a mobile phone
  • the second terminal device associated with the mobile phone includes a smart air conditioner and a smart audio system. reliability and communication efficiency.
  • the first terminal device is associated with N second terminal devices, and when sending the first IP address and the first identifier of the first terminal device to the server, the first terminal device is used to send the first IP address to the server.
  • the first identification of the first terminal device and the second identification of at least one second terminal device are sent to the server;
  • the server is further configured to receive the second identification of at least one second terminal device from the first terminal device; according to the first identification , when notifying the second terminal device of the first IP address, the server is configured to: notify at least one second terminal device of the first IP address according to the first identifier, wherein the first identifier and the at least one second terminal device are related There is an association relationship between the second identifiers.
  • the server directly sends the first IP address to at least one second terminal device indicated by the first terminal device, thereby reducing the computational complexity of the server and improving the transmission efficiency of the IP address.
  • an embodiment of the present application provides a communication method.
  • the method can be applied to the first terminal device or a chip or a chip system in the first terminal device.
  • the method includes: obtaining a first IP address allocated by the network device to the first terminal device, where the first IP address is used for direct communication with the second terminal device associated with the first terminal device;
  • the server sends the first IP address and the first identification of the first terminal device, so that the server sends the first IP address to the second terminal device, and there is an association relationship between the first identification and the second identification of the second terminal device;
  • the first information of the second terminal device where the first information carries the first IP address, and the first IP address is used as the destination IP address.
  • the first terminal device After the first terminal device obtains the IP address of the second terminal device, it can directly communicate with the second terminal device in real time according to the IP address, and does not need to forward information through other network elements (such as servers).
  • the communication efficiency between the first terminal device and the second terminal device reduces the communication delay.
  • the first IP address is an IPv6 address.
  • the IPv6 address is a public network address
  • the remote communication between the first terminal device and the second terminal device can be realized through the IPv6 address, so as to avoid the failure of communication between network elements due to the temporary public network address change. Improve communication reliability.
  • acquiring the first IP address allocated by the network device to the first terminal device includes: sending a network registration request to the network device, where the network registration request carries an address type parameter, and the address type parameter is used to indicate the network device Allocate an IPv6 address to the first terminal device; obtain a network registration response returned by the network device, where the network registration response carries the first IP address.
  • the first terminal device can send the address type parameter to the network device during the network registration process to instruct the network device to allocate an IPv6 address, thereby improving communication efficiency.
  • the method further includes: in the process of re-attaching the first terminal device to the network, acquiring a third IP address allocated by the network device to the first terminal device, where the third IP address is different from the first IP address; Notifying the second terminal device of the third IP address, where the third IP address is used to instruct the second terminal device to replace the stored first IP address of the first terminal device with the third IP address.
  • the first terminal device can obtain a new IP address allocated by the network side during the re-attaching process, which can reduce the power consumption of the terminal device compared to the first terminal device actively detecting whether the IP address changes.
  • the method further includes: when it is determined that the usage duration of the first IP address reaches a preset duration, updating the first IP address to a third IP address, the host address of the third IP address and the first IP address The host address is different, the network address of the third IP address is the same as the network address of the first IP address; the third IP address is notified to the second terminal device, and the third IP address is used to instruct the second terminal device to store the first IP address.
  • the first IP address of the terminal device is replaced with a third IP address.
  • the server notifies the second terminal device of the third IP address; or directly sends the third IP address to the second terminal device according to the stored second IP address of the second terminal device.
  • the first terminal device sends the new IP address to the second terminal device through the server to improve the accuracy of address update, and the first device directly sends the IP address to the second terminal device to improve the address update efficiency.
  • the first terminal device is associated with N second terminal devices, and sends the first IP address and the first identifier of the first terminal device to the server, including: directly combining the first IP address and the first identifier of the first terminal device Send to the server; or, send the first IP address, the first identifier and the first service type of the first terminal device to the server; or, send the first IP address, the first identifier and the at least one second terminal device
  • the second identification is sent to the server.
  • an embodiment of the present application provides a communication method, which is applied to a server.
  • the method includes: receiving a first identification of the first terminal device and a first IP address of the first terminal device from the first terminal device, wherein the first IP address is used for direct communication with a second terminal device associated with the first terminal device Communication; notifying the first IP address to the second terminal device according to the first identification, wherein there is an association relationship between the first identification and the second identification of the second terminal device.
  • the server After the server receives the first identifier and the first IP address of the first terminal device sent by the first terminal device, if the first identifier of the first terminal device and the second identifier of the second terminal device have an associated relationship , according to the first identifier and the second identifier, determine that the first terminal device and the second terminal device are associated, and send the IP address of the first terminal device to the second terminal device, so that the second terminal device can pass the first IP address
  • the address communicates directly with the first terminal device to improve communication efficiency.
  • the first terminal device is associated with N second terminal devices
  • notifying the second terminal device of the first IP address according to the first identifier includes: determining a connection with the first terminal device according to the first mapping relationship
  • the first mapping relationship includes the association relationship between the first identifier and the N second identifiers, and the N second identifiers are respectively used to identify the N second terminal devices;
  • An IP address is notified to N second terminal devices.
  • the server sends the first IP address of the first terminal device to the N second terminal devices associated with the existence, and all the N second terminal devices can communicate with the first terminal device in real time, improving the communication reliability. .
  • the first terminal device is associated with N second terminal devices, and when the server receives the first identifier of the first terminal device and the first IP address of the first terminal device from the first terminal device, the server also receives The first service type of the first terminal device from the first terminal device.
  • Notifying the first IP address to the second terminal device according to the first identifier includes: determining, according to a first mapping relationship, N second terminal devices associated with the first terminal device, where the first mapping relationship includes the first identifier and N second identifiers, where the N second identifiers are respectively used to identify the N second terminal devices; according to the second mapping relationship, at least one second terminal is screened out from the N second terminal devices device, the second mapping relationship includes an association relationship between a second identifier of at least one second terminal device and a second service type of at least one second terminal device, and the second service type of at least one second terminal device is associated with the first The service types are the same; the first IP address is notified to at least one second terminal device.
  • the server sends the first IP address of the first terminal device to the second terminal device associated with the first terminal device and having the same service type as the first terminal device, thereby improving communication reliability and communication efficiency.
  • the first terminal device is associated with N second terminal devices, and when the server receives the first identifier of the first terminal device and the first IP address of the first terminal device from the first terminal device, the server also receives a second identifier of at least one second terminal device from the first terminal device; according to the first identifier, notifying the first IP address to the second terminal device includes: notifying at least one first IP address to at least one The second terminal device, wherein there is an association relationship between the first identifier and the second identifier of the at least one second terminal device.
  • the server directly sends the first IP address to at least one second terminal device indicated by the first terminal device, thereby reducing the computational complexity of the server and improving the transmission efficiency of the IP address.
  • an embodiment of the present application provides a communication method, and the method can be executed by a second terminal device or a chip or a chip system in the second terminal device, so as to realize any of the above-mentioned first aspect executed by the second terminal device.
  • the present application provides a communication apparatus, the apparatus including a module/unit for executing the method in any of the possible implementation manners of the second aspect, the third aspect or the fourth aspect.
  • These modules/units can be implemented by hardware or by executing corresponding software by hardware.
  • the present application provides a communication device, comprising a processor and a memory, wherein the memory is used to store one or more computer programs; when the one or more computer programs stored in the memory are executed by the processor, the communication
  • the apparatus can implement the method in any possible implementation manner of the second aspect, the third aspect or the fourth aspect.
  • the present application provides a computer program that, when the computer program runs on a computer, causes the computer to execute the method in any of the possible implementations of the second aspect, the third aspect or the fourth aspect. .
  • the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer is made to execute the second aspect and the third aspect above.
  • a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer is made to execute the second aspect and the third aspect above.
  • the present application provides a chip, which is used to read a computer program stored in a memory, and execute the method in any of the possible implementation manners of the second aspect, the third aspect or the fourth aspect.
  • an embodiment of the present application further provides a chip system, where the chip system includes a processor for supporting a computer device to implement the method in any of the possible implementation manners of the second aspect, the third aspect, or the fourth aspect. .
  • the chip system further includes a memory for storing necessary programs and data of the computer device.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • FIG. 1 is a schematic diagram of a possible communication system provided in an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a possible terminal device provided in an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a possible communication method provided in an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another possible communication method provided in an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of another possible communication method provided in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a possible communication apparatus provided in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of another possible communication apparatus provided in an embodiment of the present application.
  • FIG. 1 is a possible communication system provided in an embodiment of the application, and the communication system may include a server, a first terminal device, a second terminal device, and a network device.
  • the communication system may adopt the 4th Generation mobile communication technology (4G) network architecture, such as a long term evolution (LTE) system, or may adopt the 5th Generation mobile communication technology (the 5th Generation mobile communication technology) communication technology, 5G) network architecture, such as the NR system, or the future sixth-generation mobile communication technology network architecture or other similar communication systems, there is no specific limitation.
  • 4G 4th Generation mobile communication technology
  • LTE long term evolution
  • a network device also known as an access network (AN) device, such as a base station, can refer to a device in the access network that communicates with vehicle-mounted terminals and terminal devices through one or more cells on the air interface.
  • the received air frames and IP packets are interconverted to serve as routers between the terminal equipment, the vehicle-mounted terminal, and the rest of the access network, which may include the IP network.
  • the network device can also coordinate the attribute management of the air interface.
  • the network equipment may include an LTE system or an evolved base station (evolutional Node B, NodeB or eNB or e-NodeB) in the long term evolution-advanced (LTE-A), or may also include a 5G NR system ( Also referred to as the next generation node B (next generation node B, gNB) in the NR system), the embodiment of the present application is not limited.
  • LTE system or an evolved base station evolutional Node B, NodeB or eNB or e-NodeB
  • LTE-A long term evolution-advanced
  • 5G NR system Also referred to as the next generation node B (next generation node B, gNB) in the NR system
  • the first terminal device may be a vehicle-mounted terminal, a smart home device or a wireless terminal
  • the second terminal device may also be a vehicle-mounted terminal, a smart home device or a wireless terminal.
  • the in-vehicle terminal can be considered as a device placed or installed on the vehicle, including a communication module to provide cellular communication functions to support the external communication connection of the vehicle.
  • the vehicle may communicate with the terminal device through the vehicle-mounted terminal via a network device (eg, a base station) in the communication network.
  • the vehicle can also communicate with the server through the vehicle terminal through the communication network.
  • Smart home devices can be, but are not limited to, smart air conditioners, smart washing machines, smart refrigerators, smart water heaters, smart rice cookers, smart lamps and other devices.
  • a wireless terminal may be a device that provides voice and/or data connectivity to a user, a handheld device with wireless connectivity, or other processing device connected to a wireless modem.
  • a wireless terminal may be a mobile terminal, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal, for example, may be a portable, pocket-sized, hand-held or computer-built mobile device, which is connected to a wireless access network.
  • Exchange language and/or data For example, mobile phones, wearable devices (such as smart watches), personal communication service (PCS) phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (wireless local loop) WLL) station, personal digital assistant (PDA), intelligent interactive speaker, intelligent interactive screen and other equipment.
  • PCS personal communication service
  • SIP session initiation protocol
  • WLL wireless local loop
  • PDA personal digital assistant
  • a wireless terminal may also be called a subscriber unit, subscriber station, mobile station, mobile station, remote station, access point, remote terminal (remote terminal), access terminal (access terminal), user terminal (user terminal), user agent (user agent), user equipment (user device), or user equipment (user equipment).
  • the first terminal device is an in-vehicle terminal and the second terminal device is a wireless terminal (hereinafter, the wireless terminal is referred to as a terminal device) as an example for description.
  • the terminal device may contain an application program for providing the interaction function between the user and the vehicle.
  • Example 1 when the outdoor temperature is high, the user can remotely control the vehicle to turn on the air conditioner through the app for pre-cooling.
  • Example 2 when the outdoor temperature is low, the user can remotely control the vehicle to turn on the air conditioner to preheat through the application.
  • Example 3 After the vehicle stops running for a period of time, if the vehicle detects that the window is not closed, the vehicle can notify the user that the window is closed abnormally through the application program, and then the user can remotely control the window closing of the vehicle through the application program.
  • Example 4 After the vehicle stops running for a period of time, if the vehicle detects abnormal vibration or collision, the user can be notified of the abnormality of the vehicle through the application.
  • Example 5 the user can remotely view the battery usage of the vehicle and the information of the parts of the vehicle in real time through the application.
  • the server is used to manage the IP addresses of the terminal equipment and the in-vehicle terminal.
  • the specific deployment form of the server is not limited in this application. Specifically, it may be cloud deployment, or may be an independent computer device or chip.
  • both the in-vehicle terminal and the terminal device can obtain the IP address assigned by the network side.
  • the terminal device can change the IP address of the in-vehicle terminal when detecting the control command input by the user in the application.
  • the destination IP address the IP address of the terminal device is used as the source IP address, and the control command is sent to the vehicle terminal, so that the vehicle terminal can perform the operation indicated by the control command when receiving the control command from the terminal device.
  • FIG. 2 shows a schematic diagram of an optional hardware structure of the terminal device.
  • the terminal device may include: processor 210, power supply 220, memory 230, antenna 1, antenna 2, mobile communication module 240, wireless communication module 250, audio circuit 260, speaker 261, microphone 262, sensor 270, camera 280, display unit 290 Wait.
  • the sensor 270 may include a touch sensor 272, a pressure sensor 271, and the like.
  • the terminal device may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • GPU graphics processor
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • a memory may also be provided in the processor 210 for storing instructions and data.
  • the memory in processor 210 is cache memory.
  • the memory may hold instructions or data that have just been used or recycled by the processor 210 . If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided, and the waiting time of the processor 210 is reduced, thereby improving the efficiency of the system.
  • the terminal device also includes a power source 220 (such as a battery) for powering the various components.
  • a power source 220 such as a battery
  • the power supply 220 may be logically connected to the processor 210 through a power management system, so as to implement functions such as managing charging, discharging, and power consumption through the power management system.
  • Memory 230 may be used to store computer-executable program code, which includes instructions.
  • the memory 230 may include a stored program area and a stored data area.
  • the storage program area may store an operating system, an application program required for at least one function (for example, an application program for realizing the interaction between the vehicle and the user), and the like.
  • the storage data area can store data created during the use of the terminal device (such as control instructions input by the user, etc.) and the like.
  • the memory 230 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the processor 210 executes various functional applications and data processing of the terminal device by executing the instructions stored in the memory 230 and/or the instructions stored in the memory provided in the processor.
  • the wireless communication function of the terminal device may be implemented by the antenna 1, the antenna 2, the mobile communication module 240, the wireless communication module 250, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in a terminal device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 240 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the terminal device.
  • the mobile communication module 240 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 240 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 240 can also amplify the signal modulated by the modulation and demodulation processor, and then convert it into electromagnetic waves for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 240 may be provided in the processor 210 .
  • at least part of the functional modules of the mobile communication module 240 may be provided in the same device as at least part of the modules of the processor 210 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 261 ), or displays an image or video through the display unit 290 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 210, and may be provided in the same device as the mobile communication module 240 or other functional modules.
  • the wireless communication module 250 can provide wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (bluetooth, BT), and global navigation satellite systems applied on the terminal device. (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 250 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 250 receives electromagnetic waves via the antenna 2 , modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210 .
  • the wireless communication module 250 can also receive the signal to be sent from the processor 210 , perform frequency modulation on the signal, amplify the signal, and then convert it into an electromagnetic wave for radiation through the antenna 2 .
  • the antenna 1 of the terminal device is coupled with the mobile communication module 240, and the antenna 2 is coupled with the wireless communication module 250, so that the terminal device can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies Wait.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the terminal device can implement audio functions through an audio circuit 260, a speaker 261, a microphone 262, and an application processor. Such as music playback, voice calls, voice control, etc.
  • Audio circuit 260 is used to convert digital audio information to analog audio signal output, and also to convert analog audio input to digital audio signal. Audio circuitry 260 may also be used to encode and decode audio signals. In some embodiments, the audio circuit 260 may be provided in the processor 210 , or some functional modules of the audio circuit 260 may be provided in the processor 210 .
  • the speaker 261 also called “speaker” is used to convert audio electrical signals into sound signals.
  • the terminal device can listen to music through the speaker 261, or listen to voice prompts. For example, the terminal device may prompt the user through the speaker 261 that abnormal vibration or collision occurs in the vehicle.
  • Microphone 262 also referred to as “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 262 through a human mouth, and input a sound signal into the microphone 262 .
  • the pressure sensor 271 is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 271 may be provided on the display screen 292 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 271, the capacitance between the electrodes changes.
  • the terminal device determines the intensity of the pressure based on the change in capacitance.
  • the terminal device detects the intensity of the touch operation according to the pressure sensor 271 .
  • the terminal device can also calculate the touched position according to the detection signal of the pressure sensor 271 .
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than the first pressure threshold acts on the icon of application A (that is, an application program for providing user-vehicle interaction functions), the instruction to start application A is executed.
  • the touch sensor 272 is also referred to as a "touch device”.
  • the touch sensor 272 may be disposed on the display screen 292, and the touch sensor 272 and the display screen 292 form a touch screen, also called a "touch screen”.
  • the touch sensor 272 is used to detect touch operations on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 292 .
  • the touch sensor 272 may also be disposed on the surface of the terminal device, which is different from the position where the display screen 292 is located.
  • the display unit 290 can be used to receive input digital or character information, and generate signal input related to user settings and function control of the terminal device. Touch operations, such as clicking buttons, dragging scroll boxes, etc.
  • the touch screen 291 may receive control instructions input by the user.
  • the display unit 290 can also be used to display information input by the user or information provided to the user and various menus of the terminal device.
  • the display unit 290 may include a display screen 292, and the display screen 292 is used for presenting an interface and realizing human-computer interaction.
  • the display screen 292 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. In some embodiments, display screen 292 may display a route for navigation.
  • the touch screen 291 may cover the display screen 292, or the touch screen 291 and the display screen 292 may be integrated to realize the input and output functions of the terminal device, which may be referred to as touch screen after integration.
  • FIG. 3 is a possible communication method provided in an embodiment of the application, and it is taken as an example that the method is applied to the communication system shown in FIG. 1 .
  • S301-S302 may be executed by the first terminal device, or executed by a chip or a chip system in the first terminal device.
  • S305 may be executed by the second terminal device, or executed by a chip or a chip system in the second terminal device.
  • the first terminal device acquires a first IP address allocated by the network device to the first terminal device.
  • the registration process can be divided into but not limited to the following scenarios: initial registration to the network, mobility registration update when the first terminal device moves out of the original registered area, periodic registration update , power off and then power on again, from turning on the airplane mode to turning off the airplane mode, moving from an area without network coverage to an area with network coverage, etc.
  • the first terminal device may send a network registration request to the network side when registering with the network for the first time.
  • the network side allocates an IP address to the first terminal device, and sends a network registration response carrying the IP address of the vehicle terminal to the first device.
  • the in-vehicle terminal can obtain the IP address allocated by the network side for the first terminal device from the registration response.
  • the first terminal device After the first terminal device is powered on, it sends a network registration request (Registration Request) to the base station, and the Registration Request carries the identifier of the first terminal device.
  • the base station After receiving the Registration Request from the first terminal equipment, the base station sends the first identification of the first terminal equipment to the core network, and the first identification of the first terminal equipment can be an International Mobile Subscriber Identity (IMSI) , International Mobile Equipment Identity (IMEI), Mobile Equipment Identifier (MEID), etc.
  • IMSI International Mobile Subscriber Identity
  • IMEI International Mobile Equipment Identity
  • MEID Mobile Equipment Identifier
  • the network registration request may also carry an IPv6 address type parameter, and the IPv6 address type parameter is used to instruct the network side to allocate an IPv6 address to the first terminal device.
  • the first terminal device sends a network registration request (Attach Request) to the network side, and the Attach Request may carry an IPv6 address type parameter.
  • the first terminal device sends a network registration request (Registration Request) to the network side, and the Registration Request carries an IPv6 address type parameter.
  • the establishment of one or more PDU sessions may be triggered during the network registration process.
  • the first terminal device has uplink data to send.
  • the PDU session will be created during the registration process. Therefore,
  • the IPv6 address type parameter may also be carried in the request message requesting to create a PDU.
  • the first terminal device may also carry the IPv6 address type parameter in the PDU Session Establishment Request when sending a network registration request (PDU Session Establishment Request) to the network side.
  • the first terminal device sends the first IP address and the first identifier of the first terminal device to the server.
  • the first terminal device may send the first IP address and the first identifier to the server during the process of establishing an association relationship with the second terminal device.
  • the first terminal device may send the first IP address and the first identifier to the server after establishing the association with the second terminal device.
  • the first terminal device and the second terminal device can be associated in the following two possible ways:
  • the mobile phone sends a binding request to the server, and the binding request carries vehicle information, user information, and an identifier of the mobile phone.
  • the user information includes one or more of a mobile phone number, email address or user name
  • the vehicle information includes the identification of the vehicle.
  • the identification of the vehicle includes the license plate number, vehicle identification number (VIN), driving license information, etc. one or more of the .
  • the server After receiving the binding request from the mobile phone, stores the vehicle information and user information carried in the binding request.
  • the server stores the association relationship between the identification of the vehicle-mounted terminal and the vehicle information. According to the received vehicle information, the server sends a verification request to the vehicle-mounted terminal corresponding to the vehicle information, where the verification request carries the vehicle information. After receiving the verification request from the server, the vehicle-mounted terminal sends a verification response to the server when it is determined that the vehicle information sent by the server is the same as the locally stored vehicle information. The verification response indicates that the vehicle-mounted terminal confirms the association with the mobile phone. After receiving the above verification response from the vehicle terminal, the server may send a binding response to the mobile phone to notify that the mobile phone has been associated with the vehicle terminal. Further, the verification response may also carry the identification of the vehicle-mounted terminal.
  • the server may send a binding response carrying the identification of the vehicle-mounted terminal to the mobile phone, so as to facilitate the subsequent direct connection between the vehicle-mounted terminal and the mobile phone. communication.
  • the first terminal device sends the first IP address and the first identifier of the first terminal device to the server, there are but are not limited to the following possible implementations:
  • the first terminal device may directly send the first IP address and the first identifier to the server.
  • the first terminal device sends the first IP address, the first identifier and the first service type of the first terminal device to the server.
  • the first terminal device sends the first IP address, the first identifier and the second identifier of at least one second terminal device to the server.
  • the at least one second terminal device refers to at least one terminal device among N second terminal devices associated with the first terminal device. N is a positive integer.
  • the first terminal device sends indication information to the server, where the indication information carries the first IP address and the first identifier.
  • the indication information is used to trigger the server to return the second IP address of the second terminal device associated with the first terminal device to the first terminal device.
  • the server determines the second identifier of the second terminal device that is associated with the first identifier.
  • the server only receives the first identifier and the first IP address from the first terminal device.
  • the server determines N second terminal devices associated with the first terminal device according to the first mapping relationship, where the first mapping relationship includes the association relationship between the first identifier and the N second identifiers, and the N second terminal devices are associated with each other.
  • the second identifiers are respectively used to identify the N second terminal devices.
  • the server determines to send the IP address of the first terminal device to the N second terminal devices.
  • the first mapping relationship may be that in the process of establishing an association between the first terminal device and the second terminal device, the server receives the first identification from the first terminal device, and after receiving the second identification of the second terminal device, according to The first identification of the first terminal device and the second identification of the second terminal device are established and stored.
  • the server receives the first identifier, the first IP address and the first service type from the first terminal device.
  • the server determines, according to the first mapping relationship, N second terminal devices associated with the first terminal device; and according to the second mapping relationship, filters out at least one second terminal device from the N second terminal devices.
  • the second mapping relationship includes the association relationship between the second identifier of at least one second terminal device and the second service type of at least one second terminal device, the second service type of at least one second terminal device and the first service same type.
  • the second mapping relationship may be created and stored by the server during the process of establishing the association between the first terminal device and the second terminal device.
  • the server receives the first identification, the first IP address and the second identification of at least one second terminal device from the first terminal device.
  • the server determines to notify at least one second terminal device of the first IP address according to the first identifier, where an association relationship exists between the first identifier and the second identifier of the at least one second terminal device.
  • the server receives indication information from the first terminal device, where the indication information carries the first IP address and the first identifier.
  • the server determines, according to the first mapping relationship, N second terminal devices associated with the first terminal device, and determines to send the IP address of the first terminal device to the N second terminal devices. Further, the server may also determine to send the stored second IP addresses of the N second terminal devices to the first terminal device according to the indication information.
  • the server sends the first IP address to the second terminal device according to the second identifier.
  • the second terminal device receives and stores the first IP address from the server.
  • the second terminal device sends the first information to the first terminal device according to the first IP address.
  • the first terminal device receives the first information from the second terminal device.
  • both the first IP address of the first terminal device and the second IP address of the second terminal device may change.
  • the following description only takes the first terminal device as an example.
  • the first terminal device may re-attach to the network under the conditions of restarting, turning off the airplane mode, moving from an area without network coverage to an area with network coverage, and the like.
  • the first terminal device acquires a third IP address allocated by the network device to the first terminal device, where the third IP address is different from the first IP address.
  • the first terminal device when the first terminal device determines that the usage duration of the first IP address reaches the first duration, the first terminal device replaces the first IP address with a third IP address, the host address of the third IP address and the first IP address.
  • the host addresses of the IP addresses are different, and the host address of the third IP address is the same as the network address of the first IP address.
  • the IP address may be composed of a network address and a host address, where the network address is used to identify the network where the terminal device is located, and the host address is used to identify the terminal device in the network.
  • the first terminal device may notify the second terminal device of the third IP address through the server, and correspondingly, the second terminal device receives the first IP address through the server. address.
  • the first terminal device may also directly send the third IP address to the second terminal device according to the stored second IP address of the second terminal device.
  • the second terminal device directly receives data from the first terminal device. The first IP address of the terminal device.
  • the first terminal device is a vehicle-mounted terminal and the second terminal device is a mobile phone.
  • FIG. 4 is a schematic diagram of a possible communication flow provided in an embodiment of the present application.
  • the vehicle-mounted terminal acquires the IP address of the vehicle-mounted terminal allocated by the network device for the vehicle-mounted terminal, see S301.
  • the vehicle-mounted terminal sends the IP address of the vehicle-mounted terminal and the identifier of the vehicle-mounted terminal to the server.
  • the in-vehicle terminal may send the IP address of the in-vehicle terminal and the identifier of the in-vehicle terminal to the server in the same manner as in S302.
  • the in-vehicle terminal and the mobile phone may adopt the association establishment method between the first terminal device and the second terminal device in S302, and the in-vehicle terminal and the mobile phone may also be associated in the following manner: if the in-vehicle terminal is configured with an interaction with the user.
  • the device can also initiate association with the mobile phone from the vehicle terminal to the server.
  • the vehicle-mounted terminal sends a binding request to the server, where the binding request carries vehicle information, an identification of the vehicle-mounted terminal, and user information.
  • the user information and vehicle information may be input by the user into the vehicle-mounted terminal through the interaction device.
  • the server After receiving the binding request from the vehicle terminal, the server stores the vehicle information and user information carried in the binding request.
  • the server sends a verification request to the mobile phone according to the received user information, and the verification request carries the vehicle information.
  • the mobile phone After the mobile phone receives the verification request from the server, it prompts the user whether to bind with the vehicle-mounted terminal corresponding to the vehicle information.
  • the mobile phone responds to the confirmation binding instruction selected by the user and sends a verification response to the server.
  • the verification response represents the confirmation of the mobile phone and the vehicle-mounted terminal. Build relationships.
  • the server may send a binding response to the vehicle-mounted terminal to notify the vehicle-mounted terminal that the vehicle registration is completed. Further, the verification response can also carry the identification of the mobile phone.
  • the server After receiving the verification response from the mobile phone, the server can send a binding response carrying the identification of the mobile phone to the vehicle terminal, so as to facilitate direct communication between the vehicle terminal and the mobile phone.
  • the server When the server sends a verification request to the mobile phone according to the received user information, as an example, if the received user information is the mobile phone number and/or email address, it can directly send the verification request to the mobile phone according to the mobile phone number or email address. As another example, the server stores the association between the user information of the mobile phone and the identification of the mobile phone. After receiving the user information, the server sends a verification message to the mobile phone according to the association between the user information of the mobile phone and the identification of the mobile phone. ask.
  • the association between the user information of the mobile phone and the identification of the mobile phone can be established by the following manner: the mobile phone sends a user registration request to the server, and the user registration request carries the user information and the identification of the mobile phone.
  • the server After receiving the registration request from the mobile phone, the server stores the user information carried in the registration request.
  • application A for interacting with the vehicle can be installed in the mobile phone.
  • the user After the user purchases the car, the user can register in the registration interface of application A, and enter user information in the registration interface, including the user name and user password.
  • the mobile phone sends a user registration request to the server, where the user registration request carries the user information and the identity of the mobile phone.
  • the server receives the user registration request from the mobile phone, it stores the user name, user password and the identification of the mobile phone carried in the user registration request.
  • the mobile phone sends the IP address of the mobile phone and the identification of the mobile phone to the server.
  • the vehicle-mounted terminal in S301 can obtain the IP address allocated by the network side for the vehicle-mounted terminal by using the method in S301, and the mobile phone can also be identified by IMSI, IMEI, MEID, etc.
  • the mobile phone may send the IP address of the mobile phone and the identification of the mobile phone to the server during the process of establishing an association with the vehicle terminal.
  • the mobile phone may also send the IP address of the mobile phone and the identification of the mobile phone to the server after the process of establishing an association relationship with the vehicle-mounted terminal. This application does not limit this, and details are not repeated here.
  • the server determines that there is an association between the vehicle-mounted terminal and the mobile phone according to the identification of the vehicle-mounted terminal and the identification of the mobile phone.
  • the server After the server receives the identification of the vehicle-mounted terminal and the IP address of the vehicle-mounted terminal sent by the vehicle-mounted terminal, the server determines that the terminal device associated with the vehicle-mounted terminal is a mobile phone according to the first mapping relationship. After the server receives the identification of the mobile phone and the IP address of the mobile phone sent by the mobile phone, the server determines that the terminal device associated with the mobile phone is a vehicle-mounted terminal according to the first mapping relationship.
  • the server sends the IP address of the mobile phone to the vehicle terminal.
  • the server sends the IP address of the vehicle terminal to the mobile phone.
  • the execution order of S405 and S406 is not limited, and the server may also execute S406 first, and then execute S405.
  • the mobile phone and the vehicle-mounted terminal perform direct communication according to the IP address of the vehicle-mounted terminal and the IP address of the mobile phone.
  • the mobile phone sends the first information to the vehicle terminal according to the IP address of the vehicle terminal.
  • the first information as the control command
  • the mobile phone detects the control command input by the user, it sends the control command to the vehicle terminal.
  • the control command carries the IP address of the vehicle terminal and the IP address of the mobile phone, and the IP address of the vehicle terminal is used as the purpose.
  • IP address the IP address of the mobile phone is used as the source IP address.
  • the mobile phone detects the control command 1 entered by the user instructing to turn on the air conditioner, it uses the IPv6 address of the vehicle terminal as the destination IP address, and the IPv6 address of the mobile phone as the source IP address, and sends the vehicle terminal control command 1.
  • the vehicle-mounted terminal after the vehicle-mounted terminal receives the control command from the mobile phone, if the running state of the vehicle to which the vehicle-mounted terminal belongs indicates that the vehicle is in sleep mode, and the control command needs to wake up the vehicle, the vehicle-mounted terminal will Wake up, after the vehicle is woken up, execute the operation indicated by the control instruction.
  • the sleep mode means that after the engine of the vehicle is turned off, the high-voltage system is powered off, and the vehicle supplies power to the communication module of the vehicle terminal through the battery. Taking the air conditioner installed in the vehicle as an example, in the sleep mode, the control unit of the air conditioner is turned off, and the target command cannot be executed at this time.
  • the vehicle-mounted terminal After the vehicle-mounted terminal receives the control command 1 whose destination IP address is the IPv6 address of the vehicle-mounted terminal and the source IP address is the IPv6 address of the mobile phone, if the vehicle to which the vehicle-mounted terminal belongs is in sleep mode, the vehicle-mounted terminal will wake up the air-conditioning control unit in the vehicle. After that, perform the operation of turning on the heater of the air conditioner.
  • the mobile phone may also send a wake-up instruction to the vehicle-mounted terminal.
  • the in-vehicle terminal receives the wake-up command from the terminal device, after waking up the vehicle, receives the control command from the mobile phone, and executes the operation indicated by the control command.
  • the vehicle-mounted terminal may send a reception response to the mobile phone. After the mobile phone sends the first information, if a reception response from the vehicle-mounted terminal is not received within the second time period, as a possible implementation manner, the vehicle-mounted terminal may send the first information and the identification of the vehicle-mounted terminal to the server. After receiving the first information from the mobile phone, the server sends the first information to the vehicle-mounted terminal according to the identification of the vehicle-mounted terminal.
  • the mobile phone may also send an address query request to the server, where the address query request carries the identifier of the vehicle-mounted terminal.
  • the server queries the stored IP address of the vehicle-mounted terminal according to the identification of the vehicle-mounted terminal carried in the address query request, and according to the relationship between the identification of the mobile phone and the vehicle-mounted terminal, and then sends the stored IP address of the vehicle-mounted terminal to cell phone.
  • the mobile phone after acquiring the IP address of the vehicle-mounted terminal stored in the server, the mobile phone sends the first information to the vehicle-mounted terminal again according to the IP address of the vehicle-mounted terminal stored in the server.
  • the mobile phone obtains the IP address of the vehicle-mounted terminal stored in the server
  • the IP address of the vehicle-mounted terminal stored in the server is used as the destination address.
  • the first information is sent to the vehicle-mounted terminal again.
  • the vehicle-mounted terminal can also send the second information to the mobile phone according to the IP address of the mobile phone. After the mobile phone receives the second information, the user is prompted to check the battery usage of the vehicle.
  • both the IP address of the vehicle terminal and the IP address of the mobile phone may change.
  • the vehicle terminal or the mobile phone can notify the other party of the new IP address.
  • the vehicle terminal can obtain a new IP address through but not limited to the following two possible implementation methods:
  • the first possible implementation method the vehicle terminal can initiate network registration with the network side again under the circumstances of restarting, turning off the airplane mode, moving from an area without network coverage to an area with network coverage, etc., and obtaining the network side as the vehicle terminal.
  • the new IP address allocated, the in-vehicle terminal uses the new IP address allocated by the network side as the IP address for direct communication with the mobile phone.
  • the in-vehicle terminal can send a network registration request AttachRequest to the network side again, and the network registration request carries the IPv6 address type parameter.
  • the registration response of the new IPv6 address of the terminal after receiving the registration response from the network side, the in-vehicle terminal obtains the new IPv6 address.
  • the vehicle-mounted terminal may generate a new IP address periodically.
  • the vehicle-mounted terminal obtains the IP address allocated by the network side, when it is determined that the usage duration of the IP address of the vehicle-mounted terminal reaches the first duration, a new IP address is generated, and the network address of the new IP address is the same as the old IP address.
  • the host address of the new IP address is different from the host address of the old IP address.
  • the in-vehicle terminal can periodically generate a new IPv6 address when it is determined that the IP address of the in-vehicle terminal has been used for 7 days, and the network address of the new IPv6 address is the same as the old one.
  • the network address of the IPv6 address is the same, and the host address of the new IPv6 address is different from the host address of the old IPv6 address.
  • the in-vehicle terminal can send the new IP address of the in-vehicle terminal to the mobile phone in the following two possible ways, so that the mobile phone can directly communicate with the in-vehicle terminal through the IP address of the new in-vehicle terminal , below, take the IP address of the new vehicle terminal as address A, and the IP address of the old vehicle terminal as address B as an example to illustrate:
  • the vehicle terminal can send the address A to the mobile phone through the server.
  • the vehicle-mounted terminal may send the address A to the server, and when the server receives the address A from the vehicle-mounted terminal, the server replaces the stored IP address of the vehicle-mounted terminal with the address A.
  • the server sends an address update instruction to the mobile phone, where the address update instruction carries the identity and address A of the vehicle-mounted terminal.
  • the mobile phone After receiving the address update instruction from the server, the mobile phone determines to replace the IP address of the vehicle terminal according to the identifier of the vehicle terminal carried in the address update instruction, and replaces the stored IP address of the vehicle terminal from address B with address A. .
  • the vehicle terminal can directly send the address A to the mobile phone.
  • the in-vehicle terminal may use the address A as the source IP address and the IP address of the mobile phone as the destination IP address, and send an address update instruction to the mobile phone, where the address update instruction carries the identity and address A of the in-vehicle terminal.
  • the mobile phone receives the address update instruction and determines to replace the IP address of the vehicle-mounted terminal according to the identification of the vehicle-mounted terminal carried in the address update instruction, the stored IP address of the vehicle-mounted terminal can be replaced by address B with address A. .
  • address A can be used as the destination IP address
  • the IP address of the mobile phone can be used as the source IP address
  • an address update can be sent to the vehicle terminal.
  • the in-vehicle terminal sends the address update instruction to the mobile phone, if it does not receive an address update response from the mobile phone within the set time period, it can send the address A to the server.
  • the server receives the address A from the in-vehicle terminal, it replaces the stored IP address of the in-vehicle terminal from the address B with the address A.
  • the mobile phone can also obtain a new IP address through the above two possible implementation manners, which will not be repeated here.
  • the IP address of the new mobile phone is taken as the address C
  • the IP address of the old mobile phone is taken as the address D as an example for description.
  • the mobile phone can notify the vehicle terminal of the new IP address in the following two possible ways:
  • the mobile phone can send the address C to the vehicle terminal through the server, so that the vehicle terminal can directly communicate with the mobile phone through the address C.
  • the mobile phone may send the address C to the server, and when the server receives the address C from the mobile phone, the server sends an address update instruction to the vehicle terminal, where the address update instruction carries the mobile phone's identity and address C.
  • the in-vehicle terminal stores the IP address of the mobile phone. After receiving the address update instruction from the server, the in-vehicle terminal determines to replace the IP address of the mobile phone according to the identification of the mobile phone carried in the address update instruction. The address is replaced by address D with address C.
  • the mobile phone can directly send the address C to the vehicle terminal.
  • the mobile phone may use the address C as the source IP address and the IP address of the vehicle-mounted terminal as the destination IP address, and send an address update instruction to the vehicle-mounted terminal, where the address update instruction carries the mobile phone's identity and address C.
  • the in-vehicle terminal stores the IP address of the mobile phone. After receiving the address update instruction from the mobile phone, the in-vehicle terminal can determine that when replacing the IP address of the mobile phone, the stored mobile phone will be replaced according to the identification of the mobile phone carried in the address update instruction.
  • the IP address is replaced by address D with address C.
  • address C can be used as the destination IP address
  • the IP address of the on-board terminal can be used as the source IP address
  • an address update can be sent to the mobile phone.
  • the mobile phone sends the address update instruction to the vehicle terminal, if it does not receive an address update response from the vehicle terminal within the set time period, it can send the address C to the server.
  • the server receives the address C from the mobile phone, it replaces the stored IP address of the mobile phone with the address C from the address D.
  • an address query request may be sent to the server, and the address query request carries the identification of the vehicle-mounted terminal.
  • the server queries the stored IP address of the mobile phone according to the identification of the vehicle-mounted terminal carried in the address query request, and according to the relationship between the identification of the mobile phone and the identification of the vehicle-mounted terminal, and then sends the stored IP address of the mobile phone to the vehicle-mounted terminal .
  • the vehicle terminal After acquiring the IP address of the mobile phone stored in the server, the vehicle terminal directly communicates with the mobile phone according to the IP address of the mobile phone stored in the server.
  • the first terminal device is a mobile phone
  • the second terminal device associated with the mobile phone includes a smart air conditioner and a smart speaker.
  • the communication method provided by the present application is described below by taking the communication between the mobile phone and the smart air conditioner as an example.
  • FIG. 5 is a schematic diagram of a possible communication flow provided in an embodiment of the present application.
  • the mobile phone sends the IP address of the mobile phone, the identification of the mobile phone, and the service type of the mobile phone to the server.
  • the service type of the mobile phone is used to characterize the communication between the mobile phone and the smart air conditioner.
  • the mobile phone After acquiring the IPv6 address of the mobile phone allocated by the network side, the mobile phone may send the IPv6 address of the mobile phone, the identification of the mobile phone and the service type of the mobile phone to the server.
  • the smart air conditioner sends the IP address of the smart air conditioner and the identifier of the smart air conditioner to the server.
  • the smart air conditioner After acquiring the IPv6 address of the smart air conditioner allocated by the network side, the smart air conditioner sends the IPv6 address of the smart air conditioner and the identifier of the smart air conditioner to the server.
  • the server determines that there is an association relationship between the smart air conditioner and the mobile phone according to the identification of the mobile phone and the identification of the smart air conditioner.
  • the server After receiving the IPv6 address of the mobile phone, the identification of the mobile phone, and the service type of the mobile phone sent by the mobile phone, the server determines that the mobile phone is associated with the smart air conditioner according to the stored association between the identification of the smart air conditioner and the identification of the mobile phone, and according to the stored The association between the identification of the smart audio and the identification of the mobile phone determines that the mobile phone and the smart audio are related. From the smart air conditioner and the smart speaker, the server determines that the service type of the smart air conditioner is the same as the service type of the mobile phone, and determines to send the IPv6 address of the mobile phone to the smart air conditioner.
  • the server After receiving the IP address of the smart air conditioner and the identifier of the smart air conditioner sent by the smart air conditioner, the server determines that, according to the stored association between the identifier of the smart air conditioner and the identifier of the mobile phone, when the mobile phone and the smart air conditioner are associated, The IPv6 address is sent to the phone.
  • association between the identification of the smart air conditioner and the identification of the mobile phone may be determined in the following ways:
  • the user can select the smart air conditioner from the candidate devices provided by the server through the application program as the device associated with the mobile phone.
  • the mobile phone reports the identification of the mobile phone and the identification of the smart air conditioner to the server.
  • the server After receiving the mobile phone identification from the mobile phone and the identification of the smart air conditioner, the server establishes and stores an association relationship between the identification of the smart air conditioner and the identification of the mobile phone.
  • the server sends the IP address of the smart air conditioner to the mobile phone.
  • the server sends the IP address of the mobile phone to the smart air conditioner.
  • the smart air conditioner and the mobile phone communicate according to the IP address of the mobile phone and the IP address of the smart air conditioner.
  • the smart air conditioner obtains the IPv6 address of the mobile phone.
  • the smart air conditioner and the mobile phone can communicate directly between the smart air conditioner and the mobile phone through the IPv6 address of the mobile phone and the IPv6 address of the smart air conditioner.
  • the smart air conditioner can send a prompt message to the mobile phone.
  • the prompt message is used to remind the user that the room temperature is lower than the set temperature.
  • the prompt message carries the IPv6 address of the mobile phone and the IPv6 address of the smart air conditioner.
  • the IPv6 address of the mobile phone is used as the destination IP address, and the IPv6 address of the smart air conditioner is used.
  • the address is used as the source IP address.
  • the mobile phone After the mobile phone receives the prompt message, it prompts the user that the room temperature is too low. For another example, the mobile phone sends a control command to the smart air conditioner, and the control command is used to instruct the smart air conditioner to turn off the power supply.
  • the control command carries the IPv6 address of the mobile phone and the IPv6 address of the smart air conditioner.
  • the IPv6 address of the smart air conditioner is used as the destination IP address, and the IPv6 address of the mobile phone is As the source IP address, the smart air conditioner turns off the power of the air conditioner after receiving the control command from the mobile phone.
  • the present application also provides a communication device, the structure of which is shown in FIG. 6 , including a communication unit 601 and a processing unit 602 .
  • the communication apparatus 600 may be applied to the first terminal device, the second terminal device or the server in the communication method shown in FIG. 3 .
  • the functions of each unit in the communication device 600 will be introduced below.
  • the communication unit 601 is used for receiving and sending data.
  • the communication unit 601 may also be referred to as a physical interface, a communication module, a communication interface, and an input/output interface.
  • the in-vehicle device or the reader can be connected to the network cable or cable through the communication unit to establish physical connection with other devices.
  • the communication apparatus 600 includes a communication unit 601, and the communication unit 601 is configured to: obtain a first IP address assigned by a network device to the first terminal device, and the first IP address is used to communicate with the first terminal device.
  • the associated second terminal device performs direct communication; sending the first IP address and the first identifier of the first terminal device to the server, so that the server sends the first IP address to the second terminal device terminal equipment, there is an association relationship between the first identification and the second identification of the second terminal equipment; receiving first information from the second terminal equipment, the first information carrying the first IP address , and the first IP address is used as the destination IP address.
  • the first IP address is an IPv6 address.
  • the communication unit 601 when acquiring the first IP address allocated by the network device to the first terminal device, is configured to: send a network registration request to the network device, and the network registration The request carries an address type parameter, where the address type parameter is used to instruct the network device to allocate an IPv6 address to the first terminal device; obtain a network registration response returned by the network device, where the network registration response carries the first terminal device IP address.
  • the communication unit 601 is further configured to obtain a third IP address allocated by the network device to the first terminal device during the process of re-attaching the first terminal device to the network , the third IP address is different from the first IP address; the third IP address is notified to the second terminal device, and the third IP address is used to instruct the second terminal device to store the The first IP address of the first terminal device is replaced with the third IP address.
  • the communication apparatus 600 includes the processing unit 602, and the processing unit 602 is configured to: when it is determined that the usage duration of the first IP address reaches a preset duration, The first IP address used by the terminal device for direct communication with the second terminal device is updated to a third IP address, the host address of the third IP address is different from the host address of the first IP address, and the third IP address is different from the host address of the first IP address.
  • the network address of the third IP address is the same as the network address of the first IP address; the communication unit 601 is further configured to notify the second terminal device of the third IP address, where the third IP address is used to instruct the second terminal device to replace the stored first IP address of the first terminal device with the third IP address.
  • the communication unit 601 when notifying the second terminal device of the third IP address, is configured to: notify the second terminal device of the third IP address through a server ; or, notify the second terminal device of the third IP address according to the second IP address.
  • the first terminal device is associated with N second terminal devices, and when sending the first IP address and the first identifier of the first terminal device to the server, the communication unit 601 is used to: directly send the first IP address and the first identifier of the first terminal device to the server; or, send the first IP address, the first identifier and the first terminal
  • the first service type of the device is sent to the server; or, the first IP address, the first identifier and the second identifier of the at least one second terminal device are sent to the server.
  • the communication apparatus 600 includes a communication unit 601, and the communication unit 601 is configured to: receive the first identification of the first terminal device and the first IP address of the first terminal device from the first terminal device, wherein, The first IP address is used for direct communication with a second terminal device associated with the first terminal device; the first IP address is notified to the second terminal device, wherein the first identifier is associated with the first terminal device. There is an association relationship between the second identifiers of the second terminal equipment.
  • the communication apparatus 600 further includes a processing unit 602, and the processing unit 602 is configured to: determine, according to the first mapping relationship, N second terminal devices associated with the first terminal device , the first mapping relationship includes an association relationship between the first identifier and N second identifiers, and the N second identifiers are respectively used to identify the N second terminal devices;
  • the communication unit 601 is configured to: notify the N second terminal devices of the first IP address.
  • the first terminal device is associated with N second terminal devices, and receives the first identifier of the first terminal device and the first IP address of the first terminal device from the first terminal device address
  • the communication unit 601 is further configured to: receive the first service type of the first terminal device from the first terminal device
  • the communication device 600 further includes a processing unit 602, the processing unit 602 uses In: determining N second terminal devices associated with the first terminal device according to a first mapping relationship, where the first mapping relationship includes the association relationship between the first identifier and the N second identifiers , the N second identifiers are respectively used to identify the N second terminal devices; according to the second mapping relationship, at least one second terminal device is screened out from the N second terminal devices, and the first The binary mapping relationship includes an association relationship between the second identifier of the at least one second terminal device and the second service type of the at least one second terminal device, and the second service type of the at least one second terminal device The same as the first service type; when notifying the first IP address to the second terminal device, the
  • the first terminal device is associated with N second terminal devices, and receives the first identifier of the first terminal device and the first IP address of the first terminal device from the first terminal device address
  • the communication unit 601 is further configured to: receive the first service type of the first terminal device from the first terminal device; when notifying the first IP address to the second terminal device, The communication unit is configured to: notify the at least one second terminal device of the first IP address.
  • the present application also provides a communication apparatus, and the communication apparatus 700 can implement the functions of the first terminal device, the second terminal device or the server in the communication shown in FIG. 3 .
  • the communication apparatus 700 includes: a transceiver 701 , a processor 702 and a memory 703 .
  • the transceiver 701 , the processor 702 and the memory 703 are connected to each other.
  • the transceiver 701 , the processor 702 and the memory 703 are connected to each other through a bus 704 .
  • the bus 704 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus or the like.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 7, but it does not mean that there is only one bus or one type of bus.
  • the transceiver 701 is used for receiving and sending data, and realizing communication interaction with other devices.
  • the processor 702 when the communication apparatus 700 is applied to the first terminal device, the processor 702 is configured to, when determining that the usage duration of the first IP address reaches a preset duration, convert the The first IP address is updated to a third IP address, the host address of the third IP address is different from the host address of the first IP address, and the network address of the third IP address is different from the network address of the first IP address. same address.
  • the processor 702 is configured to determine that there is an association with the first terminal device according to the first mapping relationship N second terminal devices, the first mapping relationship includes an association relationship between the first identifier and N second identifiers, and the N second identifiers are respectively used to identify the N second identifiers Terminal Equipment.
  • the processor 702 is configured to: determine, according to a first mapping relationship, N second terminal devices associated with the first terminal device, where the first mapping relationship includes the The association relationship between the first identifier and the N second identifiers, the N second identifiers are respectively used to identify the N second terminal devices; according to the second mapping relationship, from the N second terminal devices , screen out at least one second terminal device, and the second mapping relationship includes the association relationship between the second identifier of the at least one second terminal device and the second service type of the at least one second terminal device , the second service type of the at least one second terminal device is the same as the first service type.
  • the memory in FIG. 7 of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory may be random access memory (RAM), which acts as an external cache.
  • RAM random access memory
  • DRAM dynamic random access memory
  • SDRAM synchronous DRAM
  • SDRAM double data rate synchronous dynamic random access memory
  • ESDRAM enhanced synchronous dynamic random access memory
  • SLDRAM synchronous link dynamic random access memory
  • direct rambus RAM direct rambus RAM
  • the embodiments of the present application further provide a computer program, when the computer program runs on a computer, the computer is made to execute the communication methods provided by the embodiments shown in FIG. 3 , FIG. 4 , and FIG. 5 . .
  • the embodiments of the present application also provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a computer, the computer executes FIG. 3 , FIG. 4 , and FIG.
  • the communication method provided by the embodiment shown in FIG. 5 may be any available medium that the computer can access.
  • computer readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or be capable of carrying or storing instructions or data structures in the form of desired program code and any other medium that can be accessed by a computer.
  • an embodiment of the present application further provides a chip, which is used to read a computer program stored in a memory and implement the communication methods provided by the embodiments shown in FIG. 3 , FIG. 4 , and FIG. 5 .
  • an embodiment of the present application provides a chip system
  • the chip system includes a processor, and is used to support a computer device to implement the first terminal device, the second terminal device and the second terminal device in the embodiments shown in FIG. 3 , FIG.
  • the chip system further includes a memory for storing necessary programs and data of the computer device.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • the embodiments of the present application may be provided as a method, a system, or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions
  • the apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

Abstract

本申请公开了一种通信系统、方法及装置,用于解决现有技术中通信时延长、可靠性低的问题。第一终端设备获取网络设备分配的第一IP地址后,将第一IP地址和第一终端设备的第一标识发送至服务器。服务器接收到来自第一终端设备的第一标识和第一IP地址后,根据第一标识,确定与第一终端设备关联的第二终端设备,将第一IP地址发送给第二终端设备。第二终端设备接收到第一IP地址后,根据第一IP地址与第一终端设备进行通信。这样,通过服务器将第一终端设备的IP地址发送至第二终端设备后,第二终端设备可以通过IP地址与第一终端设备进行直接通信,避免由于通信网元过多导致的通信时延长,提升通信可靠性。

Description

一种通信系统、方法及装置
相关申请的交叉引用
本申请要求在2020年12月16日提交中国专利局、申请号为202011487834.1、申请名称为“一种通信系统、方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信技术领域,尤其涉及一种通信系统、方法及装置。
背景技术
目前车辆与终端设备(例如手机)、智能家居设备与终端设备之间的通信均需要经过服务器进行转发。以车辆与手机之间的通信为例,手机响应于用户输入的控制指令,将控制指令发送给服务器,服务器接收到来自手机的控制指令后,将该控制指令发送给车辆。特别的是,由于车辆在关闭点火开关之后会进入休眠模式,当车辆处于睡眠模式时,服务器接收到控制指令后,还需要连接运营商的短信网关(short message service-service center,SMS-SC)或语音网关,通过SMC-SC或语音网关唤醒车辆后,才能将控制指令发送至车辆。但是,通过服务器、SMS-SC或语音网关进行交互,通信系统中的网元过多,传输路径过长,导致通信时延长、可靠性低等问题,影响用户使用体验。
发明内容
本申请实施例提供一种通信系统、方法及装置,用于解决由于现有技术中通信网元多导致的传输路径长、通信时延长的问题。
第一方面,本申请实施例提供一种通信系统,该通信系统包括服务器、第一终端设备和第二终端设备。其中,第一终端设备,用于获取网络设备为第一终端设备分配的第一网际互连协议(internet protocol,IP)地址,并将第一IP地址和第一终端设备的第一标识发送至服务器。其中,第一IP地址用于与第一终端设备关联的第二终端设备进行直接通信。服务器,用于接收来自第一终端设备的第一标识和第一IP地址;根据第一标识,将第一IP地址通知给第二终端设备。其中,第一标识与第二终端设备的第二标识之间存在关联关系。第二终端设备,用于接收并存储来自服务器的第一IP地址;根据第一IP地址,向第一终端设备发送第一信息。第一终端设备,还用于接收来自第二终端设备的第一信息。
通过上述设计,第一终端设备在获取到第一IP地址后,可以通过服务器将第一IP地址发送给与第一终端设备关联的第二终端设备。使得第二终端设备在获取到第一IP地址后,可以根据第一IP地址,向第一终端设备发送第一信息。实现第一终端设备和第二终端设备之间的直接通信,避免因通信网元过多导致传输时延降低,提升通信可靠性。
在一种可能的设计中,第一IP地址为网际互连协议第六版IPv6地址。通过上述设计,通过为第一终端设备分配IPv6地址,由于IPv6地址为公网地址,因此,第二终端设备可以直接通过第一终端设备的IPv6地址进行寻址,保证第一终端设备和第二终端设备之间的 直接通信,提高第一终端设备和第二终端设备之间的通信效率。
在一种可能的设计中,获取网络设备为第一终端设备分配的第一IP地址时,第一终端设备用于:向网络设备发送网络注册请求,网络注册请求中携带地址类型参数,地址类型参数用于指示网络设备为第一终端设备分配IPv6地址;获取网络设备返回的网络注册响应,网络注册响应中携带第一IP地址。
通过上述设计,通过网络注册请求中携带的地址类型参数,指示网络设备为第一终端设备分配IPv6地址,使得第一终端设备可以获取到IPv6地址,以保证第一终端设备可以通过IPv6地址与第二终端设备进行直接通信,提高第一终端设备和第二终端设备之间的通信效率。
在一种可能的设计中,第一终端设备还用于在第一终端设备重新附着到网络的过程中,获取网络设备为第一终端设备分配的第三IP地址,第三IP地址与第一IP地址不同;将第三IP地址通知给第二终端设备;第二终端设备,还用于接收来自第一终端设备的第三IP地址,并将存储的第一IP地址替换为第三IP地址。
通过上述设计,第一终端设备可以在重新附着到网络的过程中,获取到新的IP地址,然后将新的IP地址通知给第二终端设备,使得第二终端设备可以通过新的IP地址与第一终端设备进行通信,避免在IP地址变更时,第二终端设备无法寻址到第一终端设备。同时,第一终端设备在重新附着到网络的过程中获取新的IP地址,而不是主动检测IP地址是否发生变更,降低第一终端设备功耗。
在一种可能的设计中,第一终端设备还用于在确定第一IP地址的使用时长达到第一时长时,将第一IP地址更新为第三IP地址,第三IP地址的主机地址和第一IP地址的主机地址不同,第三IP地址的网络地址和第一IP地址的网络地址相同;以及将第三IP地址通知给第二终端设备;第二终端设备,还用于接收第三IP地址,并将存储的第一IP地址替换为第三IP地址。
通过上述设计,第一终端设备可以周期性对IP地址进行更新,由于周期更新时,新IP地址和旧IP地址的网络地址是相同的,因此,第一终端设备仍可以根据新IP地址与网络侧进行通信,同时保证通信安全性、可用性。
在一种可能的设计中,将第三IP地址通知给第二终端设备时,第一终端设备用于将第三IP地址发送至服务器;服务器,还用于接收来自第一终端设备的第三IP地址,并将第三IP地址发送至第二终端设备;第二终端设备用于接收服务发送的第三IP地址。
通过上述设计,第一终端设备的IP地址发生变化时,可以通过服务器,将更新后的IP地址通知给第二终端设备,以保证第一终端设备和第二终端设备的实时通信,提高通信可靠性。
在一种可能的设计中,将第三IP地址通知给第二终端设备时,第一终端设备用于根据第二IP地址将第三IP地址发送给第二终端设备;接收第三IP地址时,第二终端设备用于接收第一终端设备发送的第三IP地址。
通过上述设计,第一终端设备的IP地址发生变化时,直接将更新后的IP地址发送给第二终端设备,以保证第一终端设备和第二终端设备的实时通信,提高通信效率。
在一种可能的设计中,第一终端设备,还用于接收来自第二终端设备的第一信息后,向第二终端设备发送接收响应;第二终端设备,还用于若在第二时长内未接收到来自第一终端设备的接收响应,则向服务器发送地址查询请求,地址查询请求中携带第一标识;服 务器,还用于接收来自第二终端设备的地址查询请求;根据地址查询请求,查询第一标识所标识的第一终端设备的第四IP地址;以及将第四IP地址发送至第二终端设备;第二终端设备,还用于接收来自服务器的第四IP地址,并根据第四IP地址,再次向第一终端设备发送第一信息。
通过上述设计,第二终端设备可以在无法与第一终端设备建立通信连接时,通过服务器获取到服务器中存储的第一终端设备的IP地址,根据服务器中存储的第一终端设备的IP地址,与第一终端设备进行通信,以保证通信效率。
在一种可能的设计中,第一终端设备关联N个第二终端设备,根据第一标识,将第一IP地址通知给第二终端设备时,服务器用于:根据第一映射关系,确定与第一终端设备存在关联的N个第二终端设备,第一映射关系中包含第一标识和N个第二标识之间的关联关系,N个第二标识分别用于标识N个第二终端设备;将第一IP地址通知给N个第二终端设备。
通过上述设计,服务器将第一终端设备的第一IP地址发送给第一终端设备关联的N个第二终端设备。示例性的,N的取值为正整数,当N的取值为1,第一终端设备关联一个第二终端设备,当N的取值大于等于2,第一终端设备关联多个第二终端设备,这样,与第一终端设备关联的第二终端设备均可以与第一终端设备进行实时通信,提高通信可靠性。
在一种可能的设计中,第一终端设备关联N个第二终端设备,将第一IP地址和第一终端设备的第一标识发送至服务器时,第一终端设备用于将第一IP地址、第一终端设备的第一标识和第一终端设备的第一业务类型发送至服务器;服务器还用于接收来自第一终端设备的第一业务类型;根据第一标识,将第一IP地址通知给第二终端设备时,服务器用于:根据第一映射关系,确定与第一终端设备存在关联的N个第二终端设备,第一映射关系中包含第一标识和N个第二标识之间的关联关系,N个第二标识分别用于标识N个第二终端设备;根据第二映射关系,从N个第二终端设备中,筛选出至少一个第二终端设备,第二映射关系中包含至少一个第二终端设备的第二标识与至少一个第二终端设备的第二业务类型之间的关联关系,至少一个第二终端设备的第二业务类型与第一业务类型相同;将第一IP地址通知给至少一个第二终端设备。
通过上述设计,服务器将第一终端设备的第一IP地址,发送给与第一终端设备关联且与第一终端设备的业务类型相同的第二终端设备。以第一终端设备为手机为例,手机关联的第二终端设备包括智能空调和智能音响,服务器可以根据手机的业务类型,确定出将手机的IP地址发送给智能空调或智能音响,以提高通信可靠性和通信效率。
在一种可能的设计中,第一终端设备关联N个第二终端设备,将第一IP地址和第一终端设备的第一标识发送至服务器时,第一终端设备用于将第一IP地址、第一终端设备的第一标识和至少一个第二终端设备的第二标识发送至服务器;服务器还用于接收来自第一终端设备的至少一个第二终端设备的第二标识;根据第一标识,将第一IP地址通知给第二终端设备时,服务器用于:根据第一标识,将第一IP地址通知给至少一个第二终端设备,其中,第一标识与至少一个第二终端设备的第二标识之间存在关联关系。
通过上述设计,服务器直接将第一IP地址发送给第一终端设备指示的至少一个第二终端设备,降低服务器的计算复杂度,提高IP地址的传输效率。
第二方面,本申请实施例提供一种通信方法。方法可以应用于第一终端设备或第一终 端设备中的芯片或芯片系统。以应用于第一终端设备为例,方法包括:获取网络设备为第一终端设备分配的第一IP地址,第一IP地址用于与第一终端设备关联的第二终端设备进行直接通信;向服务器发送第一IP地址和第一终端设备的第一标识,使得服务器将第一IP地址发送至第二终端设备,第一标识与第二终端设备的第二标识之间存在关联关系;接收来自第二终端设备的第一信息,第一信息携带第一IP地址,第一IP地址作为目的IP地址。
通过上述设计,第一终端设备获取到第二终端设备的IP地址之后,可以根据IP地址,与第二终端设备进行实时直接通信,而不需要通过其他网元(例如服务器)进行信息转发,提高第一终端设备和第二终端设备的通信效率,降低通信时延。
在一种可能的设计中,第一IP地址为IPv6地址。通过上述设计,由于IPv6地址为公网地址,因此,通过IPv6地址可实现第一终端设备和第二终端设备之间的远程通信,避免由于临时公网地址变更,导致各网元间无法通信,提高通信可靠性。
在一种可能的设计中,获取网络设备为第一终端设备分配的第一IP地址,包括:向网络设备发送网络注册请求,网络注册请求中携带地址类型参数,地址类型参数用于指示网络设备为第一终端设备分配IPv6地址;获取网络设备返回的网络注册响应,网络注册响应中携带第一IP地址。
通过上述设计,第一终端设备可以在网络注册过程中,向网络设备发送地址类型参数,指示网络设备分配IPv6地址,提高通信效率。
在一种可能的设计中,还包括:在第一终端设备重新附着到网络的过程中,获取网络设备为第一终端设备分配的第三IP地址,第三IP地址与第一IP地址不同;将第三IP地址通知给第二终端设备,第三IP地址用于指示第二终端设备将存储的第一终端设备的第一IP地址替换为第三IP地址。
通过上述设计,第一终端设备可以在重附着的过程中,获取网络侧分配的新IP地址,相比于第一终端设备主动检测IP地址是否发生变化,可以降低终端设备功耗。
在一种可能的设计中,还包括:在确定第一IP地址的使用时长达到预设时长时,将第一IP地址更新为第三IP地址,第三IP地址的主机地址和第一IP地址的主机地址不同,第三IP地址的网络地址和第一IP地址的网络地址相同;将第三IP地址通知给第二终端设备,第三IP地址用于指示第二终端设备将存储的第一终端设备的第一IP地址替换为第三IP地址。通过上述设计,第一终端设备自身主动更新IP地址,以提高通信安全性、可靠性。
在一种可能的设计中,通过服务器将第三IP地址通知给第二终端设备;或者,根据存储的第二终端设备的第二IP地址,将第三IP地址直接发送给第二终端设备。
通过上述设计,第一终端设备通过服务器将新的IP地址发送给第二终端设备,提高地址更新的准确性,第一设备直接将IP地址发送给第二终端设备,提高地址更新效率。
通过上述设计,第一终端设备关联N个第二终端设备,向服务器发送第一IP地址和第一终端设备的第一标识,包括:直接将第一IP地址和第一终端设备的第一标识发送至服务器;或者,将第一IP地址、第一标识和第一终端设备的第一业务类型发送给发送至服务器;或者,将第一IP地址、第一标识和至少一个第二终端设备的第二标识发送至服务器。
第三方面,本申请实施例提供一种通信方法,应用于服务器。方法包括:接收来自第一终端设备的第一终端设备的第一标识和第一终端设备的第一IP地址,其中,第一IP地址用于与第一终端设备关联的第二终端设备进行直接通信;根据第一标识,将第一IP地址 通知给第二终端设备,其中,第一标识与第二终端设备的第二标识之间存在关联关系。
通过上述设计,服务器在接收到第一终端设备发送的第一终端设备的第一标识和第一IP地址后,若第一终端设备的第一标识和第二终端设备的第二标识存在关联关系,根据第一标识和第二标识,则确定第一终端设备和第二终端设备存在关联,并将第一终端设备的IP地址发送给第二终端设备,使得第二终端设备可以通过第一IP地址与第一终端设备进行直接通信,提高通信效率。
在一种可能的设计中,第一终端设备关联N个第二终端设备,根据第一标识,将第一IP地址通知给第二终端设备,包括:根据第一映射关系,确定与第一终端设备存在关联的N个第二终端设备,第一映射关系中包含第一标识和N个第二标识之间的关联关系,N个第二标识分别用于标识N个第二终端设备;将第一IP地址通知给N个第二终端设备。
通过上述设计,通过服务器将第一终端设备的第一IP地址发送给与存在关联的N个第二终端设备,N个第二终端设备均可以与第一终端设备进行实时通信,提高通信可靠性。
在一种可能的设计中,第一终端设备关联N个第二终端设备,服务器接收来自第一终端设备的第一终端设备的第一标识和第一终端设备的第一IP地址时,还接收来自第一终端设备的第一终端设备的第一业务类型。根据第一标识,将第一IP地址通知给第二终端设备,包括:根据第一映射关系,确定与第一终端设备存在关联的N个第二终端设备,第一映射关系中包含第一标识和N个第二标识之间的关联关系,N个第二标识分别用于标识N个第二终端设备;根据第二映射关系,从N个第二终端设备中,筛选出至少一个第二终端设备,第二映射关系中包含至少一个第二终端设备的第二标识与至少一个第二终端设备的第二业务类型之间的关联关系,至少一个第二终端设备的第二业务类型与第一业务类型相同;将第一IP地址通知给至少一个第二终端设备。
通过上述设计,服务器将第一终端设备的第一IP地址,发送给与第一终端设备关联且与第一终端设备的业务类型相同的第二终端设备,提高通信可靠性和通信效率。
在一种可能的设计中,第一终端设备关联N个第二终端设备,服务器接收来自第一终端设备的第一终端设备的第一标识和第一终端设备的第一IP地址时,还接收来自第一终端设备的至少一个第二终端设备的第二标识;根据第一标识,将第一IP地址通知给第二终端设备,包括:根据第一标识,将第一IP地址通知给至少一个第二终端设备,其中,第一标识与至少一个第二终端设备的第二标识之间存在关联关系。
通过上述设计,服务器直接将第一IP地址发送给第一终端设备指示的至少一个第二终端设备,降低服务器的计算复杂度,提高IP地址的传输效率。
第四方面,本申请实施例提供一种通信方法,该方法可以由第二终端设备或第二终端设备中的芯片或芯片系统来执行,以实现上述第一方面中第二终端设备执行的任一种可能实现方式中的方法。
第五方面,本申请提供一种通信装置,该装置包括执行上述第二方面、第三方面或第四方面中任一种可能实现方式中的方法的模块/单元。这些模块/单元可以通过硬件实现,也可以通过硬件执行相应的软件实现。
第六方面,本申请提供一种通信装置,包括处理器和存储器,其中,存储器用于存储一个或多个计算机程序;当存储器存储的一个或多个计算机程序被处理器执行时,使得该通信装置能够实现上述第二方面、第三方面或第四方面中任一种可能实现方式中的方法。
第七方面,本申请提供一种计算机程序,当所述计算机程序在计算机上运行时,使得 所述计算机执行上述第二方面、第三方面或第四方面中任一种可能实现方式中的方法。
第八方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行上述第二方面、第三方面或第四方面中任一种可能实现方式中的方法。
第九方面,本申请提供一种芯片,所述芯片用于读取存储器中存储的计算机程序,执行上述第二方面、第三方面或第四方面中任一种可能实现方式中的方法。
第十方面,本申请实施例还提供一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现上述第二方面、第三方面或第四方面中任一种可能实现方式中的方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。
上述第四方面至第十方面中任一可能的技术方案可以达到的技术效果请参照上述第一方面、第二方面或第三方面中任一种可能实现方式中的方法可以达到的技术效果描述,这里不再重复赘述。
附图说明
图1为本申请实施例中提供的一种可能的通信系统示意图;
图2为本申请实施例中提供的一种可能的终端设备的结构示意图;
图3为本申请实施例中提供的一种可能的通信方法的流程示意图;
图4为本申请实施例中提供的另一种可能的通信方法的流程示意图;
图5为本申请实施例中提供的又一种可能的通信方法的流程示意图;
图6为本申请实施例中提供的一种可能的通信装置的结构示意图;
图7为本申请实施例中提供的另一种可能的通信装置的结构示意图。
具体实施方式
参见图1所示,图1为本申请实施例中提供的一种可能的通信系统,该通信系统可以包括服务器、第一终端设备、第二终端设备以及网络设备。该通信系统可以采用第四代移动通信技术(the 4th Generation mobile communication technology,4G)网络架构,例如长期演进(long term evolution,LTE)系统,也可以采用第五代移动通信技术(the 5th Generation mobile communication technology,5G)网络架构中,例如NR系统,或者未来的第六代移动通信技术网络架构或其他类似的通信系统,具体的不做限制。
网络设备,也可以称为接入网(access network,AN)设备,例如基站,可以是指接入网中在空口通过一个或多个小区与车载终端、终端设备通信的设备,基站可用于将收到的空中帧与IP分组进行相互转换,作为终端设备、车载终端与接入网的其余部分之间的路由器,其中接入网的其余部分可包括IP网络。网络设备还可协调对空口的属性管理。例如,网络设备可以包括LTE系统或高级长期演进(long term evolution-advanced,LTE-A)中的演进型基站(evolutional Node B,NodeB或eNB或e-NodeB),或者也可以包括5G NR系统(也简称为NR系统)中的下一代节点B(next generation node B,gNB),本申请实施例并不限定。
示例性的,第一终端设备可以为车载终端、智能家居设备或无线终端,第二终端设备 也可以为车载终端、智能家居设备或无线终端。
车载终端可以认为是放置或安装在车辆上的设备,包含通信模块,用以提供蜂窝通信功能,以支持车辆的对外通信连接。比如,车辆可以通过车载终端,经通信网络中的网络设备(例如基站)与终端设备进行通信。再比如,车辆也可以通过车载终端,经通信网络与服务器进行通信。
智能家居设备可以但不限于是智能空调、智能洗衣机、智能冰箱、智能热水器、智能电饭煲、智能灯具等设备。
无线终端可以是指向用户提供语音和/或数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线终端可以是移动终端,如移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式或者计算机内置的移动装置,它们与无线接入网交换语言和/或数据。例如,手机、可穿戴式设备(如智能手表)、个人通信业务(personal communication service,PCS)电话、无绳电话、会话发起协议(session initiation protocol,SIP)话机、无线本地环路(wireless local loop,WLL)站、个人数字助理(personal digital assistant,PDA)、智能交互音箱、智能交互屏等设备。无线终端也可以称为订户单元(subscriber unit)、订户站(subscriber station)、移动站(mobile station)、移动台(mobile)、远程站(remote station)、接入点(access point)、远程终端(remote terminal)、接入终端(access terminal)、用户终端(user terminal)、用户代理(user agent)、用户设备(user device)、或用户装备(user equipment)。
下文中,仅以第一终端设备为车载终端、第二终端设备为无线终端(下文中将无线终端称为终端设备)为例进行说明。
终端设备中可以包含用于提供用户与车辆的交互功能的应用程序。示例一,在室外温度较高时,用户可以通过应用程序远程控制车辆打开空调进行预冷。示例二,在室外温度较低时,用户可以通过应用程序远程控制车辆打开空调预热。示例三,在车辆停止运行一段时间后,若车辆检测到车窗未关闭,则车辆可以通过应用程序,通知用户车窗关闭异常,进而,用户可以通过应用程序远程控制车辆的车窗关闭。示例四,在车辆停止运行一段时间后,若车辆检测到出现异常振动或碰撞时,可以通过应用程序通知用户车辆异常。示例五,用户可以通过应用程序远程实时查看车辆的电池使用情况、车辆的零部件信息等。
服务器用于对终端设备和车载终端的IP地址进行管理。该服务器的具体部署形态本申请不做限定,具体可以是云端部署,还可以是独立的计算机设备或芯片等。
示例性的,车载终端和终端设备均可以获得网络侧分配的IP地址,在用户停车并离开车辆后,终端设备可以在检测到用户在应用程序中输入的控制指令时,将车载终端的IP地址作为目标IP地址,将终端设备的IP地址作为源IP地址,向车载终端发送控制指令,这样,车载终端可以在接收到来自终端设备的控制指令时,执行控制指令指示的操作。
图2示出了终端设备的一种可选的硬件结构示意图。
终端设备可以包括:处理器210,电源220,存储器230,天线1,天线2,移动通信模块240,无线通信模块250,音频电路260,扬声器261,麦克风262,传感器270,摄像头280,显示单元290等。其中传感器270可以包括触摸传感器272,压力传感器271等。
可以理解的是,本申请实施例示意的结构并不构成对终端设备的具体限定。在本申请另一些实施例中,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者 拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
处理器210中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器210中的存储器为高速缓冲存储器。该存储器可以保存处理器210刚用过或循环使用的指令或数据。如果处理器210需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器210的等待时间,因而提高了系统的效率。
终端设备还包括用于给各个部件供电的电源220(比如电池)。可选的,所述电源220可以通过电源管理系统与所述处理器210逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。
存储器230可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。存储器230可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如用于实现车辆与用户交互的应用程序)等。存储数据区可存储终端设备使用过程中所创建的数据(比如用户输入的控制指令等)等。此外,存储器230可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器210通过运行存储在存储器230的指令,和/或存储在设置于处理器中的存储器的指令,执行终端设备的各种功能应用以及数据处理。
终端设备的无线通信功能可以通过天线1,天线2,移动通信模块240,无线通信模块250,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。终端设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块240可以提供应用在终端设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块240可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块240可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块240还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块240的至少部分功能模块可以被设置于处理器210中。在一些实施例中,移动通信模块240的至少部分功能模块可以与处理器210的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器261)输出声音信号,或通过显示单元290显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。 在另一些实施例中,调制解调处理器可以独立于处理器210,与移动通信模块240或其他功能模块设置在同一个器件中。
无线通信模块250可以提供应用在终端设备上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块250可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块250经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器210。无线通信模块250还可以从处理器210接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,终端设备的天线1和移动通信模块240耦合,天线2和无线通信模块250耦合,使得终端设备可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),LTE,BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
终端设备可以通过音频电路260,扬声器261,麦克风262,以及应用处理器等实现音频功能。例如音乐播放,语音通话,语音控制等。
音频电路260用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频电路260还可以用于对音频信号编码和解码。在一些实施例中,音频电路260可以设置于处理器210中,或将音频电路260的部分功能模块设置于处理器210中。
扬声器261,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备可以通过扬声器261收听音乐,或收听语音提示。比如,终端设备可以通过扬声器261提示用户车辆出现异常振动或碰撞。
麦克风262,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当发送语音信息或发生语音指令时,用户可以通过人嘴靠近麦克风262发声,将声音信号输入到麦克风262。
压力传感器271用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器271可以设置于显示屏292。压力传感器271的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器271,电极之间的电容改变。终端设备根据电容的变化确定压力的强度。当有触摸操作作用于显示屏292,终端设备而根据压力传感器271检测所述触摸操作强度。终端设备也可以根据压力传感器271的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于应 用A(即用于提供用户与车辆的交互功能的应用程序)的图标时,执行启动应用A的指令。
触摸传感器272,也称“触控器件”。触摸传感器272可以设置于显示屏292,由触摸传感器272与显示屏292组成触摸屏,也称“触控屏”。触摸传感器272用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏292提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器272也可以设置于终端设备的表面,与显示屏292所处的位置不同。
显示单元290可用于接收输入的数字或字符信息,产生与终端设备的用户设置以及功能控制有关的信号输入,具体地,显示单元290可以包括设置在触摸屏291,可收集用户在其上或附近的触摸操作,例如点击按钮,拖动滚动框等。在一些实施例中,触摸屏291可以接收用户输入的控制指令。
显示单元290还可用于显示由用户输入的信息或提供给用户的信息以及终端设备的各种菜单。具体地,显示单元290可以包括显示屏292,显示屏292用于呈现界面,实现人机交互。其中,显示屏292可以采用液晶显示器、发光二极管等形式来配置。在一些实施例中,显示屏292可以显示用于导航路线。
其中,触摸屏291可以覆盖在显示屏292之上,也可以将触摸屏291与显示屏292集成而实现终端设备的输入和输出功能,集成后可以简称触摸显示屏。
下面结合附图介绍本申请实施例提供的技术方案。
图3为本申请实施例中提供的一种可能的通信方法,以该方法应用于图1所示的通信系统为例。其中,S301-S302可以由第一终端设备执行,或者由第一终端设备内的芯片或者芯片系统执行。S305可以由第二终端设备执行,或者由第二终端设备内的芯片或者芯片系统执行。
S301、第一终端设备获取网络设备为第一终端设备分配的第一IP地址。
在当前通信网络中,当第一终端设备和第二终端设备需要使用网络服务时,首先需要向网络进行注册,网络注册也可以称为附着。仅以第一终端设备为例,注册流程可以分为但不限于如下几种场景:初次注册到网络、当第一终端设备移动出了原来注册的区域时进行移动性注册更新、周期性注册更新、关机后重新开机、从打开飞行模式到关闭飞行模式、从没有网络覆盖的区域移动至有网络覆盖的区域等。
第一终端设备可以在初次注册到网络时,向网络侧发送网络注册请求。网络侧接收到来自第一终端设备的网络注册请求后,为第一终端设备分配IP地址,并将携带车载终端的IP地址的网络注册响应发送至第一设备。车载终端接收到来自网络侧的网络注册响应后,可以从注册响应中获取网络侧为第一终端设备分配的IP地址。
以网络侧包含基站和5G核心网为例,第一终端设备在开机后,向基站发送网络注册请求(Registration Request),Registration Request中携带第一终端设备的标识。基站接收到来自第一终端设备的Registration Request后,将第一终端设备的第一标识发送至核心网,第一终端设备的第一标识可以采用国际移动用户识别码(international mobile subscriber identity,IMSI)、国际移动设备标识(international mobile equipment identity,IMEI)、移动设备标识码(mobile equipment identifier,MEID)等,5G核心网与第一终端设备进行认证、鉴权后,向第一终端设备发送网络注册响应(Registration Accept),Registration Accept中携带5G核心网为第一终端设备分配的IP地址。
进一步的,网络注册请求中还可以携带IPv6地址类型参数,IPv6地址类型参数用于 指示网络侧为第一终端设备分配IPv6地址。比如,以4G通信系统为例,第一终端设备发送网络注册请求(Attach Request)给网络侧,Attach Request中可以携带IPv6地址类型参数。再比如,以5G通信系统为例,第一终端设备发送网络注册请求(Registration Request)给网络侧,Registration Request中携带IPv6地址类型参数。
网络注册过程中可能会触发一个或者多个PDU会话的建立,例如在移动性注册更新的场景下,第一终端设备有上行数据需要发送,此时在注册流程中会创建该PDU会话,因此,还可以在请求创建PDU的请求消息中携带IPv6地址类型参数。比如,仍以5G通信系统为例,第一终端设备还可以在发送网络注册请求(PDU Session Establishment Request)给网络侧时,在PDU Session Establishment Request中携带IPv6地址类型参数。
S302、第一终端设备将第一IP地址和第一终端设备的第一标识发送至服务器。
一种示例中,第一终端设备获取到网络侧为车载终端分配的IP地址后,可以在与第二终端设备建立关联关系的过程中,将第一IP地址和第一标识发送给服务器。
另一种示例中,第一终端设备可以在与第二终端设备建立关联后,将第一IP地址和第一标识发送给服务器。
示例性的,第一终端设备与第二终端设备可以通过以下两种可能的方式建立关联:
以第一终端设备为手机、第二终端设备为车载终端为例,手机向服务器发送绑定请求,该绑定请求中携带车辆信息、用户信息、手机的标识。其中,用户信息包括手机号、邮箱或用户名中的一项或多项,车辆信息中包含车辆的标识,车辆的标识包括车牌号、车辆识别号码(vehicle identification number,VIN)、行驶证件信息等中的一项或多项。服务器接收到来自手机的绑定请求后,存储绑定请求中携带的车辆信息和用户信息。
服务器中存储有车载终端的标识与车辆信息之间的关联关系。服务器根据接收到的车辆信息,向车辆信息对应的车载终端发送验证请求,该验证请求中携带车辆信息。车载终端接收到来自服务器的验证请求后,在确定服务器发送的车辆信息与本地存储的车辆信息相同时,向服务器发送验证响应,该验证响应表征车载终端确认与手机进行关联。服务器在接收到来自车载终端的上述验证响应后,可以向手机发送绑定响应,通知手机已与车载终端建立关联。进一步的,验证响应中还可以携带车载终端的标识,服务器接收到来自车载终端的上述验证响应后,可以向手机发送携带车载终端的标识的绑定响应,便于后续车载终端和手机之间进行直接通信。
第一终端设备将第一IP地址和第一终端设备的第一标识发送至服务器时,存在但不限于以下几种可能的实现方式:
作为第一种可能的实现方式:第一终端设备可以直接将第一IP地址和第一标识发送至服务器。
作为第二种可能的实现方式:第一终端设备将第一IP地址、第一标识和第一终端设备的第一业务类型发送至服务器。
作为第三种可能的实现方式:第一终端设备将第一IP地址、第一标识和至少一个第二终端设备的第二标识发送至服务器。至少一个第二终端设备是指与第一终端设备关联的N个第二终端设备中的至少一个终端设备。N为正整数。
作为第四种可能的实现方式:第一终端设备向服务器发送指示信息,指示信息中携带将第一IP地址和第一标识。该指示信息用于触发服务器向第一终端设备返回与第一终端设备关联的第二终端设备的第二IP地址。
S303、服务器确定与第一标识存在关联关系的第二终端设备的第二标识。
作为第一种可能的情况,服务器仅接收到来自第一终端设备的第一标识和第一IP地址。示例性的,服务器根据第一映射关系,确定与第一终端设备存在关联的N个第二终端设备,第一映射关系中包含第一标识和N个第二标识之间的关联关系,N个第二标识分别用于标识N个第二终端设备。进一步的,服务器确定将第一终端设备的IP地址发送给所述N个第二终端设备。
其中,第一映射关系可以是第一终端设备与第二终端设备建立关联的过程中,服务器接收到来自第一终端设备的第一标识,以及接收到第二终端设备的第二标识后,根据第一终端设备的第一标识和第二终端设备的第二标识建立并存储的。
作为第二种可能的情况,服务器接收到来自第一终端设备的第一标识、第一IP地址和第一业务类型。示例性的,服务器根据第一映射关系,确定与第一终端设备存在关联的N个第二终端设备;根据第二映射关系,从N个第二终端设备中,筛选出至少一个第二终端设备,第二映射关系中包含至少一个第二终端设备的第二标识与至少一个第二终端设备的第二业务类型之间的关联关系,至少一个第二终端设备的第二业务类型与第一业务类型相同。其中,第二映射关系可以是服务器在第一终端设备与第二终端设备建立关联的过程中创建并存储的。
作为第三种可能的情况,服务器接收到来自第一终端设备的第一标识、第一IP地址和至少一个第二终端设备的第二标识。示例性的,服务器根据第一标识,确定将第一IP地址通知给至少一个第二终端设备,其中,第一标识与至少一个第二终端设备的第二标识之间存在关联关系。
作为第四种可能的情况,服务器接收到来自第一终端设备的指示信息,该指示信息中携带将第一IP地址和第一标识。服务器根据第一映射关系,确定与第一终端设备存在关联的N个第二终端设备,确定将第一终端设备的IP地址发送给N个第二终端设备。进一步的,服务器还可以根据指示信息,确定将存储的N个第二终端设备的第二IP地址发送至第一终端设备。
S304、服务器根据第二标识,将第一IP地址发送给第二终端设备。
S305、第二终端设备接收并存储到来自服务器的第一IP地址。
S306、第二终端设备根据第一IP地址,向第一终端设备发送第一信息。
相应的,第一终端设备接收来自第二终端设备的第一信息。
在第一终端设备和第二终端设备进行直接通信的过程中,第一终端设备的第一IP地址和第二终端设备的第二IP地址均可能发生变化。下面仅以第一终端设备为例进行说明。
作为一种可能的实现方式,第一终端设备可以在重新启动、关闭飞行模式、从无网络覆盖的区域移动至有网络覆盖的区域等情况下,重新附着到网络。第一终端设备在第一终端设备重新附着到网络的过程中,获取网络设备为第一终端设备分配的第三IP地址,第三IP地址与第一IP地址不同。
作为另一种可能的实现方式,第一终端设备在确定第一IP地址的使用时长达到第一时长时,将第一IP地址替换为第三IP地址,第三IP地址的主机地址和第一IP地址的主机地址不同,第三IP地址的主机地址和第一IP地址的网络地址相同。IP地址可以由网络地址和主机地址组成,其中,网络地址用于标识终端设备所在的网络,主机地址用于标识该网络中的终端设备。
第一终端设备在获取到第三IP地址之后,作为一种举例,第一终端设备可以通过服务器将第三IP地址通知给第二终端设备,相应的,第二终端设备通过服务器接收第一IP地址。
作为另一种举例,第一终端设备也可以根据存储的第二终端设备的第二IP地址,将第三IP地址直接发送给第二终端设备,相应的,第二终端设备直接接收来自第一终端设备的第一IP地址。
以第一终端设备为车载终端、第二终端设备为手机为例。
图4为本申请实施例中提供的一种可能的通信流程示意图。
S401、车载终端获取网络设备为车载终端分配的车载终端的IP地址,参见S301。
S402、车载终端将车载终端的IP地址和车载终端的标识发送至服务器。
车载终端可以采用与S302相同的方式,将车载终端的IP地址和车载终端的标识发送至服务器。
示例性的,车载终端与手机可以采用S302中第一终端设备与第二终端设备的关联建立方式,车载终端与手机也可以通过以下方式建立关联:若车载终端中配置有与用户进行交互的交互装置,也可以由车载终端向服务器发起与手机进行关联。示例性地,车载终端向服务器发送绑定请求,该绑定请求中携带车辆信息、车载终端的标识和用户信息。其中,用户信息和车辆信息可以是用户通过交互装置输入至车载终端中的。服务器接收到来自车载终端的绑定请求后,存储绑定请求中携带的车辆信息和用户信息。
服务器根据接收到的用户信息,向手机发送验证请求,该验证请求中携带车辆信息。手机接收到来自服务器的验证请求后,提示用户是否与车辆信息对应的车载终端进行绑定,手机响应于用户选择的确认绑定指示,向服务器发送验证响应,该验证响应表征手机确认与车载终端建立关联关系。服务器在接收到来自手机的上述验证响应后,可以向车载终端发送绑定响应,通知车载终端车辆注册完成。进一步的,验证响应中还可以携带手机的标识,服务器接收到来自手机的上述验证响应后,可以向车载终端发送携带手机的标识的绑定响应,便于后续车载终端和手机之间进行直接通信。
服务器根据接收到的用户信息,向手机发送验证请求时,作为一种举例,若接收到的用户信息为手机号和\或邮箱,则可以直接根据手机号或邮箱,向手机发送验证请求。作为另一种举例,服务器中存储有手机的用户信息和手机的标识之间的关联关系,服务器接收到用户信息后,根据手机的用户信息和手机的标识之间的关联关系,向手机发送验证请求。
示例性地,手机的用户信息和手机的标识之间的关联关系可以通过以下方式建立:手机向服务器发送用户注册请求,该用户注册请求中携带用户信息和手机的标识。服务器接收到来自手机的注册请求后,存储注册请求中携带的用户信息。比如,手机中可以安装用于与车辆进行交互的应用A,当用户购车后,用户可以在应用A的注册界面中进行注册,在注册界面输入用户信息,用户信息中包括用户名和用户密码。手机响应于用户输入注册信息的操作,向服务器发送用户注册请求,该用户注册请求中携带用户信息和手机的标识。服务器接收到来自手机的用户注册请求时,存储用户注册请求中携带的用户名、用户密码和手机的标识。
S403、手机向服务器发送手机的IP地址和手机的标识。
手机可以在初次注册到网络时,采用S301中车载终端获取网络侧为车载终端分配的 IP地址的方式,获取网络侧为手机分配的IP地址,手机的标识也可以采用IMSI、IMEI、MEID等。
一种可能的实现方式中,手机可以在与车载终端建立关联的过程中,将手机的IP地址和手机的标识发送至服务器。在另一可能的实现方式中,手机也可以在与车载终端建立关联关系的过程后,将手机的IP地址和手机的标识发送至服务器。本申请对此不作限制,在此不再赘述。
S404、服务器根据车载终端的标识和手机的标识,确定车载终端和手机之间存在关联。
服务器接收到车载终端发送的车载终端的标识和车载终端的IP地址后,服务器根据第一映射关系,确定与车载终端存在关联的终端设备为手机。服务器接收到手机发送的手机的标识和手机的IP地址后,服务器根据第一映射关系,确定与手机存在关联的终端设备为车载终端。
S405、服务器将手机的IP地址发送给车载终端。
S406、服务器将车载终端的IP地址发送给手机。
需要说明的是,本申请实施例中,对S405和S406的执行顺序不作限定,服务器也可以先执行S406,再执行S405。
S407、手机和车载终端根据车载终端的IP地址和手机的IP地址进行直接通信。
示例性的,手机根据车载终端的IP地址,向车载终端发送第一信息。以第一信息为控制指令为例,手机检测到用户输入的控制指令后,将控制指令发送至车载终端,该控制指令携带车载终端的IP地址和手机的IP地址,车载终端的IP地址作为目的IP地址,手机的IP地址作为源IP地址。比如,手机检测到用户输入的指示开启空调的控制指令1时,将车载终端的IPv6地址作为目的IP地址,手机的IPv6地址作为源IP地址,向车载终端控制指令1。
作为一种可能的实现方式,车载终端接收到来自手机的控制指令后,若车载终端所属的车辆的运行状态表征该车辆处于休眠模式,并且此时该控制指令需要唤醒车辆,则车载终端将车辆进行唤醒,在车辆被唤醒后,执行控制指令指示的操作。其中,休眠模式是指车辆的发动机熄火后,高压系统下电,车辆通过电瓶蓄电池对车载终端的通信模块进行供电。以车辆内装载的空调为例,在休眠模式下,空调的控制单元关闭,此时将无法执行目标指令。比如,车载终端接收到目的IP地址为车载终端的IPv6地址、源IP地址为手机的IPv6地址的控制指令1后,如果车载终端所属的车辆处于休眠模式,车载终端将车辆中的空调控制单元唤醒后,执行开启空调暖风的操作。
作为另一种可能的实现方式,手机在执行S407之前,即手机向车载终端发送控制指令之前,还可以向车载终端发送唤醒指令。进一步的,车载终端接收到来自终端设备的唤醒指令,对车辆进行唤醒后,接收来自手机的控制指令,并执行控制指令指示的操作。
进一步的,车载终端可以在接收到来自手机的第一信息之后,向手机发送接收响应。手机发送第一信息之后,若在第二时长内未接收到来自车载终端的接收响应,作为一种可能的实现方式,车载终端可以将第一信息、车载终端的标识发送给服务器。服务器接收到来自手机的第一信息后,根据车载终端的标识,将第一信息发送至车载终端。
作为另一种可能的实现方式,手机还可以向服务器发送地址查询请求,该地址查询请求中携带车载终端的标识。服务器根据地址查询请求中携带的车载终端的标识,以及根据手机的标识和车载终端的标识之间的关联关系,查询到存储的车载终端的IP地址,然后将 存储的车载终端的IP地址发送至手机。作为一种举例,手机获取到服务器中存储的车载终端的IP地址后,根据服务器中存储的车载终端的IP地址,再次向车载终端发送第一信息。作为另一种举例,手机获取到服务器中存储的车载终端的IP地址后,在确定服务器和手机中存储的车载终端的IP地址不同时,将服务器中存储的车载终端的IP地址作为目的地址,再次向车载终端发送第一信息。
在车载终端和手机进行直接通信的过程中,车载终端也可以根据手机的IP地址,向手机发送第二信息,比如,车载终端也可以向手机发送用于提示用户车辆电源异常的第二信息,手机接收到第二信息后,提示用户查看车辆的电池使用情况。
在车载终端和手机进行直接通信的过程中,车载终端的IP地址和手机的IP地址均可能发生变化。当车载终端的IP地址或手机的IP地址发生变化时,车载终端或手机可以将新的IP地址通知给对方。
以车载终端为例,车载终端可以通过但不限于以下两种可能的实现方式,获取新的IP地址:
第一种可能的实现方式:车载终端可以在重新启动、关闭飞行模式、从无网络覆盖的区域移动至有网络覆盖的区域等情况下,再次向网络侧发起网络注册,获取网络侧为车载终端分配的新的IP地址,车载终端将网络侧分配的新的IP地址作为与手机进行直接通信的IP地址。
例如,车载终端可以再次向网络侧发送网络注册请求AttachRequest,该网络注册请求中携带IPv6地址类型参数,网络侧根据IPv6地址类型参数,为车载终端分配新的IPv6地址,并向车载终端发送携带车载终端的新的IPv6地址的注册响应,车载终端接收到来自网络侧的注册响应后,获取新的IPv6地址。
第二种可能的实现方式:车载终端可以周期性生成新的IP地址。示例性的,车载终端获取到网络侧分配的IP地址之后,在确定车载终端的IP地址的使用时长达到第一时长时,生成新的IP地址,新的IP地址的网络地址与旧的IP地址的网络地址相同,新的IP地址的主机地址与旧的IP地址的主机地址不同。例如,车载终端在获取到网络侧分配的第一IPv6地址之后,可以在确定车载终端的IP地址的使用时长达到7天时,周期性地生成新的IPv6地址,新的IPv6地址的网络地址与旧的IPv6地址的网络地址相同,新的IPv6地址的主机地址与旧的IPv6地址的主机地址不同,通过周期变更主机地址,提升交互安全性。
在车载终端的IP地址发生变化时,车载终端可以通过以下两种可能的方式,将新的车载终端的IP地址发送给手机,使得手机可以通过新的车载终端的IP地址与车载终端进行直接通信,下文中,以新的车载终端的IP地址为地址A,旧的车载终端的IP地址为地址B为例进行说明:
第一种可能的方式,车载终端可以通过服务器将地址A发送给手机。示例性地,车载终端可以将地址A发送至服务器,服务器接收到来自车载终端的地址A时,将存储的车载终端的IP地址替换为地址A。服务器向手机发送地址更新指示,该地址更新指示中携带车载终端的标识和地址A。手机在接收到来自服务器的地址更新指示后,根据地址更新指示中携带的车载终端的标识,确定对车载终端的IP地址进行替换时,将存储的车载终端的IP地址由地址B替换为地址A。
第二种可能的方式,车载终端可以直接将地址A发送给手机。示例性地,车载终端可以将地址A作为源IP地址,将手机的IP地址作为目的IP地址,向手机发送地址更新指示, 该地址更新指示中携带车载终端的标识和地址A。这样,手机可以在接收到地址更新指示,根据该地址更新指示中携带的车载终端的标识,确定对车载终端的IP地址进行替换时,将存储的车载终端的IP地址由地址B替换为地址A。
采取以上两种可能的方式时,手机将车载终端的IP地址由地址B替换为地址A后,可以将地址A作为目的IP地址,将手机的IP地址作为源IP地址,向车载终端发送地址更新响应。车载终端在向手机发送地址更新指示后,若在设定时长内,未接收到来自手机的地址更新响应时,可以将地址A发送至服务器。服务器接收到来自车载终端的地址A时,将存储的车载终端的IP地址由地址B替换为地址A。
下面,对手机的IP地址发生变化,手机将新的IP地址通知给车载终端的过程进行说明。
手机也可以通过上述两种可能的实现方式,获取新的IP地址,在此不再赘述。下文中,以新的手机的IP地址为地址C,旧的手机的IP地址为地址D为例进行说明。
进一步的,手机可以通过以下两种可能的方式,将新的IP地址通知给车载终端:
第一种可能的方式:在手机的IP地址发送变化时,手机可以通过服务器将地址C发送给车载终端,使得车载终端可以通过地址C与手机进行直接通信。示例性地,手机可以将地址C发送至服务器,服务器接收到来自手机的地址C时,向车载终端发送地址更新指示,该地址更新指示中携带手机的标识和地址C。车载终端中存储有手机的IP地址,车载终端在接收到来自服务器的地址更新指示后,根据地址更新指示中携带的手机的标识,确定对手机的IP地址进行替换时,将存储的手机的IP地址由地址D替换为地址C。
第二种可能的方式:手机可以直接将地址C发送给车载终端。示例性地,手机可以将地址C作为源IP地址,将车载终端的IP地址作为目的IP地址,向车载终端发送地址更新指示,该地址更新指示中携带手机的标识和地址C。车载终端中存储有手机的IP地址,车载终端可以在接收到来自手机的地址更新指示后,根据该地址更新指示中携带的手机的标识,确定对手机的IP地址进行替换时,将存储的手机的IP地址由地址D替换为地址C。
采取以上两种可能的方式时,车载终端将手机的IP地址由地址D替换为地址C后,可以将地址C作为目的IP地址,将车载终端的IP地址作为源IP地址,向手机发送地址更新响应。手机在向车载终端发送地址更新指示后,若在设定时长内,未接收到来自车载终端的地址更新响应时,可以将地址C发送至服务器。服务器接收到来自手机的地址C时,将存储的手机的IP地址由地址D替换为地址C。
进一步的,车载终端可以在无法根据手机的IP地址与手机进行直接通信时,向服务器发送地址查询请求,该地址查询请求中携带车载终端的标识。服务器根据地址查询请求中携带的车载终端的标识,以及根据手机的标识和车载终端的标识之间的关联关系,查询到存储的手机的IP地址,然后将存储的手机的IP地址发送至车载终端。车载终端获取到服务器中存储的手机的IP地址后,根据服务器中存储的手机的IP地址与手机进行直接通信。
第一终端设备为手机,与手机关联的第二终端设备包括智能空调和智能音响,下面以手机与智能空调进行通信为例,对本申请提供的通信方法进行说明。
图5为本申请实施例中提供的一种可能的通信流程示意图。
S501、手机将手机的IP地址、手机的标识、手机的业务类型发送至服务器。手机的业务类型用于表征手机与智能空调进行通信。
手机可以在获取到网络侧分配的手机的IPv6地址后,将手机的IPv6地址、手机的标识和手机的业务类型发送至服务器。
S502、智能空调将智能空调的IP地址和智能空调的标识发送至服务器。
智能空调在获取到网络侧分配的智能空调的IPv6地址后,将智能空调的IPv6地址和智能空调的标识发送至服务器。
需要说明的是,本申请实施时不限定S501和S502之间的执行顺序。
S503、服务器根据手机的标识和智能空调的标识,确定智能空调和手机之间存在关联关系。
服务器接收到手机发送的手机的IPv6地址、手机的标识和手机的业务类型后,根据存储的智能空调的标识和手机的标识之间的关联关系,确定手机和智能空调存在关联,以及根据存储的智能音响的标识和手机的标识之间的关联关系,确定手机和智能音响存在关联。服务器从智能空调和智能音响中,确定智能空调的业务类型与手机的业务类型相同,确定将手机的IPv6地址发送给智能空调。
服务器接收到智能空调发送的智能空调的IP地址和智能空调的标识后,根据存储的智能空调的标识和手机的标识之间的关联关系,确定手机和智能空调存在关联时,确定将智能空调的IPv6地址发送给手机。
其中,智能空调的标识和手机的标识之间的关联关系可以是通过以下方式确定的:
用户购入智能空调后,可以通过应用程序,从服务器提供的候选设备中,选择该智能空调,作为与手机建立关联的设备。手机响应于用户选择,将手机的标识、智能空调的标识上报至服务器。服务器接收到来自手机的手机标识和智能空调的标识后,建立并存储智能空调的标识和手机的标识之间的关联关系。
S504、服务器将智能空调的IP地址发送给手机。
S505、服务器将手机的IP地址发送给智能空调。
需要说明的是,本申请实施时不限定S504和S505之间的执行顺序。
S506、智能空调和手机根据手机的IP地址和智能空调的IP地址进行通信。
智能空调获取到手机的IPv6地址,手机获取到智能空调的IPv6地址后,智能空调和手机之间可以通过手机的IPv6地址和智能空调的IPv6地址进行直接通信。比如,智能空调可以向手机发送提示信息,提示信息用于提示用户室温低于设置温度,提示信息携带手机的IPv6地址和智能空调的IPv6地址,手机的IPv6地址作为目的IP地址,智能空调的IPv6地址作为源IP地址,手机接收到提示信息后,提示用户室温过低。又比如,手机向智能空调发送控制指令,该控制指令用于指示智能空调关闭电源,控制指令携带手机的IPv6地址和智能空调的IPv6地址,智能空调的IPv6地址作为目的IP地址,手机的IPv6地址作为源IP地址,智能空调接收到来自手机的控制指令后,关闭空调电源。
基于相同的技术构思,本申请还提供了一种通信装置,该装置的结构如图6所示,包括通信单元601和处理单元602。所述通信装置600可以应用于图3所示的通信方法中的第一终端设备、第二终端设备或服务器。下面对通信装置600中的各个单元的功能进行介绍。所述通信单元601,用于接收和发送数据。所述通信装置600应用于第一终端设备、第二终端设备或服务器时,所述通信单元601又可以称为物理接口、通信模块、通信接口、输入输出接口。车载设备或读写器可以通过该通信单元连接网线或电缆,进而与其他设备 建立物理连接。
下面对所述通信装置600应用于第一终端设备时,所述通信单元601和所述处理单元602的功能进行介绍:
所述通信装置600包括通信单元601,所述通信单元601用于:获取网络设备为所述第一终端设备分配的第一IP地址,所述第一IP地址用于与所述第一终端设备关联的第二终端设备进行直接通信;向所述服务器发送所述第一IP地址和所述第一终端设备的第一标识,使得所述服务器将所述第一IP地址发送至所述第二终端设备,所述第一标识与所述第二终端设备的第二标识之间存在关联关系;接收来自所述第二终端设备的第一信息,所述第一信息携带所述第一IP地址,所述第一IP地址作为目的IP地址。
在一种可能的设计中,所述第一IP地址为IPv6地址。
在一种可能的设计中,获取所述网络设备为所述第一终端设备分配的第一IP地址时,所述通信单元601用于:向所述网络设备发送网络注册请求,所述网络注册请求中携带地址类型参数,所述地址类型参数用于指示网络设备为所述第一终端设备分配IPv6地址;获取所述网络设备返回的网络注册响应,所述网络注册响应中携带所述第一IP地址。
在一种可能的设计中,所述通信单元601还用于:在所述第一终端设备重新附着到网络的过程中,获取所述网络设备为所述第一终端设备分配的第三IP地址,所述第三IP地址与所述第一IP地址不同;将所述第三IP地址通知给所述第二终端设备,所述第三IP地址用于指示所述第二终端设备将存储的所述第一终端设备的第一IP地址替换为所述第三IP地址。
在一种可能的设计中,所述通信装置600包括所述处理单元602,所述处理单元602用于:在确定所述第一IP地址的使用时长达到预设时长时,将所述第一终端设备用于与所述第二终端设备进行直接通信的第一IP地址更新为第三IP地址,所述第三IP地址的主机地址和所述第一IP地址的主机地址不同,所述第三IP地址的网络地址和所述第一IP地址的网络地址相同;所述通信单元601,还用于将所述第三IP地址通知给所述第二终端设备,所述第三IP地址用于指示所述第二终端设备将存储的所述第一终端设备的所述第一IP地址替换为所述第三IP地址。
在一种可能的设计中,将所述第三IP地址通知给所述第二终端设备时,所述通信单元601用于:通过服务器将所述第三IP地址通知给所述第二终端设备;或者,根据所述第二IP地址将所述第三IP地址通知给所述第二终端设备。
在一种可能的设计中,所述第一终端设备关联N个第二终端设备,向所述服务器发送所述第一IP地址和所述第一终端设备的第一标识时,所述通信单元601用于:直接将所述第一IP地址和所述第一终端设备的第一标识发送至所述服务器;或者,将所述第一IP地址、所述第一标识和所述第一终端设备的第一业务类型发送至所述服务器;或者,将所述第一IP地址、所述第一标识和所述至少一个第二终端设备的第二标识发送给发送至所述服务器。
下面对所述通信装置600应用于服务器时,所述通信单元601和所述处理单元602的功能进行介绍:
所述通信装置600包括通信单元601,所述通信单元601用于:接收来自第一终端设备的所述第一终端设备的第一标识和所述第一终端设备的第一IP地址,其中,所述第一IP 地址用于与所述第一终端设备关联的第二终端设备进行直接通信;将所述第一IP地址通知给所述第二终端设备,其中,所述第一标识与所述第二终端设备的第二标识之间存在关联关系。
在一种可能的设计中,所述通信装置600还包括处理单元602,所述处理单元602用于:根据第一映射关系,确定与所述第一终端设备存在关联的N个第二终端设备,所述第一映射关系中包含所述第一标识和N个第二标识之间的关联关系,所述N个第二标识分别用于标识所述N个第二终端设备;将所述第一IP地址通知给所述第二终端设备时,所述通信单元601用于:将所述第一IP地址通知给所述N个第二终端设备。
在一种可能的设计中,所述第一终端设备关联N个第二终端设备,接收来自第一终端设备的所述第一终端设备的第一标识和所述第一终端设备的第一IP地址时,所述通信单元601还用于:接收来自所述第一终端设备的所述第一终端设备的第一业务类型;所述通信装置600还包括处理单元602,所述处理单元602用于:根据第一映射关系,确定与所述第一终端设备存在关联的N个第二终端设备,所述第一映射关系中包含所述第一标识和N个第二标识之间的关联关系,所述N个第二标识分别用于标识所述N个第二终端设备;根据第二映射关系,从所述N个第二终端设备中,筛选出至少一个第二终端设备,所述第二映射关系中包含所述至少一个第二终端设备的第二标识与所述至少一个第二终端设备的第二业务类型之间的关联关系,所述至少一个第二终端设备的第二业务类型与所述第一业务类型相同;将所述第一IP地址通知给所述第二终端设备时,所述通信单元601用于:将所述第一IP地址通知给所述至少一个第二终端设备。
在一种可能的设计中,所述第一终端设备关联N个第二终端设备,接收来自第一终端设备的所述第一终端设备的第一标识和所述第一终端设备的第一IP地址时,所述通信单元601还用于:接收来自所述第一终端设备的所述第一终端设备的第一业务类型;将所述第一IP地址通知给所述第二终端设备时,所述通信单元用于:将所述第一IP地址通知给所述至少一个第二终端设备。
基于相同的技术构思,本申请还提供了一种通信装置,所述通信装置700可以实现图3所示通信中第一终端设备、第二终端设备或服务器的功能。参阅图7所示,通信装置700包括:收发器701、处理器702以及存储器703。其中,所述收发器701、所述处理器702以及所述存储器703之间相互连接。
可选的,所述收发器701、所述处理器702以及所述存储器703之间通过总线704相互连接。所述总线704可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
所述收发器701,用于接收和发送数据,实现与其他设备之间的通信交互。
一种可能的应用场景中,所述通信装置700应用于第一终端设备时,所述处理器702,用于在确定所述第一IP地址的使用时长达到预设时长时,将所述的第一IP地址更新为第三IP地址,所述第三IP地址的主机地址和所述第一IP地址的主机地址不同,所述第三IP地址的网络地址和所述第一IP地址的网络地址相同。
另一种可能的应用场景中,所述通信装置700应用于服务器时,在一种可能的设计中, 所述处理器702用于根据第一映射关系,确定与所述第一终端设备存在关联的N个第二终端设备,所述第一映射关系中包含所述第一标识和N个第二标识之间的关联关系,所述N个第二标识分别用于标识所述N个第二终端设备。
在一种可能的设计中,所述处理器702用于:根据第一映射关系,确定与所述第一终端设备存在关联的N个第二终端设备,所述第一映射关系中包含所述第一标识和N个第二标识之间的关联关系,所述N个第二标识分别用于标识所述N个第二终端设备;根据第二映射关系,从所述N个第二终端设备中,筛选出至少一个第二终端设备,所述第二映射关系中包含所述至少一个第二终端设备的第二标识与所述至少一个第二终端设备的第二业务类型之间的关联关系,所述至少一个第二终端设备的第二业务类型与所述第一业务类型相同。
可以理解,本申请图7中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
基于以上实施例,本申请实施例还提供了一种计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行图3、图4、图5所示的实施例提供的通信方法。
基于以上实施例,本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,所述计算机程序被计算机执行时,使得计算机执行图3、图4、图5所示的实施例提供的通信方法。其中,存储介质可以是计算机能够存取的任何可用介质。以此为例但不限于:计算机可读介质可以包括RAM、ROM、EEPROM、CD-ROM或其他光盘存储、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。
基于以上实施例,本申请实施例还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,实现图3、图4、图5所示的实施例提供的通信方法。
基于以上实施例,本申请实施例提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现图3、图4、图5所示的实施例中第一终端设备、第二终端设备或服务器所涉及的功能。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机 可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的保护范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (36)

  1. 一种通信系统,其特征在于,包括服务器、第一终端设备和第二终端设备,
    所述第一终端设备,用于获取网络设备为所述第一终端设备分配的第一网际互连协议IP地址,并将所述第一IP地址和所述第一终端设备的第一标识发送至所述服务器,其中,所述第一IP地址用于与所述第一终端设备关联的第二终端设备进行直接通信;
    所述服务器,用于接收来自所述第一终端设备的所述第一标识和所述第一IP地址;根据所述第一标识,将所述第一IP地址通知给所述第二终端设备,其中,所述第一标识与所述第二终端设备的第二标识之间存在关联关系;
    所述第二终端设备,用于接收并存储来自所述服务器的所述第一IP地址;根据所述第一IP地址,向所述第一终端设备发送第一信息;
    所述第一终端设备,还用于接收来自所述第二终端设备的所述第一信息。
  2. 如权利要求1所述的系统,其特征在于,所述第一IP地址为网际互连协议第六版IPv6地址。
  3. 如权利要求2所述的系统,其特征在于,获取网络设备为所述第一终端设备分配的第一IP地址时,所述第一终端设备用于:
    向所述网络设备发送网络注册请求,所述网络注册请求中携带地址类型参数,所述地址类型参数用于指示所述网络设备为所述第一终端设备分配IPv6地址;
    获取所述网络设备返回的网络注册响应,所述网络注册响应中携带所述第一IP地址。
  4. 如权利要求1-3任一项所述的系统,其特征在于,所述第一终端设备,还用于:
    在所述第一终端设备重新附着到网络的过程中,获取所述网络设备为所述第一终端设备分配的第三IP地址,所述第三IP地址与所述第一IP地址不同;
    以及将所述第三IP地址通知给所述第二终端设备;
    所述第二终端设备,还用于接收来自所述第一终端设备的所述第三IP地址,并将存储的所述第一IP地址替换为所述第三IP地址。
  5. 如权利要求1-3任一项所述的系统,其特征在于,所述第一终端设备,还用于:
    在确定所述第一IP地址的使用时长达到第一时长时,将所述第一IP地址更新为第三IP地址,所述第三IP地址的主机地址和所述第一IP地址的主机地址不同,所述第三IP地址的主机地址和所述第一IP地址的网络地址相同;
    以及将所述第三IP地址通知给所述第二终端设备;
    所述第二终端设备,还用于接收所述第三IP地址,并将存储的所述第一IP地址替换为所述第三IP地址。
  6. 如权利要求4或5所述的系统,其特征在于,将所述第三IP地址通知给所述第二终端设备时,所述第一终端设备用于:
    将所述第三IP地址发送至所述服务器;
    所述服务器,还用于接收来自所述第一终端设备的所述第三IP地址,并将所述第三IP地址发送至所述第二终端设备;
    接收所述第三IP地址时,所述第二终端设备用于:
    接收所述服务器发送的所述第三IP地址。
  7. 如权利要求4或5所述的系统,其特征在于,将所述第三IP地址通知给所述第二终 端设备时,所述第一终端设备用于:
    根据存储的所述第二终端设备的第二IP地址,将所述第三IP地址直接发送给所述第二终端设备;
    接收所述第三IP地址时,所述第二终端设备用于:
    接收所述第一终端设备发送的所述第三IP地址。
  8. 如权利要求1-7任一项所述的系统,其特征在于,所述第一终端设备,还用于接收来自所述第二终端设备的所述第一信息后,向所述第二终端设备发送接收响应;
    所述第二终端设备,还用于若在第二时长内未接收到来自所述第一终端设备的接收响应,则向所述服务器发送地址查询请求,所述地址查询请求中携带所述第一标识;
    所述服务器,还用于接收来自所述第二终端设备的地址查询请求;根据所述地址查询请求,查询所述第一标识所标识的所述第一终端设备的第四IP地址;以及将所述第四IP地址发送至所述第二终端设备;
    所述第二终端设备,还用于接收来自所述服务器的所述第四IP地址,并根据所述第四IP地址,再次向所述第一终端设备发送所述第一信息。
  9. 如权利要求1-7任一项所述的系统,其特征在于,所述第一终端设备关联N个第二终端设备,根据所述第一标识,将所述第一IP地址通知给所述第二终端设备时,所述服务器用于:
    根据第一映射关系,确定与所述第一终端设备存在关联的N个第二终端设备,所述第一映射关系中包含所述第一标识和N个第二标识之间的关联关系,所述N个第二标识分别用于标识所述N个第二终端设备;
    将所述第一IP地址通知给所述N个第二终端设备。
  10. 如权利要求1-7任一项所述的系统,其特征在于,所述第一终端设备关联N个第二终端设备,将所述第一IP地址和所述第一终端设备的第一标识发送至所述服务器时,所述第一终端设备用于:
    将所述第一IP地址、所述第一终端设备的第一标识和所述第一终端设备的第一业务类型发送至所述服务器;
    所述服务器,还用于接收来自所述第一终端设备的所述第一业务类型;
    根据所述第一标识,将所述第一IP地址通知给所述第二终端设备时,所述服务器用于:
    根据所述第一标识和所述第一业务类型确定与所述第一终端设备执行所述第一业务类型的业务相关联的至少一个第二终端设备;
    将所述第一IP地址通知给所述至少一个第二终端设备。
  11. 如权利要求1-7任一项所述的系统,其特征在于,所述第一终端设备关联N个第二终端设备,将所述第一IP地址和所述第一终端设备的第一标识发送至所述服务器时,所述第一终端设备用于:
    将所述第一IP地址、所述第一终端设备的第一标识和至少一个目标设备标识发送至所述服务器,所述至少一个目标设备标识用于标识至少一个目标设备,并且所述至少一个目标设备标识包括所述第二标识;
    所述服务器,还用于接收来自所述第一终端设备的所述至少一个目标设备标识;
    根据所述第一标识,将所述第一IP地址通知给所述第二终端设备时,所述服务器用于:
    根据所述第一标识和所述至少一个目标设备标识,将所述第一IP地址通知给所述第二 终端设备。
  12. 一种通信方法,其特征在于,应用于第一终端设备,所述方法包括:
    获取网络设备为所述第一终端设备分配的第一IP地址,所述第一IP地址用于与所述第一终端设备关联的第二终端设备进行直接通信;
    向服务器发送所述第一IP地址和所述第一终端设备的第一标识,使得所述服务器将所述第一IP地址发送至所述第二终端设备,所述第一标识与所述第二终端设备的第二标识之间存在关联关系;
    接收来自所述第二终端设备的第一信息,所述第一信息携带所述第一IP地址,所述第一IP地址作为目的IP地址。
  13. 如权利要求12所述的方法,其特征在于,所述第一IP地址为IPv6地址。
  14. 如权利要求13所述的方法,其特征在于,获取网络设备为所述第一终端设备分配的第一IP地址,包括:
    向所述网络设备发送网络注册请求,所述网络注册请求中携带地址类型参数,所述地址类型参数用于指示所述网络设备为所述第一终端设备分配IPv6地址;
    获取所述网络设备返回的网络注册响应,所述网络注册响应中携带所述第一IP地址。
  15. 如权利要求12-14任一项所述的方法,其特征在于,还包括:
    在所述第一终端设备重新附着到网络的过程中,获取所述网络设备为所述第一终端设备分配的第三IP地址,所述第三IP地址与所述第一IP地址不同;
    将所述第三IP地址通知给所述第二终端设备,所述第三IP地址用于指示所述第二终端设备将存储的所述第一终端设备的所述第一IP地址替换为所述第三IP地址。
  16. 如权利要求12-14任一项所述的方法,其特征在于,还包括:
    在确定所述第一IP地址的使用时长达到预设时长时,将所述第一IP地址更新为第三IP地址,所述第三IP地址的主机地址和所述第一IP地址的主机地址不同,所述第三IP地址的网络地址和所述第一IP地址的网络地址相同;
    将所述第三IP地址通知给所述第二终端设备,所述第三IP地址用于指示所述第二终端设备将存储的所述第一终端设备的所述第一IP地址替换为所述第三IP地址。
  17. 如权利要求15或16所述的方法,其特征在于,将所述第三IP地址通知给所述第二终端设备,包括:
    通过所述服务器将所述第三IP地址通知给所述第二终端设备;或者,
    根据存储的所述第二终端设备的第二IP地址,将所述第三IP地址直接发送给所述第二终端设备。
  18. 如权利要求12-17任一项所述的方法,其特征在于,所述第一终端设备关联N个第二终端设备,向所述服务器发送所述第一IP地址和所述第一终端设备的第一标识,包括:
    直接将所述第一IP地址和所述第一终端设备的第一标识发送至所述服务器;或者,
    将所述第一IP地址、所述第一标识和所述第一终端设备的第一业务类型发送至所述服务器;或者;
    将所述第一IP地址、所述第一终端设备的第一标识和至少一个目标设备标识发送至所述服务器,所述至少一个目标设备标识用于标识至少一个目标设备,并且所述至少一个目标设备标识包括所述第二标识。
  19. 一种通信方法,其特征在于,应用于服务器,所述方法包括:
    接收来自第一终端设备的所述第一终端设备的第一标识和所述第一终端设备的第一IP地址,其中,所述第一IP地址用于所述第一终端设备与所述第一终端设备关联的第二终端设备进行直接通信;
    根据所述第一标识,将所述第一IP地址通知给所述第二终端设备,其中,所述第一标识与所述第二终端设备的第二标识之间存在关联关系。
  20. 如权利要求19所述的方法,其特征在于,所述第一终端设备关联N个第二终端设备,根据所述第一标识,将所述第一IP地址通知给所述第二终端设备,包括:
    根据第一映射关系,确定与所述第一终端设备存在关联的N个第二终端设备,所述第一映射关系中包含所述第一标识和N个第二标识之间的关联关系,所述N个第二标识分别用于标识所述N个第二终端设备;
    将所述第一IP地址通知给所述N个第二终端设备。
  21. 如权利要求19所述的方法,其特征在于,所述第一终端设备关联N个第二终端设备,所述服务器接收来自第一终端设备的所述第一终端设备的第一标识和所述第一终端设备的第一IP地址时,还接收来自所述第一终端设备的所述第一终端设备的第一业务类型;
    根据所述第一标识,将所述第一IP地址通知给所述第二终端设备,包括:
    根据所述第一标识和所述第一业务类型确定与所述第一终端设备执行所述第一业务类型的业务相关联的至少一个第二终端设备;
    将所述第一IP地址通知给所述至少一个第二终端设备。
  22. 如权利要求19所述的方法,其特征在于,所述第一终端设备关联N个第二终端设备,所述服务器接收来自第一终端设备的所述第一终端设备的第一标识和所述第一终端设备的第一IP地址时,还接收来自所述第一终端设备的至少一个目标设备标识,所述至少一个目标设备标识用于标识至少一个目标设备,并且所述至少一个目标设备标识包括所述第二标识;
    根据所述第一标识,将所述第一IP地址通知给所述第二终端设备,包括:
    根据所述第一标识和所述至少一个目标设备标识,将所述第一IP地址通知给所述第二终端设备。
  23. 一种通信装置,其特征在于,包括发送单元和接收单元;
    所述接收单元用于:
    获取网络设备为所述通信装置分配的第一IP地址,所述第一IP地址用于与所述通信装置关联的第二终端设备进行直接通信;
    所述发送单元用于:
    向服务器发送所述第一IP地址和所述通信装置的第一标识,使得所述服务器将所述第一IP地址发送至所述第二终端设备,所述第一标识与所述第二终端设备的第二标识之间存在关联关系;
    所述接收单元还用于接收来自所述第二终端设备的第一信息,所述第一信息携带所述第一IP地址,所述第一IP地址作为目的IP地址。
  24. 如权利要求23所述的装置,其特征在于,所述第一IP地址为IPv6地址。
  25. 如权利要求24所述的装置,其特征在于,所述发送单元还用于:
    向所述网络设备发送网络注册请求,所述网络注册请求中携带地址类型参数,所述地址类型参数用于指示网络设备为所述通信装置分配IPv6地址;
    所述接收单元获取网络设备为所述通信装置分配的第一IP地址,包括:
    获取所述网络设备返回的网络注册响应,所述网络注册响应中携带所述第一IP地址。
  26. 如权利要求23-25任一项所述的装置,其特征在于,所述接收单元还用于:
    在所述通信装置重新附着到网络的过程中,获取所述网络设备为所述通信装置分配的第三IP地址,所述第三IP地址与所述第一IP地址不同;
    所述发送单元还用于:将所述第三IP地址通知给所述第二终端设备,所述第三IP地址用于指示所述第二终端设备将存储的通信装置的所述第一IP地址替换为所述第三IP地址。
  27. 如权利要求23-25任一项所述的装置,其特征在于,所述装置还包括处理单元,所述处理单元用于:
    在确定所述第一IP地址的使用时长达到预设时长时,将所述的第一IP地址更新为第三IP地址,所述第三IP地址的主机地址和所述第一IP地址的主机地址不同,所述第三IP地址的网络地址和所述第一IP地址的网络地址相同;
    所述发送单元,还用于将所述第三IP地址通知给所述第二终端设备,所述第三IP地址用于指示所述第二终端设备将存储的所述通信装置的所述第一IP地址替换为所述第三IP地址。
  28. 如权利要求26或27所述的装置,其特征在于,将所述第三IP地址通知给所述第二终端设备时,所述发送单元用于:
    通过所述服务器将所述第三IP地址通知给所述第二终端设备;或者,
    根据存储的所述第二终端设备的第二IP地址,将所述第三IP地址直接发送给所述第二终端设备。
  29. 如权利要求23-28任一项所述的装置,其特征在于,所述通信装置关联N个第二终端设备,向所述服务器发送所述第一IP地址和所述通信装置的第一标识时,所述发送单元用于:
    直接将所述第一IP地址和所述通信装置的第一标识发送至所述服务器;或者,
    将所述第一IP地址、所述第一标识和所述通信装置的第一业务类型发送至所述服务器;或者;
    将所述第一IP地址、所述第一标识和所述至少一个第二终端设备的第二标识发送给发送至所述服务器。
  30. 一种服务器,其特征在于,包括发送单元和接收单元,
    所述接收单元用于:
    接收来自第一终端设备的所述第一终端设备的第一标识和所述第一终端设备的第一IP地址,其中,所述第一IP地址用于所述第一终端设备与所述第一终端设备关联的第二终端设备进行直接通信;
    所述发送单元用于:
    将所述第一IP地址通知给所述第二终端设备,其中,所述第一标识与所述第二终端设备的第二标识之间存在关联关系。
  31. 如权利要求30所述的服务器,其特征在于,所述第一终端设备关联N个第二终端设备,所述服务器还包括处理单元,所述处理单元用于:
    根据第一映射关系,确定与所述第一终端设备存在关联的N个第二终端设备,所述第 一映射关系中包含所述第一标识和N个第二标识之间的关联关系,所述N个第二标识分别用于标识所述N个第二终端设备;
    将所述第一IP地址通知给所述第二终端设备时,所述发送单元用于:
    将所述第一IP地址通知给所述N个第二终端设备。
  32. 如权利要求30所述的服务器,其特征在于,所述第一终端设备关联N个第二终端设备,接收来自第一终端设备的所述第一终端设备的第一标识和所述第一终端设备的第一IP地址时,所述接收单元还用于:
    接收来自所述第一终端设备的所述第一终端设备的第一业务类型;
    所述装置还包括处理单元,所述处理单元用于:
    根据所述第一标识和所述第一业务类型确定与所述第一终端设备执行所述第一业务类型的业务相关联的至少一个第二终端设备;
    将所述第一IP地址通知给所述第二终端设备时,所述发送单元用于:
    将所述第一IP地址通知给所述至少一个第二终端设备。
  33. 如权利要求30所述的服务器,其特征在于,所述第一终端设备关联N个第二终端设备,接收来自第一终端设备的所述第一终端设备的第一标识和所述第一终端设备的第一IP地址时,所述接收单元还用于:
    接收来自所述第一终端设备的所述第一终端设备的第一业务类型;
    将所述第一IP地址通知给所述第二终端设备时,所述发送单元用于:
    将所述第一IP地址通知给所述至少一个第二终端设备。
  34. 一种通信装置,其特征在于,包括存储器和一个或多个处理器;其中,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令;当所述计算机指令被所述处理器执行时,使得所述通信装置执行如权利要求12-18中任一项所述的方法,或执行权利要求19-22中任一项所述的方法。
  35. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在通信装置运行时,使得所述通信装置执行如权利要求12-18中任一项所述的方法,或执行权利要求19-22中任一项所述的方法。
  36. 一种计算机程序产品,其特征在于,当所述计算机程序产品在处理器上运行时,使得处理器执行如权利要求12-18中任一项所述的方法,或执行权利要求19-22中任一项所述的方法。
PCT/CN2021/132354 2020-12-16 2021-11-23 一种通信系统、方法及装置 WO2022127529A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP21905458.2A EP4246908A4 (en) 2020-12-16 2021-11-23 COMMUNICATION SYSTEM, METHOD AND APPARATUS

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011487834.1 2020-12-16
CN202011487834.1A CN114710470A (zh) 2020-12-16 2020-12-16 一种通信系统、方法及装置

Publications (1)

Publication Number Publication Date
WO2022127529A1 true WO2022127529A1 (zh) 2022-06-23

Family

ID=82058924

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/132354 WO2022127529A1 (zh) 2020-12-16 2021-11-23 一种通信系统、方法及装置

Country Status (3)

Country Link
EP (1) EP4246908A4 (zh)
CN (1) CN114710470A (zh)
WO (1) WO2022127529A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634389A (zh) * 2013-11-25 2014-03-12 北京奇虎科技有限公司 计算设备与移动设备之间的文件传输方法及装置、系统
US20160275728A1 (en) * 2013-11-11 2016-09-22 Byd Company Limited Information processing system, method for car, in-vehicle device and storage medium
CN107135499A (zh) * 2016-02-26 2017-09-05 华为技术有限公司 数据传输方法、网络设备以及终端
CN109245790A (zh) * 2018-11-21 2019-01-18 北京远特科技股份有限公司 车辆语音对讲方法及系统
CN110266572A (zh) * 2019-06-28 2019-09-20 泉州装备制造研究所 一种远程车辆控制方法和系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741920A (zh) * 2008-11-05 2010-06-16 海尔集团公司 一种小区网络内的智能终端通讯方法和系统
CN103634421A (zh) * 2013-11-26 2014-03-12 中国联合网络通信集团有限公司 地址分配方法及服务器
CN106506573B (zh) * 2015-09-07 2019-05-31 韩岗 智能家居控制方法和系统
CN110071984A (zh) * 2018-01-24 2019-07-30 中兴通讯股份有限公司 一种网络标识映射方法和系统以及终端、标识网关
CN110971583B (zh) * 2018-09-30 2021-04-09 华为技术有限公司 一种通信方法、装置及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160275728A1 (en) * 2013-11-11 2016-09-22 Byd Company Limited Information processing system, method for car, in-vehicle device and storage medium
CN103634389A (zh) * 2013-11-25 2014-03-12 北京奇虎科技有限公司 计算设备与移动设备之间的文件传输方法及装置、系统
CN107135499A (zh) * 2016-02-26 2017-09-05 华为技术有限公司 数据传输方法、网络设备以及终端
CN109245790A (zh) * 2018-11-21 2019-01-18 北京远特科技股份有限公司 车辆语音对讲方法及系统
CN110266572A (zh) * 2019-06-28 2019-09-20 泉州装备制造研究所 一种远程车辆控制方法和系统

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4246908A4 *

Also Published As

Publication number Publication date
CN114710470A (zh) 2022-07-05
EP4246908A1 (en) 2023-09-20
EP4246908A4 (en) 2024-04-10

Similar Documents

Publication Publication Date Title
US11438842B2 (en) Communication configuration method and device
CN108605250B (zh) QoS生成方法、设备以及系统
US8977276B2 (en) Method and apparatus for device initiated offloading to unlicensed bands
US20220417806A1 (en) Systems and Methods of Handing Over a Wireless Device
CN116017642A (zh) 通信处理方法及装置、存储介质
US20140237125A1 (en) Method, apparatus, and system for establishing device-to-device connection
US11706655B2 (en) Data transmission method and terminal
US20240049342A1 (en) Drx configuration method and apparatus, communication device and storage medium
WO2018205756A1 (zh) 一种数据包的分流方法、装置和计算机存储介质
CN111742564B (zh) 无线通信系统中支持多个sim的设备和方法
US8457030B2 (en) Mobile phone and method for receiving calls
US11122633B2 (en) Apparatus and method for controlling uplink transmission timing in internet of things environment
CN106031243A (zh) 通过设备对设备发现协议的小区发现和唤醒
WO2021109868A1 (zh) 一种通信方法与通信装置
WO2022127529A1 (zh) 一种通信系统、方法及装置
JP2013077928A (ja) 移動通信装置および無線通信方法
US20230300722A1 (en) Information transmission method and apparatus
WO2018045533A1 (zh) 一种业务切换方法及相关设备
KR100782342B1 (ko) 방송 메시지 필터링을 위한 장치 및 방법
US11044784B2 (en) Method and device for performing communication
CN110945920A (zh) 网络接入方法、装置、通信设备及存储介质
US20240057123A1 (en) Sidelink control method and apparatus, communication device, and storage medium
WO2022257878A1 (zh) 密钥材料的发送方法、获取方法、信息传输方法及设备
JP2015056763A (ja) 基地局装置、通信システム、通信制御方法、及び通信制御プログラム
CN117377024A (zh) 标识配置方法、装置、终端及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21905458

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021905458

Country of ref document: EP

Effective date: 20230614

NENP Non-entry into the national phase

Ref country code: DE