CN117528452A - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN117528452A
CN117528452A CN202210894273.XA CN202210894273A CN117528452A CN 117528452 A CN117528452 A CN 117528452A CN 202210894273 A CN202210894273 A CN 202210894273A CN 117528452 A CN117528452 A CN 117528452A
Authority
CN
China
Prior art keywords
communication
address
module
communication module
communication environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210894273.XA
Other languages
Chinese (zh)
Inventor
张大为
王普
马成林
李娟�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Co Wheels Technology Co Ltd
Original Assignee
Beijing Co Wheels Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Co Wheels Technology Co Ltd filed Critical Beijing Co Wheels Technology Co Ltd
Priority to CN202210894273.XA priority Critical patent/CN117528452A/en
Publication of CN117528452A publication Critical patent/CN117528452A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface

Landscapes

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

Abstract

The disclosure provides a communication method and device, and relates to the technical field of vehicles. The method comprises the following steps: receiving a network switching request for switching a communication environment of the vehicle from a first communication environment to a second communication environment; determining an address of the second communication module in response to the network switching request; the notification service module communicates in the second communication environment based on the address of the second communication module. The method and the device realize the whole vehicle network switching of the modules with undeployed gateway functions, so that the whole vehicle communication can achieve good noninductivity at the user level, and the fluency of the whole vehicle communication is improved.

Description

Communication method and device
Technical Field
The disclosure relates to the technical field of vehicles, and in particular relates to a communication method and device.
Background
With the popularization of the concept of internet of things and the increasing degree of intelligent automobiles, the rapidness and the noninductivity of the communication of the vehicles are valued. Because a plurality of service modules exist in the vehicle, when the external network communication environment of the vehicle needs to be switched, the existing switching scheme can only realize smooth network switching among modules with gateway functions deployed in the vehicle, and other modules without gateway functions deployed in the vehicle cannot switch networks without sense, so that the whole vehicle communication cannot reach good noninductivity in the user plane, and therefore, no good solution exists for smooth network switching of multi-module communication scenes in the vehicle.
Disclosure of Invention
The present disclosure provides a communication method, apparatus, electronic device, and storage medium.
According to a first aspect of the present disclosure, a communication method is provided. The method is applied to a terminal including a first communication module for communicating in a first communication environment, a second communication module for communicating in a second communication environment, and a service module for communicating with the first communication module and the second communication module, and the method includes: receiving a network switching request for switching a communication environment of the vehicle from a first communication environment to a second communication environment; determining an address of the second communication module in response to the network switching request; the notification service module communicates in the second communication environment based on the address of the second communication module.
In some embodiments, the first communication environment is a public network communication environment, the second communication environment is a private network communication environment, and before determining the address of the second communication module, the method further comprises: responding to the network switching request, and connecting the second communication module with network access equipment corresponding to the second communication environment; and when the second communication module is successfully connected with the network access equipment, determining the address of the second communication module relative to the second communication environment.
In some embodiments, determining the address of the second communication module relative to the second communication environment comprises: acquiring a first protocol address allocated to a second communication module by network access equipment; acquiring an address of network access equipment as a gateway address of a second communication module; and determining a domain name resolution server address of the second communication module based on the server address corresponding to the second network environment.
In some embodiments, notifying the service module to communicate in the second communication environment based on the address of the second communication module comprises: and sending a switching notice to the service module, wherein the switching notice carries a second protocol address of the second communication module, the second protocol address is an address corresponding to the communication of the second communication module in the terminal, and the switching notice is used for informing the service module to configure a gateway address and a domain name resolution server address of the service module to correspond to the second protocol address.
In some embodiments, the method further comprises: receiving a domain name resolution request sent by a service module; sending the domain name resolution request to a server corresponding to the second communication environment; receiving an analysis result, wherein the analysis result is obtained by a server performing domain name analysis according to a domain name analysis request; and sending the analysis result to the service module so that the service module can communicate based on the analysis result.
According to a second aspect of the present disclosure, there is provided a communication apparatus applied to a terminal including a first communication module for communicating in a first communication environment, a second communication module for communicating in a second communication environment, and a service module for communicating with the first communication module and the second communication module, and the apparatus includes: a receiving unit configured to receive a network switching request for switching a communication environment of a vehicle from a first communication environment to a second communication environment; a determining unit configured to determine an address of the second communication module in response to the network handover request; and a notification unit configured to notify the service module to perform communication in the second communication environment based on the address of the second communication module.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect described above.
According to a fourth aspect of the present disclosure there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of the foregoing first aspect.
According to a fifth aspect of the present disclosure there is provided a computer program product comprising a computer program which, when executed by a processor, implements a method as in the first aspect described above.
According to a sixth aspect of the present disclosure, there is provided a vehicle characterized by comprising the communication apparatus according to the foregoing second aspect or the electronic device of the foregoing third aspect.
The communication method provided by the embodiment of the disclosure is applied to a terminal, the terminal comprises a first communication module capable of communicating in a first communication environment, a second communication module capable of communicating in a second communication environment, and a service module capable of communicating with the first communication module and the second communication module, and the terminal can receive a network switching request, wherein the network switching request is used for switching the communication environment of a vehicle from the first communication environment to the second communication environment; determining an address of the second communication module in response to the network switching request; the notification service module communicates in the second communication environment based on the address of the second communication module so as to switch the communication environment of the terminal from the first communication environment to the second communication environment, and complete vehicle network switching of the module containing undeployed gateway function is realized, so that complete vehicle communication can reach good noninductivity in a user plane, and the fluency of complete vehicle communication is improved.
It should be understood that the description of this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic flow chart of a communication method according to an embodiment of the disclosure;
fig. 2 is a schematic flow chart of a communication method according to an embodiment of the disclosure;
fig. 3 is a flow chart of a communication method according to an embodiment of the disclosure;
fig. 4 is a flow chart of a communication method according to an embodiment of the disclosure;
FIG. 5 is a schematic diagram of a communication method according to an embodiment of the disclosure;
FIG. 6 is a schematic diagram of a communication method according to an embodiment of the disclosure;
fig. 7 is a schematic structural diagram of a communication device according to an embodiment of the disclosure;
fig. 8 is a schematic block diagram of an example electronic device 800 provided by an embodiment of the disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
A communication method, apparatus, electronic device, and storage medium of the embodiments of the present disclosure are described below with reference to the accompanying drawings.
With the popularization of the concept of internet of things and the increasing degree of automobile intelligentization, the rapidness and the noninductivity of vehicle communication are valued by users. Switching networks in time and without sense is critical to vehicle data transmission and user experience when encountering certain scenarios of poor communication signals.
In the related art, the existing switching scheme can only realize smooth network switching between modules with gateway functions deployed in a vehicle, but other service modules without gateway functions deployed in the vehicle cannot switch networks without sense, so that the whole vehicle communication cannot achieve good noninductivity and fluency in the user plane, and therefore, no good solution is available for network fluency switching of vehicle communication scenes.
In particular, since there are multiple ethernet nodes in the vehicle, the internal nodes of the vehicle can only connect to the cloud server through 5G by default, and when a specific scene is encountered, such as a 5G signal difference or no signal, related processes cannot be performed in the scenes such as factory production or after-sales inspection. There is therefore a need for a method of connecting in-vehicle data to a cloud server or a privately deployed server.
To this end, the present disclosure proposes a communication method for switching a communication environment of a vehicle from a first communication environment to a second communication environment by receiving a network switching request; determining an address of the second communication module in response to the network switching request; the notification service module communicates in a second communication environment based on the address of the second communication module, so that the whole vehicle network switching of the module containing the undeployed gateway function is realized, the whole vehicle communication can achieve good noninductivity in the user plane, and the whole vehicle communication fluency is improved.
A communication method, apparatus, electronic device, storage medium, and program product embodying the present disclosure are described in detail below with reference to the accompanying drawings.
Fig. 1 is a flow chart of a communication method according to an embodiment of the disclosure. The method is applied to a terminal comprising a first communication module for communicating in a first communication environment, a second communication module for communicating in a second communication environment, and a traffic module for communicating with the first communication module and the second communication module, such as a vehicle, in particular to a communication module in the vehicle for communicating with an external network, such as a system on a chip supporting a 5G communication function, and/or a system on a chip supporting a WIFI communication function. As shown in fig. 1, the method comprises the steps of:
step 101, a network switching request is received, the network switching request being used to switch a communication environment of a vehicle from a first communication environment to a second communication environment.
In one implementation of the present disclosure, network handoffs may be triggered, but are not limited to, manually or automatically. Specifically, the vehicle can respond to the operation of a user on a large screen of the vehicle system to execute switching, and can also automatically send out a switching instruction when the signal strength is lower than a certain threshold value by detecting the network signal strength, so that the vehicle responds to the automatically sent instruction to execute switching.
It is understood that the first communication module and the second communication module are modules in the vehicle that are capable of communicating with an external network, and in the vehicle communication system, it is understood that a gateway. When network switching is required, the connection between the first server and the first communication module in the terminal is switched with the connection between the second server and the second communication module, and specifically, the connection between the vehicle communication system and the cloud server and the connection between the privately deployed server are switched with each other.
The communication module may be a System on Chip (SoC) in a vehicle, or referred to as a System on Chip, which is an integrated circuit with a dedicated target, including a complete System and having the entire contents of embedded software.
Step 102, determining an address of the second communication module in response to the network switching request.
In one embodiment of the present disclosure, when network switching is required, the connection between the first server and the first communication module is switched to the connection between the second server and the second communication module.
It is understood that the first communication module and the second communication module may be the same communication module having a 5G communication function and a WIFI communication function in the vehicle, or may be different communication modules having a 5G communication function and a WIFI communication function, respectively.
And step 103, the notification service module communicates in the second communication environment based on the address of the second communication module.
In one embodiment of the disclosure, after the connection between the first server and the first communication module is switched to the connection between the second server and the second communication module, the second communication module may notify the service module that the network switching connection is completed, so that the service module performs corresponding switching, thereby accessing the designated domain name through the switched connection, and performing data transmission through the switched connection.
The service module is a node in the vehicle-end ethernet network, and may be multiple or one, which is not limited in the embodiment of the present disclosure.
Thus, according to an embodiment of the present disclosure, by receiving a network switching request for switching a communication environment of a vehicle from a first communication environment to a second communication environment; determining an address of the second communication module in response to the network switching request; the notification service module communicates in a second communication environment based on the address of the second communication module, so that the whole vehicle network switching of the module containing the undeployed gateway function is realized, the whole vehicle communication can achieve good noninductivity in the user plane, and the whole vehicle communication fluency is improved.
Fig. 2 is a flow chart of a communication method according to an embodiment of the disclosure. The method is applied to the process of switching the public network environment into the privately owned network environment, and particularly, the process of switching the 5G network into the WIFI network. This embodiment is based on the embodiment shown in fig. 1, and steps 102 and 103 are specifically explained. Step 102 includes step 201 and step 202, and step 103 includes step 203. The method comprises the following steps.
In step 201, in response to the network switching request, the second communication module is connected to the network access device corresponding to the second communication environment.
In some embodiments of the present disclosure, the first communication module is a 5G communication module, i.e., 5g_soc, and the second communication module is a WIFI communication module, i.e., wifi_soc. Wherein, 5G: fifth generation mobile communication technology 5th Generation Mobile Communication Technology, abbreviated as 5G. WIFI generally refers to Wi-Fi, which is a wireless local area network technology created in the IEEE 802.11 standard. The first communication environment is a public network communication environment, and the second communication environment is a private network communication environment.
Likewise, the network switch request may be manually triggered by the user or may be automatically performed. After that, the wifi_soc starts to connect to the hotspot through a WIFI station (wifi_sta).
In the present disclosure, a WIFI hotspot (WIFI access point, WIFI ap) is a central node of a wireless network as a creator of the network.
Step 202, when the second communication module is successfully connected to the network access device, determining an address of the second communication module relative to the second communication environment.
In some embodiments of the present disclosure, the step specifically includes: acquiring a first protocol address distributed to a second communication module by network access equipment (such as a WIFI hot spot); acquiring an address of network access equipment as a gateway address of a second communication module; and determining a domain name resolution server address of the second communication module based on the server address corresponding to the second network environment.
Specifically, when the hotspot connection is successful, ip is allocated through a dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP), i.e. wifi_ap allocates ip to wifi_soc, for example 10.1.1.88, where for wifi_soc, the ip can be understood as external ip. The address of the network access device (e.g., 10.1.1.1) and the address of the domain name resolution server (Domain Name Server, dns) within the private environment (e.g., 10.1.1.2) may be obtained while the allocated ip is obtained, the wifi_soc may configure the dns server on the wifi_soc, i.e., its gateway (gw) address is configured to be 10.1.1.1, and its dns address is configured to be 10.1.1.2, based on the address of the network access device and dns address in the private environment.
Step 203, a switching notification is sent to the service module, where the switching notification carries a second protocol address of the second communication module, where the second protocol address is an address corresponding to the second communication module in the terminal, and the switching notification is used to notify the service module to configure a gateway address and a domain name resolution server address of the service module to correspond to the second protocol address.
In some embodiments of the present disclosure, the step specifically includes: the notification service module configures a gateway address and a domain name resolution server address of the service module based on a second protocol address of the second communication module, wherein the second protocol address is an address corresponding to the second communication module for communication in the terminal.
Specifically, the service modules are notified of successful WIFI connection, and each service module starts to switch its own gateway address, configure a routing policy, and simultaneously direct the dns server address to the wifi_soc (192.168.1.3). Specifically, after the wifi_soc and the privately owned environment are successfully connected, the gateway is switched to the wifi_soc, at this time, each service module points to the address of the wifi_soc, and at this time, the address of the wifi_soc is an intra-pair address, for example, 192.168.1.3. In addition, if the wifi_soc and the 5g_soc are one communication module, after the switching, the external ip of the communication module is changed, but the internal ip is unchanged. At this time, the WIFI switching is completed, and each service module can perform data transmission in a private environment.
In summary, according to the embodiment of the present disclosure, by connecting the second communication module with the network access device corresponding to the second communication environment in response to the network switching request, when the second communication module is successfully connected with the network access device, the address of the second communication module relative to the second communication environment is determined, a switching notification is sent to the service module, where the switching notification carries a second protocol address of the second communication module, and the second protocol address is an address corresponding to the second communication module in the terminal, and the switching notification is used to notify the service module to configure the gateway address and the domain name resolution server address of the service module to correspond to the second protocol address, so that gateway switching from 5G network to WIFI network is realized, and the communication connection requirement of the server in the specific environment is met in the specific scenario. Meanwhile, the switching process realizes access to the cloud server and the privately-allocated server without modifying the domain name and pre-configuring the ip, is smooth for users, and avoids the blocking caused by switching networks.
Fig. 3 is a flow chart of a communication method according to an embodiment of the disclosure. The method is applied to the communication process of the server corresponding to the second communication environment by the service module. The method comprises the following steps.
Step 301, receiving a domain name resolution request sent by a service module.
In some embodiments of the present disclosure, the step specifically includes: and receiving a domain name resolution request sent by the service module. When the vehicle wants to access the domain name mydata.
And step 302, sending the domain name resolution request to a server corresponding to the second communication environment.
In some embodiments of the present disclosure, the domain name resolution request is sent to the second server, and the wifi_soc forwards the request to the dns server within the private environment after receiving the request.
Step 303, receiving an analysis result, wherein the analysis result is obtained by the server performing domain name analysis according to the domain name analysis request.
In some embodiments of the present disclosure, the resolution result is received, where the resolution result is a result obtained by the second server performing domain name resolution according to the domain name resolution request. The dns server in the private environment returns the analysis result to the vehicle-end SoC according to the configured configuration items, such as mydata. Alldata. Com: 10.1.1.3.
And step 304, the analysis result is sent to the service module, so that the service module communicates based on the analysis result.
In some embodiments of the present disclosure, the parsing result is sent to the business module to cause the business module to communicate based on the parsing result. Specifically, the dns server in the private environment returns the analysis result to the vehicle-side SoC according to the configured configuration item, such as mydata. The public network address is resolved into the private network address, and the switching from the access cloud server to the access privately deployed server is realized under the condition that the domain name is not modified and the ip is pre-configured. The service module can access the resolved domain name and perform data transmission through WIFI connection.
In summary, by receiving the domain name resolution request sent by the service module, sending the domain name resolution request to the server corresponding to the second communication environment, receiving the resolution result, where the resolution result is a result obtained by the server performing domain name resolution according to the domain name resolution request, and sending the resolution result to the service module, so that the service module performs communication based on the resolution result, and complete vehicle network switching including modules without gateway function is implemented, so that complete vehicle communication can achieve good noninductivity at the user plane, and complete vehicle communication smoothness is improved.
Fig. 4 is a flow chart of a communication method according to an embodiment of the disclosure. The method is applied to the process of switching the privately-owned network environment into the public network environment, and particularly, the process of switching the WIFI network into the 5G network. Based on the above embodiment, in this scenario, the first communication module is a 5G communication module, and the second communication module is a WIFI communication module. The method comprises the following steps.
In step 401, in response to the network switching request, the connection between the first communication module and the network access device corresponding to the first server is disconnected.
In one embodiment of the present disclosure, when a WIFI network needs to be switched to a 5G network in response to a network switch request, the wifi_soc disconnects from a network access device (e.g., a WIFI hotspot).
Step 402, a switching notification is sent to the service module, where the switching notification is used to instruct the service module to perform gateway switching.
In one embodiment of the present disclosure, the steps specifically include: the notification service module configures a gateway address of the service module based on a protocol address of the second communication module, wherein the second protocol address is an address corresponding to the second communication module for communication in the terminal; and notifying the service module to configure a domain name resolution server address of the service module based on the address of the second server.
Specifically, the service modules are notified to switch back to 5G, each service module starts to switch its own gateway address, and the configured routing policy points to 5G. For example, the service module may configure its gateway address as the protocol address 192.168.1.5 of the second communication module and its dns address as the public network address 8.8.8.8.
In step 403, communication between the service module and the second server is performed.
In one embodiment of the present disclosure, the step comprises: receiving a domain name resolution request sent by a service module; sending a domain name resolution request to a second server; receiving an analysis result, wherein the analysis result is obtained by the second server performing domain name analysis according to the domain name analysis request; and sending the analysis result to the service module so that the service module can communicate based on the analysis result.
Specifically, when the vehicle wants to access the domain name mydata.alldata.com, the service module sends a domain name resolution request, the request is forwarded to the public network server through the 5G_SoC, the public network server receives the domain name resolution request and resolves the domain name, and the resolved domain name is returned to the service module, so that the service module accesses the resolved domain name, and data transmission is performed through the switched network.
In summary, according to the embodiments of the present disclosure, by disconnecting the first communication module from the network access device corresponding to the first server in response to the network switching request, a switching notification is sent to the service module, where the switching notification is used to instruct the service module to perform gateway switching, and perform communication between the service module and the second server, so that gateway switching from WIFI network switching to 5G network is implemented, and a communication connection requirement for a server in a specific environment is satisfied in a specific scenario. Meanwhile, the switching process realizes access to the cloud server and the privately-allocated server without modifying the domain name and pre-configuring the ip, is smooth for users, and avoids the blocking caused by switching networks.
For the embodiments shown in fig. 2 and 4 described above, the present disclosure provides a handoff and communication schematic. Fig. 5 shows a communication schematic of WIFI switching back to 5G, which corresponds to the embodiment shown in fig. 4, and fig. 6 shows a communication schematic of 5G switching to WIFI, which corresponds to the embodiment shown in fig. 2. The above methods are merely examples of the present disclosure and are not to be construed as limiting the present disclosure.
Corresponding to the communication method, the disclosure also provides a communication device. Fig. 7 is a schematic structural diagram of a communication device 700 according to an embodiment of the disclosure. The apparatus is applied to a terminal including a first communication module for communicating in a first communication environment, a second communication module for communicating in a second communication environment, and a service module for communicating with the first communication module and the second communication module, as shown in fig. 7, including: a receiving unit 710 for receiving a network switching request for switching a communication environment of the vehicle from a first communication environment to a second communication environment; a determining unit 720, configured to determine an address of the second communication module in response to the network handover request; and a notification unit 730 for notifying the service module to communicate in the second communication environment based on the address of the second communication module.
In some embodiments, the apparatus 700 further comprises: the connection unit is used for connecting the second communication module with network access equipment corresponding to the second communication environment in response to a network switching request before determining the address of the second communication module, wherein the first communication environment is a public network communication environment and the second communication environment is a private network communication environment; and when the second communication module is successfully connected with the network access equipment, determining the address of the second communication module relative to the second communication environment.
In some embodiments, the determining unit 720 is specifically configured to: acquiring a first protocol address allocated to a second communication module by network access equipment; acquiring an address of network access equipment as a gateway address of a second communication module; and determining a domain name resolution server address of the second communication module based on the server address corresponding to the second network environment.
In some embodiments, the notification unit 730 is specifically configured to: and sending a switching notice to the service module, wherein the switching notice carries a second protocol address of the second communication module, the second protocol address is an address corresponding to the communication of the second communication module in the terminal, and the switching notice is used for informing the service module to configure a gateway address and a domain name resolution server address of the service module to correspond to the second protocol address.
In some embodiments, the apparatus 700 further comprises: the analyzing unit is used for receiving the domain name analyzing request sent by the service module; sending the domain name resolution request to a server corresponding to the second communication environment; receiving an analysis result, wherein the analysis result is obtained by a server performing domain name analysis according to a domain name analysis request; and sending the analysis result to the service module so that the service module can communicate based on the analysis result.
In summary, according to the embodiment of the disclosure, the device realizes the whole vehicle network switching of the module including the undeployed gateway function through the receiving unit, the determining unit and the notifying unit, so that the whole vehicle communication can achieve good noninductivity at the user plane, and the fluency of the whole vehicle communication is improved.
It should be noted that, since the embodiment of the apparatus of the present disclosure corresponds to the above embodiment of the method, the foregoing explanation of the embodiment of the method is also applicable to the apparatus of the present embodiment, and the principles are the same, and details not disclosed in the embodiment of the apparatus may refer to the above embodiment of the method, which is not described in detail in the present disclosure.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 8 illustrates a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 802 or a computer program loaded from a storage unit 808 into a RAM (Random Access Memory ) 803. In the RAM803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM803 are connected to each other by a bus 804. An I/O (Input/Output) interface 805 is also connected to bus 804.
Various components in device 800 are connected to I/O interface 805, including: an input unit 806 such as a keyboard, mouse, etc.; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, or the like. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 801 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 801 include, but are not limited to, a CPU (Central Processing Unit ), GPU (Graphic Processing Units, graphics processing unit), various dedicated AI (Artificial Intelligence ) computing chips, various computing units running machine learning model algorithms, DSPs (Digital Signal Processor, digital signal processors), and any suitable processors, controllers, microcontrollers, and the like. The computing unit 801 performs the respective methods and processes described above, such as a communication method. For example, in some embodiments, the communication method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 800 via ROM 802 and/or communication unit 809. When a computer program is loaded into RAM803 and executed by computing unit 801, one or more steps of the methods described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the aforementioned communication methods by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit System, FPGA (Field Programmable Gate Array ), ASIC (Application-Specific Integrated Circuit, application-specific integrated circuit), ASSP (Application Specific Standard Product, special-purpose standard product), SOC (System On Chip ), CPLD (Complex Programmable Logic Device, complex programmable logic device), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory, erasable programmable read-Only Memory) or flash Memory, an optical fiber, a CD-ROM (Compact Disc Read-Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display ) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network ), WAN (Wide Area Network, wide area network), internet and blockchain networks.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service ("Virtual Private Server" or simply "VPS") are overcome. The server may also be a server of a distributed system or a server that incorporates a blockchain.
It should be noted that, artificial intelligence is a subject of studying a certain thought process and intelligent behavior (such as learning, reasoning, thinking, planning, etc.) of a computer to simulate a person, and has a technology at both hardware and software level. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, a machine learning/deep learning technology, a big data processing technology, a knowledge graph technology and the like.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein. The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (10)

1. A communication method, characterized in that the method is applied to a terminal comprising a first communication module for communicating in a first communication environment, a second communication module for communicating in a second communication environment, and a traffic module for communicating with the first communication module and the second communication module, and the method comprises:
receiving a network switching request for switching a communication environment of the vehicle from the first communication environment to the second communication environment;
determining an address of the second communication module in response to the network switching request;
and notifying the service module to communicate in the second communication environment based on the address of the second communication module.
2. The method of claim 1, wherein the first communication environment is a public network communication environment and the second communication environment is a private network communication environment, and wherein prior to determining the address of the second communication module, the method further comprises:
responding to the network switching request, and connecting the second communication module with network access equipment corresponding to the second communication environment;
and when the second communication module is successfully connected with the network access equipment, determining the address of the second communication module relative to the second communication environment.
3. The method of claim 2, wherein the determining the address of the second communication module relative to the second communication environment comprises:
acquiring a first protocol address allocated to the second communication module by the network access equipment;
acquiring an address of the network access device as a gateway address of the second communication module; and
and determining the domain name resolution server address of the second communication module based on the server address corresponding to the second network environment.
4. The method of claim 1, wherein the notifying the service module to communicate in the second communication environment based on the address of the second communication module comprises:
and sending a switching notification to the service module, wherein the switching notification carries a second protocol address of the second communication module, the second protocol address is an address corresponding to the second communication module for communication in the terminal, and the switching notification is used for notifying the service module to configure a gateway address and a domain name resolution server address of the service module to correspond to the second protocol address.
5. The method according to any one of claims 1 to 4, further comprising:
receiving a domain name resolution request sent by the service module;
the domain name resolution request is sent to a server corresponding to the second communication environment;
receiving an analysis result, wherein the analysis result is obtained by the server performing domain name analysis according to the domain name analysis request;
and sending the analysis result to the service module so that the service module can communicate based on the analysis result.
6. A communication device, the device being applied to a terminal, the terminal comprising a first communication module for communicating in a first communication environment, a second communication module for communicating in a second communication environment, and a traffic module for communicating with the first communication module and the second communication module, and the device comprising:
a receiving unit configured to receive a network switching request for switching a communication environment of the vehicle from the first communication environment to the second communication environment;
a determining unit, configured to determine an address of the second communication module in response to the network handover request; and
and the notification unit is used for notifying the service module to communicate in the second communication environment based on the address of the second communication module.
7. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
8. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-5.
9. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-5.
10. A vehicle characterized by comprising the communication device according to claim 6 or the electronic apparatus according to claim 7.
CN202210894273.XA 2022-07-27 2022-07-27 Communication method and device Pending CN117528452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210894273.XA CN117528452A (en) 2022-07-27 2022-07-27 Communication method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210894273.XA CN117528452A (en) 2022-07-27 2022-07-27 Communication method and device

Publications (1)

Publication Number Publication Date
CN117528452A true CN117528452A (en) 2024-02-06

Family

ID=89764958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210894273.XA Pending CN117528452A (en) 2022-07-27 2022-07-27 Communication method and device

Country Status (1)

Country Link
CN (1) CN117528452A (en)

Similar Documents

Publication Publication Date Title
US11432366B2 (en) Session management method, device, and system
KR102434610B1 (en) Handover method, device and system
US12004264B2 (en) Session management method, device, and system
CN115211225B (en) Satellite link information determining method and device
CN104869043B (en) A kind of method and terminal for establishing VPN connection
CN107182098B (en) Method and equipment for realizing switching of user equipment between wireless access points
CN110266826B (en) Address management method, equipment and system
US20230413142A1 (en) Method and apparatus for determining satellite backhaul information
WO2020015500A1 (en) Processing method, device and apparatus for mesh network, and storage medium
EP3090351A2 (en) Mobility in enterprise networks
CN107547341B (en) Access method and device of virtual extensible local area network VXLAN
CN117528452A (en) Communication method and device
CN112714420B (en) Network access method and device of wifi hotspot providing equipment and electronic equipment
CN114025400B (en) Session state holding method and session state holding device
CN113726881B (en) Communication connection establishment method, related device and computer readable storage medium
WO2022160984A1 (en) Method and apparatus for searching for cell
CN113612643B (en) Network configuration method, device and equipment of cloud mobile phone and storage medium
CN115225634A (en) Data forwarding method and device under virtual network and computer program product
CN115412993A (en) Relay discovery method, system, device and storage medium
CN112153754B (en) Point-to-point connection method and device, electronic equipment and storage medium
CN111193805B (en) Resource discovery method and device
CN114125963A (en) Radio Resource Control (RRC) connection reestablishment method and device
CN112003731B (en) Configuration method and device
CN116418863B (en) Communication method and device based on socks5 transparent proxy
WO2024017248A1 (en) Response method and apparatus, device and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination