Device connection method, electronic device, and storage medium
By connecting an Ethernet gateway and multiple Ethernet devices in the vehicle's Ethernet network, the mobile terminal connects to the hotspot and switches to wireless access point mode. After applying for an IP address, it can connect to any Ethernet device, solving the problem of device connectivity limitations and realizing full vehicle interconnection and rich data interaction.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING CO LTD
- Filing Date
- 2022-11-30
- Publication Date
- 2026-04-14
AI Technical Summary
Vehicle Ethernet has significant limitations in device connectivity; mobile terminals can only connect to a fixed Ethernet device via Bluetooth, making it impossible to achieve flexible and diverse device interconnection.
By connecting to the vehicle's Ethernet network via an Ethernet gateway and multiple Ethernet devices, the mobile terminal accesses the hotspot of the Ethernet device, switches to wireless access point mode, requests an IP address from the Ethernet gateway, and enables connection to any device in the Ethernet segment.
It enables flexible and diverse connection methods between mobile terminals and in-vehicle Ethernet devices, and even full vehicle interconnection, enriching data interaction formats and increasing the scalability of vehicle interconnection.
Smart Images

Figure CN116017639B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle networking technology, and in particular to a device connection method, electronic device and storage medium. Background Technology
[0002] The Internet of Vehicles (IoV) refers to a dynamic mobile communication system that enables interaction between vehicles, roads, people, and sensors, facilitating communication between vehicles and the public network. It achieves information sharing through interconnection between vehicles, people, and roads, collects information on vehicles, roads, and the environment, processes, calculates, shares, and securely publishes this multi-source information on an information network platform, effectively guides and monitors vehicles according to different functional needs, and provides professional multimedia and mobile internet application services.
[0003] In vehicle networking technology, in-vehicle Ethernet is commonly used. In-vehicle Ethernet is a new type of local area network technology that uses Ethernet to connect electronic units in a vehicle. Unlike traditional Ethernet, which uses four pairs of unshielded twisted-pair cables, in-vehicle Ethernet can achieve transmission rates of 100 Mbit / s or even 1 Gbit / s on a single pair of unshielded twisted-pair cables. At the same time, it meets the automotive industry's requirements for high reliability, low electromagnetic radiation, low power consumption, bandwidth allocation, low latency, and real-time synchronization.
[0004] Currently, in automotive Ethernet, mobile terminals outside the vehicle can only connect to a fixed Ethernet device within the vehicle via Bluetooth, thus limiting device connectivity. Summary of the Invention
[0005] In view of the above problems, this application proposes a device connection method, electronic device and storage medium to solve the problem of the great limitations of device connection in vehicle Ethernet.
[0006] According to one aspect of an embodiment of this application, a device connection method is provided, wherein an Ethernet gateway and multiple Ethernet devices are accessed in an in-vehicle Ethernet network, the multiple Ethernet devices being located in the same Ethernet segment; the method is applied to a first Ethernet device that has enabled a hotspot, the method comprising:
[0007] In response to a hotspot connection request initiated by a mobile terminal, the mobile terminal is connected to the hotspot;
[0008] In response to the Ethernet device interconnection request initiated by the mobile terminal based on the hotspot, the hotspot mode is switched to wireless access point mode so that the mobile terminal can enter the Ethernet segment;
[0009] The mobile terminal initiates an address request to the Ethernet gateway, the address request being used to request the Ethernet gateway to allocate an IP address in the Ethernet segment to the mobile terminal; so that the mobile terminal, in response to obtaining the IP address, initiates a connection request to the second Ethernet device.
[0010] According to another aspect of the embodiments of this application, a device connection method is provided, in which an Ethernet gateway and multiple Ethernet devices are accessed in an in-vehicle Ethernet network, the multiple Ethernet devices being located in the same Ethernet segment; the method is applied to a mobile terminal, and the method includes:
[0011] In response to the hotspot of the first Ethernet device that has enabled a hotspot, the mobile terminal initiates an Ethernet device interconnection request to the first Ethernet device based on the hotspot; so that the first Ethernet device, in response to the Ethernet device interconnection request, switches the hotspot mode to wireless access point mode, so that the mobile terminal enters the Ethernet segment and initiates an address request to the Ethernet gateway, the address request being used to request the Ethernet gateway to allocate an IP address in the Ethernet segment for the mobile terminal.
[0012] In response to obtaining the IP address, a connection request is initiated to the second Ethernet device.
[0013] Optionally, initiating a connection request to the second Ethernet device includes: searching for Ethernet devices in the Ethernet segment; in response to selecting the second Ethernet device from the searched Ethernet devices, initiating a request to the second Ethernet device to obtain the interconnection protocol; and in response to obtaining the interconnection protocol of the second Ethernet device, initiating a connection request to the second Ethernet device.
[0014] Optionally, the search for Ethernet devices in the Ethernet segment includes: initiating a segment broadcast in the Ethernet segment; and receiving information about the Ethernet devices returned by the Ethernet devices in the Ethernet segment in response to the segment broadcast.
[0015] According to another aspect of the embodiments of this application, a device connection method is provided, in which an Ethernet gateway and multiple Ethernet devices are accessed in an in-vehicle Ethernet network, the multiple Ethernet devices being located in the same Ethernet segment; the method is applied to a second Ethernet device, the method comprising:
[0016] In response to a connection request initiated by a mobile terminal, a network connection is established with the mobile terminal;
[0017] The connection request is initiated by the mobile terminal in response to obtaining the IP address in the Ethernet segment allocated by the Ethernet gateway, and sent to the second Ethernet device.
[0018] The IP address is allocated by the Ethernet gateway in response to an address request initiated by the first Ethernet device that has enabled the hotspot. The address request is used to request the Ethernet gateway to allocate an IP address in the Ethernet segment to the mobile terminal.
[0019] The address request is initiated by the first Ethernet device in response to a hotspot connection request initiated by the mobile terminal, connecting the mobile terminal to the hotspot, and in response to an Ethernet device interconnection request initiated by the mobile terminal based on the hotspot, switching the hotspot mode to wireless access point mode so that the mobile terminal can enter the Ethernet segment.
[0020] Optionally, establishing a network connection with the mobile terminal includes: determining whether the maximum number of connections of the second Ethernet device has been reached, the maximum number of connections being the total number of screens on the second Ethernet device; and establishing a network connection with the mobile terminal in response to the fact that the maximum number of connections of the second Ethernet device has not been reached.
[0021] Optionally, establishing a network connection with the mobile terminal includes: in response to a connection request initiated by another Ethernet device, first establishing a network connection with the other Ethernet device, and then establishing a network connection with the mobile terminal.
[0022] According to another aspect of the embodiments of this application, a device connection method is provided, in which an Ethernet gateway and multiple Ethernet devices are accessed in an in-vehicle Ethernet network, the multiple Ethernet devices being located in the same Ethernet segment; the method is applied to the Ethernet gateway, and the method includes:
[0023] In response to an address request initiated by a first Ethernet device that has enabled a hotspot, an IP address in the Ethernet segment is allocated to the mobile terminal; so that the mobile terminal, upon obtaining the IP address, initiates a connection request to a second Ethernet device.
[0024] The address request is initiated by the first Ethernet device in response to a hotspot connection request initiated by the mobile terminal, connecting the mobile terminal to the hotspot, and in response to an Ethernet device interconnection request initiated by the mobile terminal based on the hotspot, switching the hotspot mode to wireless access point mode so that the mobile terminal can enter the Ethernet segment.
[0025] Optionally, allocating an IP address in the Ethernet segment to the mobile terminal includes: obtaining a reserved IP address for the mobile terminal in the Ethernet segment; and allocating an IP address in the Ethernet segment to the mobile terminal from the reserved IP address.
[0026] According to another aspect of the embodiments of this application, an electronic device is provided, comprising: one or more processors; and one or more computer-readable storage media having instructions stored thereon; wherein, when the instructions are executed by the one or more processors, the processors cause the processors to perform the device connection method as described in any of the preceding claims.
[0027] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, causes the processor to perform the device connection method as described in any of the preceding claims.
[0028] In this embodiment, the vehicle-mounted Ethernet network includes an Ethernet gateway and multiple Ethernet devices located in the same Ethernet segment. A first Ethernet device with a hotspot enabled responds to a hotspot connection request initiated by a mobile terminal, connecting the mobile terminal to the hotspot. In response to an Ethernet device interconnection request initiated by the mobile terminal based on the hotspot, the device switches its hotspot mode to wireless access point mode, allowing the mobile terminal to enter the Ethernet segment. It then sends an address request to the Ethernet gateway, requesting the gateway to allocate an IP (Internet Protocol) address from the Ethernet segment to the mobile terminal. Upon obtaining the IP address, the mobile terminal initiates a connection request to a second Ethernet device.
[0029] Therefore, in this embodiment, the mobile terminal outside the vehicle Ethernet connects to the hotspot of the first Ethernet device. The first Ethernet device controls the mobile terminal to enter the Ethernet segment where the Ethernet device is located and applies for an IP address in the Ethernet segment for the mobile terminal. After the mobile terminal enters the Ethernet segment where the Ethernet device is located and obtains the IP address in the Ethernet segment, it can establish a connection with any second Ethernet device in the Ethernet segment based on the IP address. This enables more flexible and diverse device connection methods, and even achieves full vehicle interconnection. Furthermore, the connection method within the same Ethernet segment allows for richer data interaction between the mobile terminal and the Ethernet device. Attached Figure Description
[0030] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some drawings of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0031] Figure 1 This is a vehicle network structure diagram according to an embodiment of this application.
[0032] Figure 2 This is a schematic diagram of a network connection according to an embodiment of this application.
[0033] Figure 3 This is a flowchart illustrating the steps of a device connection method according to an embodiment of this application.
[0034] Figure 4 This is a flowchart illustrating another device connection method according to an embodiment of this application.
[0035] Figure 5 This is a flowchart illustrating the steps of another device connection method according to an embodiment of this application.
[0036] Figure 6 This is a flowchart illustrating the steps of another device connection method according to an embodiment of this application.
[0037] Figure 7 This is an overall flowchart of a device connection method according to an embodiment of this application.
[0038] Figure 8 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0039] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments of this application. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0040] Reference Figure 1 This diagram illustrates a vehicle network structure according to an embodiment of this application. Figure 1As shown, in the vehicle network structure, unified control is achieved through a central gateway, which connects to the on-board diagnostic (OBD) port. The vehicle is divided into several domains, including the Infotainment Domain, Powertrain / Transmission Domain, Body Domain, and Safety / Chassis Domain. The central gateway connects to relevant devices in each domain. The Infotainment Domain includes the navigation system (Nav / IVI), radio, and specifically amplifier control, front display, and rear display. The Powertrain / Transmission Domain includes multiple Electronic Control Units (ECUs). The Body Domain includes the Body Controller (BCU) and multiple ECUs. The Safety / Chassis Domain includes multiple ECUs.
[0041] Reference Figure 2 The diagram illustrates a network connection according to an embodiment of this application. Figure 2 As shown, the vehicle Ethernet network may include vehicle sub-network 1, vehicle sub-network 2, etc. Each vehicle sub-network is equipped with multiple electronic control units (ECUs), a DoIP-based diagnostic edge node gateway (which acts as the main gateway), a DoIP-based diagnostic gateway, network nodes, and DoIP-based diagnostic nodes. The external Ethernet network is equipped with external testing equipment, network nodes, etc., and the external testing equipment and network nodes are connected to the DoIP-based diagnostic edge node gateway.
[0042] In the embodiments of this application, the vehicle supports in-vehicle Ethernet, which includes an Ethernet gateway and multiple Ethernet devices located on the same Ethernet segment. Each Ethernet device supports discovery. Mobile terminals outside the in-vehicle Ethernet can establish connections with any one or more Ethernet devices through the device connection methods in the embodiments of this application, thereby accessing the in-vehicle Ethernet and even achieving full vehicle interconnection.
[0043] Ethernet devices can be non-microcontroller operating systems that connect to the vehicle's Ethernet network. For example, vehicle Ethernet devices can be ECUs, vehicle infotainment systems, and so on.
[0044] A network segment generally refers to the portion of a computer network that uses the same physical layer devices (transmission media, repeaters, hubs, etc.) that can communicate directly. Different network segments simply use different types of IP addresses or network addresses. For example, different types of IP addresses are not on the same network segment; a Class A IP address (58.61.70.2) and a Class B IP address (127.56.21.11) are not on the same network segment. Similarly, the same type of IP address with different network addresses can also be on different network segments; for example, a Class C IP address (192.168.1.1) and a Class C IP address (192.168.2.1) are not on the same network segment. This depends primarily on their network addresses. Computers on different network segments are connected via switches or routers.
[0045] Vehicle Ethernet can be distributed across multiple Ethernet segments using multiple network cards. Once started, an Ethernet segment is set as the Ethernet segment for vehicle interconnection, and the interconnection information of Ethernet devices flows through this Ethernet segment.
[0046] Mobile terminals can be multimedia entertainment devices such as mobile phones, tablets, laptops, and wearable devices.
[0047] The device connection method of this application will be described in detail below.
[0048] Reference Figure 3 The diagram illustrates a flowchart of a device connection method according to an embodiment of this application. Figure 3 The device connection method shown is applied to the first Ethernet device, which can be any Ethernet device with an enabled hotspot connected in the vehicle Ethernet network.
[0049] like Figure 3 As shown, the device connection method may include the following steps:
[0050] Step 301: The first Ethernet device responds to the hotspot connection request initiated by the mobile terminal and connects the mobile terminal to the hotspot.
[0051] Users can search for available WLANs (Wireless Local Area Networks) using their mobile terminals. After finding a hotspot of the first Ethernet device, the mobile terminal can proactively initiate a hotspot connection request to the first Ethernet device, or it can initiate a hotspot connection request to the first Ethernet device in response to a hotspot connection command triggered by the user (such as when the user selects to connect to the hotspot of the first Ethernet device).
[0052] For example, the hotspot connection request may include, but is not limited to, at least one of the following information: the identifier of the mobile terminal, the request type (hotspot connection request), the hotspot password of the first Ethernet device, etc.
[0053] In response to the hotspot connection request initiated by the mobile terminal, the first Ethernet device parses the request and learns that the mobile terminal needs to connect to the hotspot. Therefore, after determining that the mobile terminal is allowed to access the hotspot, the first Ethernet device connects the mobile terminal to the hotspot of the first Ethernet device, so that the mobile terminal can use the network provided by the hotspot of the first Ethernet device.
[0054] Step 302: In response to the Ethernet device interconnection request initiated by the mobile terminal based on the hotspot, the first Ethernet device switches the hotspot mode to the wireless access point mode.
[0055] After connecting to the hotspot of the first Ethernet device, the mobile terminal can proactively initiate an Ethernet device interconnection request to the first Ethernet device, or the mobile terminal can initiate an Ethernet device interconnection request to the first Ethernet device in response to a device interconnection command triggered by the user (such as the user clicking the Ethernet device interconnection button provided on the mobile terminal interface, which can trigger an Ethernet device interconnection request).
[0056] For example, an Ethernet device interconnection request may include, but is not limited to, at least one of the following information: the identifier of the mobile terminal, the request type (Ethernet device interconnection request), etc.
[0057] In response to the Ethernet device interconnection request initiated by the mobile terminal, the first Ethernet device parses the request and learns that the mobile terminal needs to interconnect with Ethernet devices. Therefore, the first Ethernet device switches its hotspot mode to wireless access point (AP) mode.
[0058] A wireless access point acts as a bridge connecting wired and wireless networks. Its main function is to connect various wireless network clients together and then connect the wireless network to the Ethernet network. Simply put, it extends a wired network into a wireless network. For example, in a network with a wired router architecture, mobile phones and laptops cannot use the wireless network. However, if a wireless access point is connected to the wired network, mobile phones and laptops can use the wireless network. Therefore, after the first Ethernet device switches from hotspot mode to wireless access point mode, mobile terminals connected to that first Ethernet device can access the Ethernet segment where the first Ethernet device is located, which is also the Ethernet segment where each Ethernet device in the vehicle-mounted Ethernet network is located.
[0059] Step 303: The first Ethernet device initiates an address request to the Ethernet gateway.
[0060] After the first Ethernet device switches to wireless access point mode, allowing the mobile terminal to enter the Ethernet segment where each Ethernet device in the vehicle Ethernet is located, the first Ethernet device can initiate an address request to the Ethernet gateway in the vehicle Ethernet. This address request is used to request the Ethernet gateway to allocate an IP address in the Ethernet segment to the mobile terminal.
[0061] For example, the address request may include, but is not limited to, at least one of the following information: the identifier of the mobile terminal, the request type (address request), the Ethernet segment (i.e., the Ethernet segment where each Ethernet device is located), etc.
[0062] Upon receiving an address request from the first Ethernet device, the Ethernet gateway parses the request and determines that the mobile terminal needs an IP address within the Ethernet segment. Therefore, the Ethernet gateway can allocate an IP address from the Ethernet segment to the mobile terminal. The specific process of address allocation will be described in detail in the following embodiments.
[0063] In response to obtaining the IP address in the Ethernet segment, the mobile terminal can initiate a connection request to the second Ethernet device to connect to it. The second Ethernet device can be any one or more Ethernet devices within the vehicle-mounted Ethernet network, allowing the mobile terminal to connect to any Ethernet device within the vehicle-mounted Ethernet network. The specific process of the mobile terminal connecting to the second Ethernet device will be described in detail in the following embodiments.
[0064] Reference Figure 4 The diagram illustrates a flowchart of another device connection method according to an embodiment of this application. Figure 4 The device connection method shown is applied to Ethernet gateways.
[0065] like Figure 4 As shown, the device connection method may include the following steps:
[0066] Step 401: The Ethernet gateway receives an address request initiated by the first Ethernet device that has enabled the hotspot.
[0067] The address request is initiated by the first Ethernet device in response to a hotspot connection request initiated by the mobile terminal, connecting the mobile terminal to the hotspot; and in response to an Ethernet device interconnection request initiated by the mobile terminal based on the hotspot, switching the hotspot mode to wireless access point mode so that the mobile terminal can enter the Ethernet segment.
[0068] Step 402: In response to the address request initiated by the first Ethernet device, the Ethernet gateway allocates an IP address in the Ethernet segment to the mobile terminal.
[0069] In one alternative implementation, a certain number of reserved IP addresses for mobile terminals can be pre-set in the Ethernet segment. In response to an address request initiated by the first Ethernet device, the Ethernet gateway obtains the reserved IP addresses for mobile terminals in the Ethernet segment and allocates an IP address in the Ethernet segment to the mobile terminal from the reserved IP addresses.
[0070] If the reserved IP addresses for the mobile terminal in the Ethernet segment have not yet been fully allocated, the Ethernet gateway can allocate an IP address from the unallocated reserved IP addresses for the mobile terminal. The Ethernet gateway can return an allocation success response to the first Ethernet device, which can then forward the allocation success response to the mobile terminal. If the reserved IP addresses for the mobile terminal in the Ethernet segment have already been allocated, the Ethernet gateway cannot allocate an IP address from the Ethernet segment for the mobile terminal. The Ethernet gateway can return an allocation failure response to the first Ethernet device, which can then forward the allocation failure response to the mobile terminal.
[0071] Reference Figure 5 The diagram illustrates a flowchart of another device connection method according to an embodiment of this application. Figure 5 The device connection method shown is applied to mobile terminals.
[0072] like Figure 5 As shown, the device connection method may include the following steps:
[0073] Step 501: In response to the hotspot of the first Ethernet device that has been connected to the hotspot, the mobile terminal initiates an Ethernet device interconnection request to the first Ethernet device based on the hotspot.
[0074] The mobile terminal initiates a hotspot connection request to the first Ethernet device that has enabled hotspot functionality. The first Ethernet device responds to the hotspot connection request and connects the mobile terminal to the hotspot.
[0075] In response to accessing the hotspot of a first Ethernet device, the mobile terminal initiates an Ethernet device interconnection request to the first Ethernet device based on the hotspot. In response to the Ethernet device interconnection request, the first Ethernet device switches its hotspot mode to wireless access point mode, enabling the mobile terminal to enter the Ethernet segment where each Ethernet device resides. The first Ethernet device then initiates an address request to the Ethernet gateway, requesting the Ethernet gateway to allocate an IP address within the Ethernet segment to the mobile terminal.
[0076] Step 502: In response to obtaining the IP address, the mobile terminal initiates a connection request to the second Ethernet device.
[0077] After a mobile terminal enters the Ethernet segment where the Ethernet device is located and obtains the IP address in that Ethernet segment, it can initiate a connection request to the second Ethernet device.
[0078] In one optional implementation, the process of the mobile terminal initiating a connection request to the second Ethernet device may include the following steps A1 to A3:
[0079] Step A1: The mobile terminal searches for Ethernet devices in the Ethernet segment.
[0080] For example, the mobile terminal can initiate a network segment broadcast upon entering the Ethernet segment, which is used to indicate the acquisition of information about Ethernet devices in the Ethernet segment; each Ethernet device in the Ethernet segment can return its information to the mobile terminal in response to the network segment broadcast initiated by the mobile terminal; the mobile terminal receives the information of the Ethernet devices returned by the Ethernet devices in the Ethernet segment in response to the network segment broadcast.
[0081] For example, the information of an Ethernet device may include, but is not limited to, at least one of the following: the identifier of the Ethernet device, the Ethernet segment in which the Ethernet device is located, the remaining number of connections available for the Ethernet device, etc.
[0082] In step A2, the mobile terminal responds by selecting a second Ethernet device from the searched Ethernet devices and initiating a request to the second Ethernet device to obtain the interconnection protocol.
[0083] After the mobile terminal finds Ethernet devices in the Ethernet segment, the user can select one or more Ethernet devices from the searched Ethernet devices and use the selected Ethernet devices as the second Ethernet devices. The mobile terminal can then send a request to the second Ethernet devices to obtain the interconnection protocol.
[0084] For example, the request to obtain the Internet Protocol may include, but is not limited to, at least one of the following information: the identifier of the mobile terminal, the request type (request to obtain the Internet Protocol), the identifier of the second Ethernet device, etc.
[0085] In step A3, the mobile terminal, upon obtaining the interconnection protocol of the second Ethernet device, initiates a connection request to the second Ethernet device.
[0086] In response to a request from a mobile terminal to obtain an interconnection protocol, the second Ethernet device can return the interconnection protocols it supports to the mobile terminal. Upon obtaining the interconnection protocols of the second Ethernet device, the mobile terminal initiates a connection request to the second Ethernet device.
[0087] For example, an interconnection protocol can refer to a video or multimedia transmission protocol, such as RTP (Real-time Transport Protocol) or RTSP (Real-Time Streaming Protocol).
[0088] Reference Figure 6 The diagram illustrates a flowchart of another device connection method according to an embodiment of this application. Figure 6 The device connection method shown is applied to the second Ethernet device.
[0089] like Figure 6 As shown, the device connection method may include the following steps:
[0090] Step 601: The second Ethernet device receives a connection request initiated by the mobile terminal.
[0091] Step 602: The second Ethernet device responds to the connection request initiated by the mobile terminal and establishes a network connection with the mobile terminal.
[0092] In one optional implementation, the process of establishing a network connection between the second Ethernet device and the mobile terminal may include: determining whether the maximum number of connections of the second Ethernet device has been reached; establishing a network connection with the mobile terminal in response to the fact that the maximum number of connections of the second Ethernet device has not been reached; and prohibiting the establishment of a network connection with the mobile terminal in response to the fact that the maximum number of connections of the second Ethernet device has been reached.
[0093] For example, the maximum number of connections for the second Ethernet device can be the total number of screens on the second Ethernet device. If the second Ethernet device supports multi-screen operation, then each time a device (mobile terminal or other Ethernet device) is connected, a screen will be automatically filled. The most recently connected device will be located on the first screen by default, and the display distribution of the screens can be freely adjusted by the operating system.
[0094] In one alternative implementation, the interconnection level between Ethernet devices within the vehicle is higher than the interconnection level between the mobile terminal and the Ethernet device. Therefore, the interconnection between Ethernet devices can interrupt the interconnection between the mobile terminal and the Ethernet device. Thus, when the second Ethernet device receives a connection request from the mobile terminal and then receives connection requests from other Ethernet devices, the second Ethernet device, in response to the connection requests from the other Ethernet devices, first establishes a network connection with the other Ethernet devices, and then establishes a network connection with the mobile terminal.
[0095] In this embodiment, a mobile terminal outside the vehicle Ethernet connects to the hotspot of a first Ethernet device. The first Ethernet device controls the mobile terminal to enter the Ethernet segment where the Ethernet device is located and applies for an IP address in that Ethernet segment for the mobile terminal. After the mobile terminal enters the Ethernet segment where the Ethernet device is located and obtains the IP address in that Ethernet segment, it can establish a connection with any second Ethernet device in that Ethernet segment based on the IP address. This enables more flexible and diverse device connection methods, and even achieves full vehicle interconnection. Furthermore, the connection method within the same Ethernet segment allows for richer data interaction between the mobile terminal and the Ethernet device.
[0096] The following section describes the device connection method from the perspective of the overall interaction process between devices.
[0097] Reference Figure 7 The diagram shows an overall flowchart of a device connection method according to an embodiment of this application.
[0098] like Figure 7 As shown, the device connection method includes the following steps:
[0099] Step 701: The first Ethernet device enables a hotspot.
[0100] Step 702: The mobile terminal initiates a hotspot connection request to the first Ethernet device.
[0101] Step 703: The first Ethernet device responds to the hotspot connection request initiated by the mobile terminal and connects the mobile terminal to the hotspot.
[0102] Step 704: In response to accessing the hotspot of the first Ethernet device, the mobile terminal initiates an Ethernet device interconnection request to the first Ethernet device based on the hotspot.
[0103] Step 705: In response to the Ethernet device interconnection request initiated by the mobile terminal based on the hotspot, the first Ethernet device switches the hotspot mode to the wireless access point mode.
[0104] Step 706: The first Ethernet device initiates an address request to the Ethernet gateway.
[0105] Step 707: In response to the address request initiated by the first Ethernet device, the Ethernet gateway allocates an IP address in the Ethernet segment to the mobile terminal.
[0106] Step 708: In response to obtaining the IP address, the mobile terminal searches for Ethernet devices in the Ethernet segment.
[0107] Step 709: In response, the mobile terminal selects a second Ethernet device from the searched Ethernet devices and initiates a request to the second Ethernet device to obtain the interconnection protocol.
[0108] Step 710: In response to obtaining the interconnection protocol of the second Ethernet device, the mobile terminal initiates a connection request to the second Ethernet device.
[0109] Step 711: In response to the connection request initiated by the mobile terminal, the second Ethernet device determines whether the maximum number of connections for the second Ethernet device has been reached.
[0110] Step 712: In response to the fact that the maximum number of connections of the second Ethernet device has not been reached, the second Ethernet device establishes a network connection with the mobile terminal.
[0111] In this embodiment, the connection between the mobile terminal outside the vehicle Ethernet and the Ethernet device in the vehicle Ethernet is realized, and custom expansion can be realized, realizing various interconnection methods such as one-to-one, many-to-many, and one-to-many, increasing the scalability of the whole vehicle interconnection.
[0112] In embodiments of this application, an electronic device is also provided. This electronic device may include one or more processors and one or more computer-readable storage media storing instructions thereon, such as an application program. When the instructions are executed by the one or more processors, the processors cause the processors to perform the device connection method of any of the above embodiments.
[0113] Figure 8 A schematic diagram of the structure of an electronic device 800 according to an embodiment of this application is shown. Figure 8 As shown, the electronic device 800 includes a Central Processing Unit (CPU) 801, which can perform various appropriate actions and processes based on computer program instructions stored in Read Only Memory (ROM) 802 or loaded from storage unit 808 into Random Access Memory (RAM) 803. The RAM 803 can also store various programs and data required for the operation of the electronic device 800. The CPU 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0114] Multiple components in electronic device 800 are connected to I / O interface 805, including: input unit 806, such as keyboard, mouse, microphone, etc.; output unit 807, such as various types of displays, speakers, etc.; storage unit 808, such as disk, optical disk, etc.; and communication unit 809, such as network card, modem, wireless transceiver, etc. Communication unit 809 allows electronic device 800 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0115] The various processes and handling described above can be executed by processing unit 801. For example, the device connection method of any of the above embodiments can be implemented as a computer software program, which is tangibly contained in a computer-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by CPU 801, one or more actions in the device connection method described above can be performed.
[0116] In embodiments of this application, a computer-readable storage medium is also provided, on which a computer program is stored, which can be executed by a processor of an electronic device, and when the computer program is executed by the processor, causes the processor to perform the device connection method as described in any of the above embodiments.
[0117] The processors mentioned above may include, but are not limited to: CPU, Network Processor (NP), Digital Signal Processor (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0118] The computer-readable storage media mentioned above may include, but are not limited to: ROM, RAM, Compact Disc Read Only Memory (CD-ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Hard Disk, Floppy Disk, Flash Memory, etc.
[0119] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0120] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0121] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM, RAM, magnetic disk, optical disk), and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0122] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
[0123] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0124] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0125] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0126] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0127] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0128] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0129] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. In summary, the content of this specification should not be construed as a limitation of this application.
Claims
1. A device connection method, characterized in that, The vehicle-mounted Ethernet interface connects to an Ethernet gateway and multiple Ethernet devices, and the multiple Ethernet devices are located in the same Ethernet segment. The method is applied to a first Ethernet device that has enabled a hotspot, and the method includes: In response to a hotspot connection request initiated by a mobile terminal, the mobile terminal is connected to the hotspot; In response to the Ethernet device interconnection request initiated by the mobile terminal based on the hotspot, the hotspot mode is switched to wireless access point mode so that the mobile terminal can enter the Ethernet segment; An address request is initiated to the Ethernet gateway, the address request being used to request the Ethernet gateway to allocate an IP address in the Ethernet segment to the mobile terminal; so that the mobile terminal, in response to obtaining the IP address, initiates a connection request to the second Ethernet device, wherein the maximum number of connections of the second Ethernet device is the total number of screens of the second Ethernet device; in response to the second Ethernet device supporting multi-screen operation, each time the second Ethernet device connects to the mobile terminal, it automatically fills a screen, and the most recently connected mobile terminal is located on the first screen by default.
2. A device connection method, characterized in that, The vehicle-mounted Ethernet interface connects to an Ethernet gateway and multiple Ethernet devices, and the multiple Ethernet devices are located in the same Ethernet segment. The method is applied to a mobile terminal, and the method includes: In response to the hotspot of the first Ethernet device that has enabled a hotspot, the mobile terminal initiates an Ethernet device interconnection request to the first Ethernet device based on the hotspot; so that the first Ethernet device, in response to the Ethernet device interconnection request, switches the hotspot mode to wireless access point mode, so that the mobile terminal enters the Ethernet segment and initiates an address request to the Ethernet gateway, the address request being used to request the Ethernet gateway to allocate an IP address in the Ethernet segment for the mobile terminal. In response to obtaining the IP address, a connection request is initiated to the second Ethernet device, wherein the maximum number of connections of the second Ethernet device is equal to the total number of screens of the second Ethernet device; in response to the second Ethernet device supporting multi-screen operation, each time the second Ethernet device connects to a mobile terminal, it automatically fills a screen, and the most recently connected mobile terminal is located on the first screen by default.
3. The method according to claim 2, wherein initiating a connection request to the second Ethernet device includes: Search for Ethernet devices in the Ethernet segment; In response to selecting a second Ethernet device from the searched Ethernet devices, a request to obtain the interconnection protocol is initiated to the second Ethernet device; In response to obtaining the interconnection protocol of the second Ethernet device, a connection request is initiated to the second Ethernet device.
4. The method according to claim 3, wherein searching for Ethernet devices in the Ethernet segment comprises: Initiate a segment broadcast on the Ethernet segment; Receive information about the Ethernet device that responds to the network segment broadcast in response to the Ethernet device's information.
5. A device connection method, characterized in that, The vehicle-mounted Ethernet interface connects to an Ethernet gateway and multiple Ethernet devices, and the multiple Ethernet devices are located in the same Ethernet segment. The method is applied to a second Ethernet device, and the method includes: In response to a connection request initiated by a mobile terminal, a network connection is established with the mobile terminal; The connection request is initiated by the mobile terminal in response to obtaining the IP address in the Ethernet segment allocated by the Ethernet gateway, and sent to the second Ethernet device. The IP address is allocated by the Ethernet gateway in response to an address request initiated by the first Ethernet device that has enabled the hotspot. The address request is used to request the Ethernet gateway to allocate an IP address in the Ethernet segment to the mobile terminal. The address request is initiated by the first Ethernet device in response to a hotspot connection request initiated by the mobile terminal, connecting the mobile terminal to the hotspot, and in response to an Ethernet device interconnection request initiated by the mobile terminal based on the hotspot, switching the hotspot mode to wireless access point mode so that the mobile terminal can enter the Ethernet segment. The maximum number of connections for the second Ethernet device is equal to the total number of screens on the second Ethernet device. In response to the second Ethernet device supporting multi-screen operation, each time a mobile terminal is connected to the second Ethernet device, a screen will be automatically filled, and the most recently connected mobile terminal will be located on the first screen by default.
6. The method according to claim 5, wherein establishing a network connection with the mobile terminal comprises: In response to the fact that the maximum number of connections for the second Ethernet device has not been reached, a network connection is established with the mobile terminal.
7. The method according to claim 5, wherein establishing a network connection with the mobile terminal comprises: In response to a connection request initiated by another Ethernet device, a network connection is first established with the other Ethernet device, and then a network connection is established with the mobile terminal.
8. An electronic device, characterized in that, include: One or more processors; and One or more computer-readable storage media on which instructions are stored; When the instructions are executed by the one or more processors, the processors perform the device connection method as described in claim 1, or the device connection method as described in any one of claims 2 to 4, or the device connection method as described in any one of claims 5 to 7.
9. A computer-readable storage medium, characterized in that, It stores a computer program that, when executed by a processor, causes the processor to perform the device connection method as described in claim 1, or the device connection method as described in any one of claims 2 to 4, or the device connection method as described in any one of claims 5 to 7.
Citation Information
Patent Citations
ECU software upgrading method based on vehicle-mounted Ethernet
CN107864207A
Network connector and vehicle diagnostic method
CN108303964A
Communication method and system, wireless access device and access controller
CN115086946A