CN114785684A - Port configuration method and device of vehicle switch, vehicle and storage medium - Google Patents
Port configuration method and device of vehicle switch, vehicle and storage medium Download PDFInfo
- Publication number
- CN114785684A CN114785684A CN202210435135.5A CN202210435135A CN114785684A CN 114785684 A CN114785684 A CN 114785684A CN 202210435135 A CN202210435135 A CN 202210435135A CN 114785684 A CN114785684 A CN 114785684A
- Authority
- CN
- China
- Prior art keywords
- port
- input port
- current vehicle
- input
- configuration
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 230000006870 function Effects 0.000 claims description 104
- 238000001514 detection method Methods 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 7
- 230000008859 change Effects 0.000 abstract description 15
- 238000004891 communication Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention relates to a port configuration method and device of a vehicle switch, a vehicle and a storage medium, wherein the method comprises the following steps: detecting whether a current vehicle has an input port to be configured; when an input port to be configured is detected, acquiring a port identifier of the input port to be configured, and inquiring a preset port identifier-configuration relation table based on the port identifier to obtain a configuration file of the input port to be configured; and configuring the input port to be configured into the virtual local area network of the current vehicle by using the configuration file so as to upload the class function data through the configured input port. The method solves the problem that the Switch software of the bridge node is changed due to the fact that the VLAN is required to be configured on the Switch port of the bridge node in the multi-hop network when the data uploading function requirement is newly added to the whole vehicle platform or the ECU node is newly added to the whole vehicle platform and has the data uploading function requirement, and avoids the change of the Switch software of the bridge node due to the newly added function of the newly added ECU.
Description
Technical Field
The present invention relates to the field of vehicle technologies, and in particular, to a method and an apparatus for configuring a port of a vehicle switch, a vehicle, and a storage medium.
Background
Along with the intelligent online development of vehicles, the in-vehicle data is more and more important to a host factory, and the vehicle data brings unlimited value to the host factory. The method depends on the scale effect formed by mass production of vehicles, and uses massive users as data productivity, so that the use of the vehicles by the users is changed into an important link of vehicle technology development, the difficulty of data production of a host factory is reduced, and a large number of data acquisition samples are reduced. At present, more and wider data of the whole vehicle need to be uploaded to a background, and values are generated through data analysis.
In the related art, the data uploading function generally adopts a mode of independently dividing a Virtual Local Area Network (VLAN) because the function relates to an in-vehicle data uploading cloud platform.
However, when a new data uploading function is required to be added to an existing ECU (electronic Control Unit) of a vehicle platform, a Switch port of a bridge node in a multi-hop network needs to be configured with the VLAN; if the ECU node is newly added to the whole vehicle platform and the requirement of the data uploading function is met, the Switch port of the bridge node in the multi-hop network needs to be configured with the VLAN.
Disclosure of Invention
In view of this, the present invention aims to provide a port configuration method for a vehicle Switch, which solves the problem in the related art that when a data uploading function is newly added to a complete vehicle platform or an ECU node is newly added to the complete vehicle platform and has a data uploading function, the VLAN needs to be configured for a Switch port of a bridge node in a multi-hop network, which causes change of bridge node Switch software, and avoids change of bridge node Switch software due to the newly added function of the newly added ECU.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a port configuration method of a vehicular exchange, comprising the steps of:
detecting whether a current vehicle has an input port to be configured;
when the input port to be configured is detected, acquiring a port identifier of the input port to be configured, and inquiring a preset port identifier-configuration relation table based on the port identifier to obtain a configuration file of the input port to be configured;
and configuring the input port to be configured into the virtual local area network of the current vehicle by using the configuration file so as to upload the class function data through the configured input port.
Further, the configuring the input port to be configured into the virtual local area network of the current vehicle by using the configuration file further includes:
determining the priority of class function data of the input port to be configured;
modifying the configuration file according to the priority;
and configuring the input port to be configured into the virtual local area network of the current vehicle by using the modified configuration file.
Further, before detecting whether the current vehicle has the input port to be configured, the method further includes:
determining all input ports of the current vehicle;
acquiring port identifications of all input ports and data uploading paths of class function data of all input ports;
and obtaining the preset port identification-configuration relation table according to the port identifications of all the input ports and the data uploading paths of the class function data of all the input ports.
Further, the detecting whether the current vehicle has an input port to be configured includes:
detecting whether the input port to be configured receives the class function data;
if the input port to be configured receives the class function data, judging that the input port to be configured exists in the current vehicle, otherwise, judging that the input port to be configured does not exist in the current vehicle.
Compared with the prior art, the port configuration method of the vehicle switch has the following advantages:
the port configuration method of the vehicle switch can acquire the port identifier of the input port to be configured when the input port to be configured of the current vehicle is detected, query the preset port identifier-configuration relation table based on the port identifier to obtain the configuration file of the input port to be configured, and configure the input port to be configured into the virtual local area network of the current vehicle by using the configuration file so as to upload the class function data through the configured input port. Therefore, the problem that the bridge node Switch software is changed due to the fact that the VLAN is also configured on the Switch port of the bridge node in the multi-hop network when the data uploading function requirement of the whole vehicle platform is newly increased or the ECU node is newly added to the whole vehicle platform and the data uploading function requirement is met in the related technology is solved, and the change of the bridge node Switch software due to the newly added function of the newly added ECU is avoided.
Another objective of the present invention is to provide a port configuration device for a vehicle Switch, which solves the problem in the related art that when a data uploading function is newly added to a complete vehicle platform, or when an ECU node is newly added to the complete vehicle platform and a data uploading function is required, a Switch port related to a bridge node in a multi-hop network also needs to configure a VLAN, which causes a change in the bridge node Switch software, and avoids a change in the bridge node Switch software due to the newly added function of the newly added ECU.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a port configuration apparatus of a vehicular exchange, comprising:
the detection module is used for detecting whether the current vehicle has an input port to be configured;
the acquisition module is used for acquiring the port identifier of the input port to be configured when the input port to be configured is detected, and inquiring a preset port identifier-configuration relation table based on the port identifier to obtain a configuration file of the input port to be configured;
and the configuration module is used for configuring the input port to be configured into the virtual local area network of the current vehicle by using the configuration file so as to upload the class function data through the configured input port.
Further, the configuration module is further configured to:
determining the priority of the class function data of the input port to be configured;
modifying the configuration file according to the priority;
and configuring the input port to be configured into the virtual local area network of the current vehicle by using the modified configuration file.
Further, before detecting whether the current vehicle has the input port to be configured, the detecting module is further configured to:
determining all input ports of the current vehicle;
acquiring port identifications of all input ports and data uploading paths of class function data of all input ports;
and obtaining the preset port identification-configuration relation table according to the port identifications of all the input ports and the data uploading paths of the class function data of all the input ports.
Further, the detection module is specifically configured to:
detecting whether the input port to be configured receives the class function data;
if the input port to be configured receives the class function data, judging that the input port to be configured exists in the current vehicle, otherwise, judging that the input port to be configured does not exist in the current vehicle.
The advantages of the port configuration device of the vehicle switch and the port configuration method of the vehicle switch are the same as those of the prior art, and are not repeated herein.
Another object of the invention is to propose a vehicle.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a vehicle, comprising: the port configuration method of the vehicle switch comprises the following steps of storing, processing and computer programs which are stored on the storing and can run on the processing, wherein the processing is used for executing the programs so as to realize the port configuration method of the vehicle switch.
The advantages of the vehicle and the port configuration method of the vehicle switch are the same as those of the prior art, and are not described herein again.
Another object of the invention is to propose a computer-readable storage medium.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a computer-readable storage medium on which a computer program is stored, the program being executed by a processor to implement the port configuration method of the vehicular exchange described above.
The advantages of the computer-readable storage medium and the port configuration method of the vehicular switch are the same as those of the prior art, and are not described herein again.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of a port configuration method for a vehicular exchange in accordance with an embodiment of the present invention;
FIG. 2 is a topological diagram of an existing vehicle model of a finished vehicle platform;
FIG. 3 is a block diagram illustrating a port configuration apparatus of a vehicular switch in accordance with an embodiment of the present invention;
FIG. 4 is a block schematic diagram of a vehicle according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a flowchart of a port configuration method of a vehicular exchange according to an embodiment of the present invention.
Before the port configuration method of the vehicle switch according to the embodiment of the present invention is described, a method of uploading class functional data in the related art is simply described.
As shown in fig. 2, fig. 2 is a topological schematic diagram of an existing vehicle model of a finished vehicle platform, wherein an intelligent driving controller C is an original ECU node of the finished vehicle platform, and an intelligent driving controller D is an additional ECU node of the finished vehicle platform.
It is assumed that the VLAN related information definition of the data upload class function is shown in table 1.
TABLE 1
VLAN | VLAN Priority | |
5 | 1 |
In the related art, as shown in fig. 2, the Switch is a Switch chip, and the Switch may be integrated in the ECU and used for connecting a plurality of ethernet control nodes; port is the external Port of the switch chip.
Wherein, intelligent drive controller C newly-increased data upload class function, the data upload route is:
the intelligent driving controller C → Gateway Switch Port 3 → Gateway Switch Port 5 → the vehicle-mounted terminal TBOX → the TSP background;
newly add intelligent drive controller D data upload class function, the data upload route is:
the intelligent driving controller D → Gateway Switch Port 4 → Gateway Switch Port 5 → the vehicle terminal TBOX → the TSP background.
That is to say, in the related art, the smart driving controller C adds a data uploading function and adds a new smart driving controller D with the data uploading function, and the data uploading path is related to flow in from the Port 3 or the Port 4 and then flow out from the Port 5 through the Gateway Switch, so that the ports need to be configured to belong to the VLAN 5. Therefore, the data of the class function uploaded by the intelligent driving controller C or the new intelligent driving controller D can be transmitted to a TSP (Telematics Service Provider) background through the Gateway Switch and then through a vehicle-mounted Terminal (TBOX), otherwise, the data is discarded when entering a Gateway Switch port.
However, the existing ECU newly-added data upload function of the finished automobile platform needs to configure a port of the bridge node Switch on a data upload path, and the port is configured to belong to a VLAN corresponding to the data upload function, which causes a change in bridge node Switch software; in addition, if the ECU added to the entire vehicle platform has a data uploading function, the port of the bridge node Switch on the data uploading path needs to be configured, and the port is configured to belong to the VLAN corresponding to the data uploading function, which causes the change of the bridge node Switch software.
The present invention is based on the above problems, and provides a method for configuring a port of a vehicle switch, which can obtain a port identifier of an input port to be configured when a current vehicle is detected as the input port to be configured, query a preset port identifier-configuration relationship table based on the port identifier, obtain a configuration file of the input port to be configured, and configure the input port to be configured into a virtual local area network of the current vehicle by using the configuration file, so as to upload class function data through the configured input port. Therefore, when the Switch uses the port, VALN information is configured in advance, and when the ECU new function connected with the port belongs to the VLAN, the Switch software is not required to be changed; when the Switch reserves the port, the VLAN information is configured in advance, when the newly-added ECU realizes that the function belongs to the VLAN, the Switch software is not needed to be changed, the requirement of the newly-added data uploading function of the whole vehicle platform in the related technology is solved, or when the newly-added ECU node of the whole vehicle platform has the requirement of the data uploading function, the Switch port of the bridge node in the multi-hop network needs to be configured with the VLAN, the problem that the Switch software of the bridge node is changed is caused, and the change of the Switch software of the bridge node caused by the newly-added function of the newly-added ECU is avoided.
As shown in fig. 1, a port configuration method of a vehicular exchange according to an embodiment of the present invention includes the steps of:
step S101, detecting whether the current vehicle has an input port to be configured.
Further, detecting whether the current vehicle has an input port to be configured includes: detecting whether an input port to be configured receives class function data; and if the input port to be configured receives the class function data, judging that the input port to be configured exists in the current vehicle, otherwise, judging that the input port to be configured does not exist in the current vehicle.
Wherein the configured input port may be a ready-to-use input port.
Specifically, when the ECU newly adds data upload function data, the data are generally uploaded through the input port, and therefore, the embodiment of the present invention may determine whether the current vehicle has the input port to be configured by detecting whether the input port to be configured receives the function data, and, if it is detected that the input port to be configured receives the function data, determine that the current vehicle has the input port to be configured; and when the input port to be configured does not receive the class function data, determining that the input port to be configured does not exist in the current vehicle. Further, in the following embodiments, before detecting whether the current vehicle has an input port to be configured, the method further includes: determining all input ports of the current vehicle; acquiring port identifications of all input ports and data uploading paths of class function data of all input ports; and obtaining a preset port identification-configuration relation table according to the port identifications of all the input ports and the data uploading paths of the class function data of all the input ports.
All the input ports comprise input ports used by the intelligent driving controller and input ports not used by the intelligent driving controller.
Specifically, according to the embodiment of the invention, a first input port identifier corresponding to an input port used by the intelligent driving controller can be obtained, and a second input port identifier corresponding to an input port not used by the intelligent driving controller can be obtained, so that the port identifiers of all the input ports are determined according to the first input port identifier and the second input port identifier; according to the embodiment of the invention, the first data uploading path of the class function data of the input port used by the intelligent driving controller can be obtained, and the second data uploading path of the class function data of the input port not used by the intelligent driving controller can be obtained at the same time, so that the data uploading paths of the class function data of all the input ports can be obtained according to the first data uploading path and the second data uploading path.
Therefore, a preset port identifier-configuration relation table can be obtained according to the port identifiers of all the input ports and the data uploading paths of the class function data of all the input ports, wherein the preset port identifier-configuration relation table can be shown in table 2 by combining with the table shown in fig. 2.
TABLE 2
Port ID | VLAN Supported |
3 | 5 |
4 | 5 |
5 | 5 |
It should be noted that, in most cases, the ECU integrated with Switch only forwards data sent by the rest of the ECUs, and only a small portion of the data needs to be processed by the ECU processor. Therefore, in order to avoid frequent change of the Switch ECU software, the embodiment of the present invention may determine the attributes of the rest ECUs in advance, and set the VLAN to which the Switch reserved input port (port) belongs in advance, thereby avoiding the change of the bridge node Switch software due to the newly added function.
Step S102, when the input port to be configured is detected, the port identification of the input port to be configured is obtained, and a preset port identification-configuration relation table is inquired based on the port identification, so that a configuration file of the input port to be configured is obtained.
The configuration file is a file configuring the input port as a VLAN belonging to the data uploading function, and specific contents may be set by a person skilled in the art according to an actual situation, which is not specifically limited herein.
It should be understood that, when the input port to be configured is detected in step S101, the embodiment of the present invention may determine the port identifier of the input port to be configured based on the input port to be configured, so as to obtain the configuration file of the input port to be configured based on the preset port identifier-configuration relationship table obtained according to the port identifiers of all the input ports and the data upload paths of the class function data of all the input ports.
And step S103, configuring the input port to be configured into the virtual local area network of the current vehicle by using the configuration file so as to upload the class function data through the configured input port.
That is to say, after the input port to be configured and the configuration file corresponding to the input port are obtained, the embodiment of the present invention can configure the input port to be configured into the virtual local area network of the current vehicle by using the configuration file, so that the class function data can be uploaded through the configured input port after the configuration is completed.
Therefore, when the ECU has a data uploading function requirement at the later stage, the port of the bridge node Switch on the data uploading path can be configured in advance to belong to the VLAN to which the data uploading function belongs, even if the ECU adds the data uploading function, the software of the bridge node Switch on the data uploading path is not involved to be changed, and the software change amount is reduced; according to the embodiment of the invention, a certain reserved port of the bridge node is configured to belong to the VLAN belonging to the data uploading function in advance, so that even if a newly-added ECU is connected with the port and has the requirement of the data uploading function, the software of the bridge node Switch on the data uploading path is not involved to be changed, and the software change amount is reduced. The data transmission efficiency is effectively improved.
Further, in the following embodiments, configuring the input port to be configured into the virtual local area network of the current vehicle by using the configuration file further includes: determining the priority of class function data of an input port to be configured; modifying the configuration file according to the priority; and configuring the input port to be configured into the virtual local area network of the current vehicle by using the modified configuration file.
It should be understood that, the VLAN technology is mainly based on the data delay requirement and importance, and therefore, the embodiment of the present invention may further divide the class function data of the input port to be configured into different classes according to the function importance and the delay requirement, each class function is divided into a VLAN, and a priority is set, so that the configuration file may be modified according to the priority, for example, the function importance and the delay requirement of the class function data of the input port X to be configured are highest, the function importance and the delay requirement of the class function data of the input port Y to be configured are the lowest, and the function importance and the delay requirement of the class function data of the input port Z to be configured are the lowest, so that the embodiment of the present invention may modify the configuration file into uploading the class function data of the input port X to be configured first, and then uploading the class function data of the input port Y to be configured, and finally, uploading the class function data of the input port Z to be configured, so that after the input port to be configured is configured into the virtual local area network of the current vehicle according to the modified configuration file, the purpose of uploading the data according to the function importance and the time delay requirement is realized, and the data uploading is more intelligent.
According to the port configuration method of the vehicle switch, when the input port to be configured of the current vehicle is detected, the port identification of the input port to be configured is obtained, the preset port identification-configuration relation table is inquired based on the port identification, the configuration file of the input port to be configured is obtained, the input port to be configured is configured into the virtual local area network of the current vehicle by using the configuration file, and the class function data is uploaded through the configured input port. Therefore, the problem that the bridge node Switch software is changed due to the fact that the VLAN is also configured on the Switch port of the bridge node in the multi-hop network when the data uploading function requirement of the whole vehicle platform is newly increased or the ECU node is newly added to the whole vehicle platform and the data uploading function requirement is met in the related technology is solved, and the change of the bridge node Switch software due to the newly added function of the newly added ECU is avoided.
Further, as shown in fig. 3, an embodiment of the present invention also discloses a port configuration apparatus 10 for a vehicular exchange, which includes: a detection module 100, an acquisition module 200, and a configuration module 300.
The detection module 100 is configured to detect whether a current vehicle has an input port to be configured;
the obtaining module 200 is configured to, when an input port to be configured is detected, obtain a port identifier of the input port to be configured, and query a preset port identifier-configuration relation table based on the port identifier to obtain a configuration file of the input port to be configured;
the configuration module 300 is configured to configure the input port to be configured into the virtual local area network of the current vehicle by using the configuration file, so as to upload the class function data through the configured input port.
Further, the configuration module 300 is further configured to:
determining the priority of class function data of an input port to be configured;
modifying the configuration file according to the priority;
and configuring the input port to be configured into the virtual local area network of the current vehicle by using the modified configuration file.
Further, before detecting whether the current vehicle has an input port to be configured, the detection module 100 is further configured to:
determining all input ports of the current vehicle;
acquiring port identifications of all input ports and data uploading paths of class function data of all input ports;
and obtaining a preset port identification-configuration relation table according to the port identifications of all the input ports and the data uploading paths of the class function data of all the input ports.
Further, the detection module 100 is specifically configured to:
detecting whether an input port to be configured receives class function data;
and if the input port to be configured receives the class function data, judging that the input port to be configured exists in the current vehicle, otherwise, judging that the input port to be configured does not exist in the current vehicle.
It should be noted that, a specific implementation manner of the port configuration apparatus of the vehicular switch in the embodiment of the present invention is similar to a specific implementation manner of the port configuration method of the vehicular switch, and in order to reduce redundancy, details are not described here.
According to the port configuration device of the vehicle switch, the port identification of the input port to be configured can be obtained when the input port to be configured of the current vehicle is detected, the preset port identification-configuration relation table is inquired based on the port identification, the configuration file of the input port to be configured is obtained, the input port to be configured is configured into the virtual local area network of the current vehicle by using the configuration file, and the class function data is uploaded through the configured input port. Therefore, the problem that the bridge node Switch software is changed due to the fact that the VLAN is required to be configured at the Switch port of the bridge node in the multi-hop network when the data uploading function requirement is newly added to the whole vehicle platform or the ECU node is newly added to the whole vehicle platform and the data uploading function requirement exists in the related art is solved, and the change of the bridge node Switch software due to the newly added function of the newly added ECU is avoided.
Fig. 4 is a schematic structural diagram of a vehicle according to an embodiment of the present invention. The vehicle may include:
memory 401, processor 402, and computer programs stored on memory 401 and operable on processor 402.
The processor 402, when executing the program, implements the port configuration method of the vehicular exchange provided in the above-described embodiment.
Further, the vehicle further includes:
a communication interface 403 for communication between the memory 401 and the processor 402.
A memory 401 for storing computer programs executable on the processor 402.
Memory 401 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
If the memory 401, the processor 402 and the communication interface 403 are implemented independently, the communication interface 403, the memory 401 and the processor 402 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
Optionally, in a specific implementation, if the memory 401, the processor 402, and the communication interface 403 are integrated on a chip, the memory 401, the processor 402, and the communication interface 403 may complete mutual communication through an internal interface.
Processor 402 may be a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the port configuration method of the vehicular switch as in the above embodiments.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A port configuration method of a vehicular exchange, characterized by comprising the steps of:
detecting whether a current vehicle has an input port to be configured;
when the input port to be configured is detected, acquiring a port identifier of the input port to be configured, and inquiring a preset port identifier-configuration relation table based on the port identifier to obtain a configuration file of the input port to be configured;
and configuring the input port to be configured into the virtual local area network of the current vehicle by using the configuration file so as to upload the class function data through the configured input port.
2. The method of claim 1, wherein the configuring the input port to be configured into the virtual local area network of the current vehicle using the configuration file further comprises:
determining the priority of class function data of the input port to be configured;
modifying the configuration file according to the priority;
and configuring the input port to be configured into the virtual local area network of the current vehicle by using the modified configuration file.
3. The method of claim 2, further comprising, prior to detecting whether the current vehicle has the input port to be configured:
determining all input ports of the current vehicle;
acquiring port identifications of all input ports and data uploading paths of class function data of all input ports;
and obtaining the preset port identification-configuration relation table according to the port identifications of all the input ports and the data uploading paths of the class function data of all the input ports.
4. The method of claim 3, wherein the detecting whether the current vehicle has an input port to be configured comprises:
detecting whether the input port to be configured receives the class function data;
if the input port to be configured receives the class function data, judging that the input port to be configured exists in the current vehicle, otherwise, judging that the input port to be configured does not exist in the current vehicle.
5. A port configuration apparatus of a vehicular exchange, comprising:
the detection module is used for detecting whether the current vehicle has an input port to be configured;
the acquisition module is used for acquiring a port identifier of the input port to be configured when the input port to be configured is detected, and inquiring a preset port identifier-configuration relation table based on the port identifier to obtain a configuration file of the input port to be configured;
and the configuration module is used for configuring the input port to be configured into the virtual local area network of the current vehicle by using the configuration file so as to upload the class function data through the configured input port.
6. The apparatus of claim 5, wherein the configuration module is further configured to:
determining the priority of the class function data of the input port to be configured;
modifying the configuration file according to the priority;
and configuring the input port to be configured into the virtual local area network of the current vehicle by using the modified configuration file.
7. The apparatus of claim 6, wherein prior to detecting whether the current vehicle has the input port to be configured, the detecting module is further configured to:
determining all input ports of the current vehicle;
acquiring port identifications of all input ports and data uploading paths of class function data of all input ports;
and obtaining the preset port identification-configuration relation table according to the port identifications of all the input ports and the data uploading paths of the class function data of all the input ports.
8. The apparatus according to claim 7, wherein the detection module is specifically configured to:
detecting whether the input port to be configured receives the class function data;
if the input port to be configured receives the class function data, judging that the input port to be configured exists in the current vehicle, otherwise, judging that the input port to be configured does not exist in the current vehicle.
9. A vehicle, characterized by comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the port configuration method of the vehicular switch according to any one of claims 1 to 4.
10. A computer-readable storage medium on which a computer program is stored, the program being executed by a processor to implement the port configuration method of a vehicular switch according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210435135.5A CN114785684B (en) | 2022-04-24 | 2022-04-24 | Port configuration method and device of vehicle switch, vehicle and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210435135.5A CN114785684B (en) | 2022-04-24 | 2022-04-24 | Port configuration method and device of vehicle switch, vehicle and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114785684A true CN114785684A (en) | 2022-07-22 |
CN114785684B CN114785684B (en) | 2024-04-05 |
Family
ID=82432305
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210435135.5A Active CN114785684B (en) | 2022-04-24 | 2022-04-24 | Port configuration method and device of vehicle switch, vehicle and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114785684B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119254823A (en) * | 2024-12-06 | 2025-01-03 | 奥特酷智能科技(南京)有限公司 | Vehicle-mounted unified switch configuration system and method based on DDS |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610171A (en) * | 2009-07-22 | 2009-12-23 | 天津市电力公司 | A method for automatic configuration of switches based on IEC61850 model |
CN102546396A (en) * | 2011-12-15 | 2012-07-04 | 广东电网公司电力科学研究院 | Configuration method and system of instation exchanger of electric device remote supervision system |
CN105871632A (en) * | 2016-05-31 | 2016-08-17 | 深圳市双赢伟业科技股份有限公司 | Virtual local area network configuration method and device |
CN109474443A (en) * | 2017-09-07 | 2019-03-15 | 中移(杭州)信息技术有限公司 | A configuration method, apparatus, system and communication device for adding a new server |
CN111988557A (en) * | 2019-05-22 | 2020-11-24 | 上汽通用汽车有限公司 | Vehicle-mounted video transmission method and vehicle-mounted video transmission system |
-
2022
- 2022-04-24 CN CN202210435135.5A patent/CN114785684B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610171A (en) * | 2009-07-22 | 2009-12-23 | 天津市电力公司 | A method for automatic configuration of switches based on IEC61850 model |
CN102546396A (en) * | 2011-12-15 | 2012-07-04 | 广东电网公司电力科学研究院 | Configuration method and system of instation exchanger of electric device remote supervision system |
CN105871632A (en) * | 2016-05-31 | 2016-08-17 | 深圳市双赢伟业科技股份有限公司 | Virtual local area network configuration method and device |
CN109474443A (en) * | 2017-09-07 | 2019-03-15 | 中移(杭州)信息技术有限公司 | A configuration method, apparatus, system and communication device for adding a new server |
CN111988557A (en) * | 2019-05-22 | 2020-11-24 | 上汽通用汽车有限公司 | Vehicle-mounted video transmission method and vehicle-mounted video transmission system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN119254823A (en) * | 2024-12-06 | 2025-01-03 | 奥特酷智能科技(南京)有限公司 | Vehicle-mounted unified switch configuration system and method based on DDS |
Also Published As
Publication number | Publication date |
---|---|
CN114785684B (en) | 2024-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5255579B2 (en) | In-car data relay device, vehicle control system | |
US10819792B2 (en) | Device and method for extracting data from a communication bus of a motor vehicle | |
US20190126859A1 (en) | Vehicle data communications network | |
WO2021098212A1 (en) | Software upgrade method, apparatus and system | |
CN108156021B (en) | Design method of whole vehicle network topology | |
US8832053B2 (en) | Relay device, communication system and communication method | |
CN110971453A (en) | Network topology determination method and device, vehicle network topology structure and vehicle | |
JP2013102393A (en) | Communication apparatus for vehicle and data communication system for vehicle using communication apparatus for vehicle mentioned | |
CN108445860B (en) | Diagnostic apparatus, diagnostic request processing method, and computer-readable storage medium | |
GB2568237A (en) | Improved vehicle data communications network | |
CN115167351B (en) | Controller function updating method, system, vehicle and server | |
CN102756628B (en) | Heating, ventilating, and air conditioning module for a vehicle | |
CN114785684A (en) | Port configuration method and device of vehicle switch, vehicle and storage medium | |
CN117851298A (en) | PCIe-based vehicle resource sharing method, PCIe-based vehicle resource sharing device, PCIe-based vehicle resource sharing equipment, PCIe-based vehicle resource sharing medium and PCIe-based vehicle | |
CN118138488A (en) | Ethernet stress testing method, device and electronic equipment for vehicle-mounted controller | |
CN104821888B (en) | Method and device for operating a communication network, in particular a motor vehicle | |
JP2012165033A (en) | Automotive control system and electronic control unit | |
CN101222525B (en) | Multi-ECU message communication method for adaptive communication subject physical topology structure | |
CN114760322A (en) | Vehicle information association method, Internet of vehicles terminal and Internet of vehicles platform | |
CN113268050A (en) | Vehicle diagnosis method and device | |
CN115695067A (en) | Communication method and device for vehicle bus | |
CN116456301B (en) | Program refreshing method, device, equipment and storage medium | |
CN110011888B (en) | A modular CAN network load rate optimization method and device | |
CN111865839B (en) | Communication method, device and equipment of electronic control unit and computer storage medium | |
CN112187568B (en) | Message transmission method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20230626 Address after: 071000 No. 2266 Chaoyang South Street, Hebei, Baoding Applicant after: GREAT WALL MOTOR Co.,Ltd. Address before: 100176 1902, floor 16, building 3, yard 4, No. 22, Jinghai 4th Road, Beijing Economic and Technological Development Zone, Beijing Applicant before: Salon mecha Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |