CN114817337A - Hardware interface type self-adaptive matching method and related device - Google Patents

Hardware interface type self-adaptive matching method and related device Download PDF

Info

Publication number
CN114817337A
CN114817337A CN202210714580.5A CN202210714580A CN114817337A CN 114817337 A CN114817337 A CN 114817337A CN 202210714580 A CN202210714580 A CN 202210714580A CN 114817337 A CN114817337 A CN 114817337A
Authority
CN
China
Prior art keywords
hardware interface
supply voltage
power supply
voltage value
interface type
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
Application number
CN202210714580.5A
Other languages
Chinese (zh)
Other versions
CN114817337B (en
Inventor
曾少辉
熊孝国
徐鹏飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Kezhongyun Technology Co ltd
Original Assignee
Shenzhen Kezhongyun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Kezhongyun Technology Co ltd filed Critical Shenzhen Kezhongyun Technology Co ltd
Priority to CN202210714580.5A priority Critical patent/CN114817337B/en
Publication of CN114817337A publication Critical patent/CN114817337A/en
Application granted granted Critical
Publication of CN114817337B publication Critical patent/CN114817337B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4072Drivers or receivers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02T90/10Technologies relating to charging of electric vehicles
    • Y02T90/16Information or communication technologies improving the operation of electric vehicles
    • Y02T90/167Systems integrating technologies related to power network operation and communication or information technologies for supporting the interoperability of electric or hybrid vehicles, i.e. smartgrids as interface for battery charging of electric vehicles [EV] or hybrid vehicles [HEV]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Power Sources (AREA)

Abstract

The application is suitable for the technical field of interface communication, and provides a hardware interface type self-adaptive matching method and a related device, which are used for solving the problem of interface compatibility of a distributed charging pile in the prior art, and the method for a host end mainly comprises the following steps: when the host computer end is connected with the adapter plate, detecting the power supply voltage value of the adapter plate; determining a target hardware interface type correspondingly matched with the power supply voltage value in a preset lookup table, wherein the lookup table records the incidence relation of a plurality of hardware interface types corresponding to different power supply voltage values, and the target hardware interface type is one hardware interface type recorded in the lookup table; and starting a preset driving program corresponding to the type of the target hardware interface to the adapter plate.

Description

Hardware interface type self-adaptive matching method and related device
Technical Field
The present application relates to the field of interface communication technologies, and in particular, to a hardware interface type adaptive matching method and a related apparatus.
Background
Along with the popularization and development of new energy electric vehicles, more and more personnel select the new energy electric vehicle to go out, and it is important just to seem as the electric pile that fills of the supplementary electric energy of new energy electric vehicle.
However, since charging pile manufacturers for domestic production of charging piles are numerous, each charging pile manufacturer forms its own charging pile standard, and charging pile functional components on the market are often incompatible. For example, the internal data interface of the main control board is not unified yet at present for charging pile station operators usually have difficulty in using third-party functional components to expand the functions of the charging piles generated by a certain manufacturer, but must use the functional components adapted to the charging pile manufacturer, and if the charging pile manufacturer does not develop the functional components with corresponding functions, the problem that functional defects and resource waste are formed due to compatibility of the arranged charging piles is easily caused.
Disclosure of Invention
The application aims to provide a hardware interface type self-adaptive matching method and a related device, and aims to solve the problem of interface compatibility of arranged charging piles in the prior art.
In a first aspect, the present application provides a hardware interface type adaptive matching method, applied to a host, including:
when the host computer end is connected with the adapter plate, detecting the power supply voltage value of the adapter plate;
determining a target hardware interface type correspondingly matched with the power supply voltage value in a preset lookup table, wherein the lookup table records the incidence relation of a plurality of hardware interface types corresponding to different power supply voltage values, and the target hardware interface type is one hardware interface type recorded in the lookup table;
and starting a preset driving program corresponding to the type of the target hardware interface to the adapter plate.
Optionally, before detecting the power supply voltage value of the interposer, the method further includes:
defining power supply voltage values corresponding to different hardware interface types, wherein each hardware interface type corresponds to a section of power supply voltage value range value;
and associating each hardware interface type with a corresponding power supply voltage value to form a lookup table and storing the lookup table.
Optionally, determining, in a preset lookup table, a target hardware interface type corresponding to the power supply voltage value includes:
judging whether the power supply voltage value falls into a power supply voltage value range value corresponding to the type of the target hardware interface recorded in the lookup table;
if the power supply voltage value falls into the power supply voltage value range value corresponding to the target hardware interface type recorded in the lookup table, determining the target hardware interface type corresponding to the power supply voltage value range value;
and if the power supply voltage value does not fall into the power supply voltage value range value corresponding to the target hardware interface type recorded in the lookup table, warning of incompatible interface types is sent.
Optionally, before detecting the power supply voltage value of the interposer, the method further includes:
and receiving and storing the drivers corresponding to different hardware interface types.
Optionally, voltage-dividing resistors with different resistances are arranged in the power supply circuits of the adapter plates corresponding to different hardware interface types, so that when the adapter plate is connected with the host end, the power supply voltage values of the adapter plate are different.
Optionally, the host end is connected to the interposer through an RJ45 interface, and a target hardware interface type of the output interface of the interposer includes one of an RS232 interface, an RS485 interface, a CAN interface, a 433 interface, and a LoRa interface.
In a second aspect, the present application provides a hardware interface type adaptive matching system, applied to a host side, including:
the detection unit is used for detecting the power supply voltage value of the adapter plate when the host machine end is connected with the adapter plate;
the determining unit is used for determining a target hardware interface type correspondingly matched with the power supply voltage value in a preset lookup table, wherein the lookup table records the incidence relation of a plurality of hardware interface types corresponding to different power supply voltage values, and the target hardware interface type is one hardware interface type recorded in the lookup table;
and the starting unit is used for starting a preset driving program corresponding to the type of the target hardware interface to the adapter plate.
Optionally, the method further includes:
the definition unit is used for defining power supply voltage values corresponding to different hardware interface types, and each hardware interface type corresponds to a section of power supply voltage value range value;
and the association storage unit is used for associating each hardware interface type with the corresponding power supply voltage value to form a lookup table and storing the lookup table.
Optionally, when the determining unit determines, in a preset lookup table, the type of the target hardware interface correspondingly matched with the power supply voltage value, the determining unit is specifically configured to:
judging whether the power supply voltage value falls into a power supply voltage value range value corresponding to the type of the target hardware interface recorded in the lookup table;
if the power supply voltage value falls into the power supply voltage value range value corresponding to the target hardware interface type recorded in the lookup table, determining the target hardware interface type corresponding to the power supply voltage value range value;
and if the power supply voltage value does not fall into the power supply voltage value range value corresponding to the target hardware interface type recorded in the lookup table, warning of incompatible interface types is sent.
Optionally, the system further includes:
and the receiving unit is used for receiving and storing the driving programs corresponding to different hardware interface types.
Optionally, voltage-dividing resistors with different resistances are arranged in the power supply circuits of the adapter plates corresponding to different hardware interface types, so that when the adapter plate is connected with the host end, the power supply voltage values of the adapter plate are different.
Optionally, the host end is connected to the interposer through an RJ45 interface, and a target hardware interface type of the output interface of the interposer includes one of an RS232 interface, an RS485 interface, a CAN interface, a 433 interface, and a LoRa interface.
A third aspect of the present application provides a computer device comprising:
the system comprises a processor, a memory, a bus, an input/output interface and a network interface;
the processor is connected with the memory, the input/output interface and the network interface through a bus;
the memory stores a program;
the processor, when executing the program stored in the memory, implements the hardware interface type adaptive matching method of any one of the preceding first aspects.
A fourth aspect of the present application provides a computer-readable storage medium having stored therein instructions, which when executed on a computer, cause the computer to execute the hardware interface type adaptive matching method according to any one of the preceding first aspects.
A fifth aspect of the present application provides a computer program product, which when executed on a computer, causes the computer to execute the hardware interface type adaptive matching method according to any one of the preceding first aspects.
According to the technical scheme, the embodiment of the application has the following advantages:
the self-adaptive matching method of the hardware interface type records a query table recording incidence relations of a plurality of hardware interface types corresponding to different power supply voltage values at an active end in advance, and records driving programs required by different hardware interface types in advance, when the host end is connected with an adapter plate, the power supply voltage value of the adapter plate is detected, a target hardware interface type corresponding to the power supply voltage value is determined in the preset query table, and finally the preset driving program corresponding to the target hardware interface type is started to the adapter plate, so that the compatibility of an internal data interface of a charging pile can be greatly expanded through the adapter plate, as long as the incidence relations of the hardware interface types corresponding to the different power supply voltage values in the query table are continuously perfected, and the driving programs required by the different hardware interface types are recorded in advance, the compatibility of the internal data interface of the main control pile plate can be greatly expanded, the main control board of the charging pile can be switched to function modules with different hardware interface types, so that the functions of the charging pile are enriched, the technical gap between charging pile manufacturers is broken, and the resource waste is reduced.
Drawings
FIG. 1 is a flowchart illustrating an embodiment of a hardware interface type adaptive matching method according to the present application;
FIG. 2 is a schematic flow chart illustrating another embodiment of a hardware interface type adaptive matching method according to the present application;
FIG. 3 is a schematic structural diagram of an embodiment of a hardware interface type adaptive matching system according to the present application;
FIG. 4 is a schematic structural diagram of another embodiment of a hardware interface type adaptive matching system according to the present application;
FIG. 5 is a schematic structural diagram of an embodiment of a computer apparatus of the present application;
fig. 6 is a schematic view of a connection structure of a main control board and an adapter board in the charging pile according to an embodiment of the present application;
fig. 7 is a schematic diagram of an embodiment of a circuit connection between a main control board and an adapter board in the charging pile of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Please refer to fig. 6, the main control board of most charging piles in the prior art has a network card interface, and the common network card interface is an RJ45 interface, commonly called a crystal head. In this embodiment, the compatibility of the hardware interface types may be expanded by using the network card interface of the charging pile main control board, and a patch panel in adaptive connection with the network card interface (e.g., RJ45 female connector) is provided, where the network card interface (e.g., RJ45 male connector) of the patch panel is used as an input interface for adaptive connection with the network card interface of the main control board, and the patch panel further has another output interface, where the hardware interface type of the output interface includes one of an RS232 interface, an RS485 interface, a CAN interface, a 433 interface, and a LoRa interface, and the hardware interface type of the output interface is not specifically limited here, and may be selected as needed in practical application. Referring to fig. 7, in order to enable the main control board (main control end) to quickly and accurately identify the specific hardware interface type of the output interface of the conversion board, different voltage division circuits may be correspondingly arranged in the adapter board according to the specific hardware interface types of different output interfaces. The voltage dividing circuit is provided with voltage dividing resistors R2 with different resistance values in series connection aiming at different hardware interface types, the voltage dividing circuit is communicated with a power supply circuit of the adapter plate, when the adapter plate is connected with the host end, the host end can detect different resistance values in series connection in the voltage dividing circuit of the adapter plate through a sampling circuit connected with a network card interface and represent different power supply voltage values, and then the hardware interface types of the output interface of the adapter plate can be distinguished according to the different power supply voltage values by the main control end.
Based on the understanding of the hardware foundation, please refer to fig. 1, an embodiment of the hardware interface type adaptive matching method of the present application includes:
101. when the host computer end is connected with the adapter plate, the power supply voltage value of the adapter plate is detected.
It can be understood that, because the power supply circuit of the adapter plate is electrically connected with the voltage dividing circuit, when the host terminal is connected with the adapter plate, the power supply circuit of the adapter plate can be connected, and simultaneously, the voltage dividing circuit electrically connected with the power supply circuit can also be connected, at this moment, the host terminal can detect the power supply voltage value of the adapter plate through the network card interface, namely, the voltage value of the voltage dividing circuit, the output interface for realizing the target hardware interface type drive in the adapter plate is electrically connected with the power supply circuit after being connected in parallel with the voltage dividing circuit, so the host terminal detects the power supply voltage value of the adapter plate voltage dividing circuit, namely, the output interface driving voltage value of the adapter plate is also the power supply voltage value of the adapter plate.
102. And determining a target hardware interface type correspondingly matched with the power supply voltage value in a preset lookup table, wherein the lookup table records the incidence relation of a plurality of hardware interface types corresponding to different power supply voltage values, and the target hardware interface type is a hardware interface type recorded in the lookup table.
In order to accurately and quickly identify the hardware interface type of the adapter plate connected with the network card interface, the host computer needs to preset a lookup table recording the incidence relation of different power supply voltage values corresponding to a plurality of hardware interface types, and after the power supply voltage value of the adapter plate is detected in step 101, the target hardware interface type corresponding to the power supply voltage value is determined in the preset lookup table in the step, and the master control end determines that the adapter plate can convert the network card interface into the output interface of the target hardware interface type.
103. And starting a preset driving program corresponding to the type of the target hardware interface to the adapter plate.
It can be understood that the interface communication protocols required by different hardware interface types may be different, and although the adapter board converts the network card interface of the host end into the output interface of the target hardware interface type in hardware, the adapter board still needs a driver of the interface conversion protocol to drive normal use. In view of this, the driving end needs to preset and store driving programs corresponding to various hardware interface types, so that the driving end starts the driving program corresponding to the target hardware interface type in this step, the adapter board can smoothly convert the communication protocol of the network card interface into the communication protocol of the target hardware interface type, the compatibility of the internal data interface of the charging pile main control board is expanded, the charging pile main control board can be switched to function modules of different hardware interface types, the functions of the charging pile are enriched, the technical gap between charging piles is broken, and the waste of resources is reduced.
Referring to fig. 2, another embodiment of the adaptive matching method for hardware interface types according to the present application includes:
201. and receiving and storing the drivers corresponding to different hardware interface types.
It should be noted that the interface communication protocols required by different hardware interface types are usually different, and although the adapter board converts the network card interface of the host end into the output interface of the target hardware interface type on the hardware, the driver of the interface conversion protocol is still required to drive normal use. In view of this, the active side needs to store drivers corresponding to various hardware interface types in advance, for example, the driver of the RS232 interface, the driver of the RS485 interface, the driver of the CAN interface, the driver of the 433 interface, the driver of the LoRa interface, and the like are received and stored in this step.
202. And defining power supply voltage values corresponding to different hardware interface types, wherein each hardware interface type corresponds to a section of power supply voltage value range value. It should be noted that the adapter board of the present application is generally an in-out adapter board, that is, the adapter board only converts a network card interface of the main control end into an output interface of another hardware interface type. In addition, in this embodiment, the output interfaces of different adapter boards are distinguished by the power supply voltage value of the adapter board, so that different power supply voltage values need to be correspondingly defined for different hardware interface types. For example, referring to fig. 7, for two versions of the 3.3 v communication standard and the 5.0 v communication standard, assuming that the resistance R1 of the sampling circuit of the main board is fixed to 20K Ω, the power supply voltage values of the adapter board corresponding to different hardware interface types can be defined as the following table 1:
Figure 596153DEST_PATH_IMAGE001
TABLE 1
As can be seen from table 1, the resistor R2 having a resistance of 1K Ω is connected in series in the voltage dividing circuit of the adapter board as the identification standard of the hardware interface type RS232, so that the main control end sampling circuit can identify that the supply voltage of the adapter board end is 0.16 v under the 3.3 v communication standard, and this time is defined as follows: under the 3.3 volt communication standard, the main control end sampling circuit identifies that the power supply voltage of the adapter plate end is 0.16 volt, namely the adapter plate is considered as an output interface of a hardware interface type RS 232; similarly, the corresponding sampling circuit of the main control terminal under the 5.0 volt communication standard can recognize that the power supply voltage of the adapter board terminal is 0.24 volt, and then the following definitions are defined: under the 5.0 volt communication standard, the main control end sampling circuit recognizes that the power supply voltage of the adapter plate end is 0.24 volt, that is, the adapter plate is also considered to be an output interface of the hardware interface type RS232, and the definition process can be referred to for the power supply voltage principle of the adapter plate corresponding to other different hardware interface types, which is not described herein again.
It can be understood that, since the circuits of the adapter board and the main control terminal are both aged and affected by the humidity, temperature, etc. of the environment, it is possible that the main control terminal sampling circuit recognizes that the power supply voltage value of the adapter board terminal is not exactly equal to the set power supply voltage value, and in order to improve the recognition rate and the recognition accuracy, a power supply voltage value range value needs to be set for each hardware interface type, where the power supply voltage value range value includes the power supply voltage value corresponding to the hardware interface type. For example, a power supply voltage range value between 0.1 volt and 0.2 volt may be set for the adapter board terminal with a power supply voltage of 0.16 volt under the 3.3 volt communication standard, and as long as the master control terminal sampling circuit can recognize that the power supply voltage of the adapter board terminal is between 0.1 volt and 0.2 volt under the 3.3 volt communication standard, the adapter board is considered as an output interface of the hardware interface type RS232 to cope with the sampling error of the master control terminal sampling circuit, and it is also necessary to note that the power supply voltage range values defined by the hardware interface types cannot overlap each other and should be separated by a certain voltage difference distance to avoid misidentification.
203. And associating each hardware interface type with a corresponding power supply voltage value to form a lookup table and storing the lookup table.
For example, the table 1 is stored as a lookup table at the host, and update maintenance work such as addition, modification, deletion and the like can be performed on the lookup table, so as to gradually supplement the hardware interface types supported by the adapter plate, and improve the compatibility of the charging pile at the host.
204. And when the host terminal is connected with the adapter plate, detecting the power supply voltage value of the adapter plate.
The execution of this step is similar to step 101 in the embodiment of fig. 1, and the repeated parts are not described again here.
Specifically, it is assumed that the main control sampling circuit can recognize that the supply voltage of the patch panel terminal is 0.15 v under the 3.3 v communication standard.
205. Judging whether the power supply voltage value falls into a power supply voltage value range value corresponding to the type of the target hardware interface recorded in the query table; if the power supply voltage value falls into the range of power supply voltage values corresponding to the target hardware interface type recorded in the lookup table, execute step 206; if the power supply voltage value does not fall within the range of power supply voltage values corresponding to the target hardware interface type recorded in the lookup table, step 208 is executed.
This step further determines whether the power supply voltage value of the adapter board in step 204 falls within the range of the power supply voltage value corresponding to the target hardware interface type recorded in the lookup table stored in step 203, so as to quickly locate which hardware interface type the output interface of the adapter board is.
206. And determining the type of the target hardware interface corresponding to the value falling into the range of the power supply voltage value.
When the power supply voltage value is determined to fall within the power supply voltage value range value corresponding to the target hardware interface type recorded in the lookup table in step 105, it indicates that the output interface of the adapter board is the target hardware interface type corresponding to the power supply voltage value range value.
For example, in step 204, the master sampling circuit under the 3.3 v communication standard may recognize that the supply voltage of the adapter board terminal is 0.15 v, and in step 205, the supply voltage of the adapter board terminal under the 3.3 v communication standard is 0.15 v, which just falls within the corresponding supply voltage range value of the adapter board with the output interface being the hardware interface type RS232 of 0.1 v to 0.2 v, then this step may determine that the target hardware interface type of the adapter board is RS 232.
207. And starting a preset driving program corresponding to the type of the target hardware interface to the adapter plate.
The execution of this step is similar to step 103 in the embodiment of fig. 1, and the repeated parts are not described herein again.
For example, after determining that the target hardware interface type of the interposer is RS232 in step 206, in this step, the RS232 interface driver stored in step 201 is acquired and started to the interposer.
208. An alert is issued of the incompatible interface type.
When it is determined in step 105 that the power supply voltage value does not fall within the range of the power supply voltage value corresponding to the target hardware interface type recorded in the lookup table, it indicates that the output interface of the adapter board is the unreported hardware interface type, and it is likely that the driver of the hardware interface type does not exist at the main control end, and at this time, a warning of an incompatible interface type needs to be issued, so that the user can manually intervene to update the lookup table and add the corresponding driver.
Therefore, the self-adaptive matching method for the hardware interface types can expand the compatibility of the internal data interfaces of the charging pile through the adapter plate, and as long as the incidence relation of the hardware interface types corresponding to different power supply voltage values in the query table is continuously perfected and the driving programs required by the different hardware interface types are recorded in advance, the compatibility of the internal data interfaces of the charging pile main control plate can be greatly expanded, so that the charging pile main control plate can be used for adapting to the functional modules of the different hardware interface types, the functions of the charging pile are enriched, the technical gap between charging pile manufacturers is broken, and the resource waste is reduced.
The foregoing embodiment describes the hardware interface type adaptive matching method of the present application, and the following describes the hardware interface type adaptive matching system of the present application, please refer to fig. 3, where an embodiment of the hardware interface type adaptive matching system is applied to a host side, and includes:
the detection unit 301 is configured to detect a power supply voltage value of the adapter board when the host side is connected to the adapter board;
a determining unit 302, configured to determine, in a preset lookup table, a target hardware interface type that is correspondingly matched with the power supply voltage value, where the lookup table records association relationships of a plurality of hardware interface types corresponding to different power supply voltage values, and the target hardware interface type is a hardware interface type recorded in the lookup table;
a starting unit 303, configured to start a preset driver corresponding to the target hardware interface type to the adapter board.
The operations performed by the hardware interface type adaptive matching system according to the embodiment of the present application are similar to the operations performed in fig. 1, and are not described herein again.
Therefore, the hardware interface type adaptive matching system of the embodiment can expand the compatibility of the internal data interface of the charging pile through the adapter plate, and can greatly expand the compatibility of the internal data interface of the charging pile main control plate as long as the association relation between the hardware interface types corresponding to different power supply voltage values in the query table is continuously perfected and the driving programs required by the different hardware interface types are recorded in advance, so that the charging pile main control plate can be adapted to the functional modules of the different hardware interface types, the functions of the charging pile are enriched, the technical gap between charging pile manufacturers is broken, and the resource waste is reduced.
Referring to fig. 4, another embodiment of the present application hardware interface type adaptive matching system, applied to a host side, includes:
a detection unit 401, configured to detect a power supply voltage value of the adapter board when the host side is connected to the adapter board;
a determining unit 402, configured to determine, in a preset lookup table, a target hardware interface type correspondingly matched with the power supply voltage value, where the lookup table records association relationships between a plurality of hardware interface types and different power supply voltage values, and the target hardware interface type is a hardware interface type recorded in the lookup table;
a starting unit 403, configured to start a preset driver corresponding to the target hardware interface type to the adapter board.
Optionally, the method further includes:
a defining unit 404, configured to define power supply voltage values corresponding to different hardware interface types, where each hardware interface type corresponds to a segment of power supply voltage value range value;
and an association storage unit 405, configured to associate each hardware interface type with a corresponding power supply voltage value to form a lookup table, and store the lookup table.
Optionally, when the determining unit 402 determines, in a preset lookup table, a target hardware interface type correspondingly matched with the power supply voltage value, specifically configured to:
judging whether the power supply voltage value falls into a power supply voltage value range value corresponding to the type of the target hardware interface recorded in the lookup table;
if the power supply voltage value falls into the power supply voltage value range value corresponding to the target hardware interface type recorded in the lookup table, determining the target hardware interface type corresponding to the power supply voltage value range value;
and if the power supply voltage value does not fall into the power supply voltage value range value corresponding to the target hardware interface type recorded in the lookup table, warning of incompatible interface types is sent.
Optionally, the system further includes:
the receiving unit 406 is configured to receive and store drivers corresponding to different hardware interface types.
Optionally, voltage-dividing resistors with different resistances are arranged in the power supply circuits of the adapter plates corresponding to different hardware interface types, so that when the adapter plate is connected with the host end, the power supply voltage values of the adapter plate are different.
Optionally, the host end is connected to the interposer through an RJ45 interface, and a target hardware interface type of the output interface of the interposer includes one of an RS232 interface, an RS485 interface, a CAN interface, a 433 interface, and a LoRa interface.
The operation performed by the hardware interface type adaptive matching system according to the embodiment of the present application is similar to the operation performed in fig. 2, and is not described herein again.
Therefore, the hardware interface type adaptive matching system of the embodiment can expand the compatibility of the internal data interface of the charging pile through the adapter plate, and can greatly expand the compatibility of the internal data interface of the charging pile main control plate as long as the association relation between the hardware interface types corresponding to different power supply voltage values in the query table is continuously perfected and the driving programs required by the different hardware interface types are recorded in advance, so that the charging pile main control plate can be adapted to the functional modules of the different hardware interface types, the functions of the charging pile are enriched, the technical gap between charging pile manufacturers is broken, and the resource waste is reduced.
Referring to fig. 5, a computer device in an embodiment of the present application is described below, where an embodiment of the computer device in the embodiment of the present application includes:
the computer device 500 may include one or more processors (CPUs) 501 and a memory 502, where the memory 502 stores one or more applications or data. Wherein the memory 502 is volatile storage or persistent storage. The program stored in memory 502 may include one or more modules, each of which may include a sequence of instructions operating on a computer device. Still further, the processor 501 may be arranged in communication with the memory 502 to execute a series of instruction operations in the memory 502 on the computer device 500. One or more network interfaces 503, one or more input-output interfaces 504, and/or one or more operating systems, such as Windows Server, Mac OS, Unix, Linux, FreeBSD, etc. The processor 501 may perform the operations performed in the embodiments shown in fig. 1 to fig. 2, which are not described herein again.
In the several embodiments provided in the embodiments of the present application, it should be understood by those skilled in the art that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the unit is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. The integrated unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A hardware interface type adaptive matching method is applied to a host end and comprises the following steps:
when the host computer end is connected with the adapter plate, detecting the power supply voltage value of the adapter plate;
determining a target hardware interface type correspondingly matched with the power supply voltage value in a preset lookup table, wherein the lookup table records the incidence relation of a plurality of hardware interface types corresponding to different power supply voltage values, and the target hardware interface type is one hardware interface type recorded in the lookup table;
and starting a preset driving program corresponding to the type of the target hardware interface to the adapter plate.
2. The hardware interface type adaptive matching method according to claim 1, wherein before detecting the supply voltage value of the interposer, the method further comprises:
defining power supply voltage values corresponding to different hardware interface types, wherein each hardware interface type corresponds to a section of power supply voltage value range value;
and associating each hardware interface type with a corresponding power supply voltage value to form a lookup table and storing the lookup table.
3. The adaptive matching method for hardware interface types according to claim 2, wherein determining the target hardware interface type corresponding to the power supply voltage value in a preset lookup table comprises:
judging whether the power supply voltage value falls into a power supply voltage value range value corresponding to the type of the target hardware interface recorded in the lookup table;
if the power supply voltage value falls into the power supply voltage value range value corresponding to the target hardware interface type recorded in the lookup table, determining the target hardware interface type corresponding to the power supply voltage value range value;
and if the power supply voltage value does not fall into the power supply voltage value range value corresponding to the target hardware interface type recorded in the lookup table, warning of incompatible interface types is sent.
4. The hardware interface type adaptive matching method according to claim 1, wherein before detecting the supply voltage value of the interposer, the method further comprises:
and receiving and storing the drivers corresponding to different hardware interface types.
5. The hardware interface type self-adaptive matching method according to claim 1, wherein voltage dividing resistors with different resistance values are arranged in power supply circuits of the adapter plates corresponding to different hardware interface types, so that when the adapter plates are connected with the host end, the power supply voltage values of the adapter plates are different.
6. The hardware interface type adaptive matching method according to claim 1, wherein the host side is connected to the patch panel through an RJ45 interface, and a target hardware interface type of an output interface of the patch panel includes one of an RS232 interface, an RS485 interface, a CAN interface, a 433 interface, and a LoRa interface.
7. A hardware interface type adaptive matching system is applied to a host side and comprises the following components:
the detection unit is used for detecting the power supply voltage value of the adapter plate when the host machine end is connected with the adapter plate;
the determining unit is used for determining a target hardware interface type correspondingly matched with the power supply voltage value in a preset lookup table, wherein the lookup table records the incidence relation of a plurality of hardware interface types corresponding to different power supply voltage values, and the target hardware interface type is one hardware interface type recorded in the lookup table;
and the starting unit is used for starting a preset driving program corresponding to the type of the target hardware interface to the adapter plate.
8. A computer device, comprising:
the system comprises a processor, a memory, a bus, an input/output interface and a network interface;
the processor is connected with the memory, the input/output interface and the network interface through a bus;
the memory stores a program;
the processor, when executing the program stored in the memory, implements the hardware interface type adaptive matching method according to any one of claims 1 to 6.
9. A computer-readable storage medium having stored therein instructions which, when executed on a computer, cause the computer to perform the hardware interface type adaptive matching method of any one of claims 1 to 6.
10. A computer program product, which, when executed on a computer, causes the computer to carry out the hardware interface type adaptive matching method according to any one of claims 1 to 6.
CN202210714580.5A 2022-06-23 2022-06-23 Hardware interface type self-adaptive matching method and related device Active CN114817337B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210714580.5A CN114817337B (en) 2022-06-23 2022-06-23 Hardware interface type self-adaptive matching method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210714580.5A CN114817337B (en) 2022-06-23 2022-06-23 Hardware interface type self-adaptive matching method and related device

Publications (2)

Publication Number Publication Date
CN114817337A true CN114817337A (en) 2022-07-29
CN114817337B CN114817337B (en) 2022-09-16

Family

ID=82521089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210714580.5A Active CN114817337B (en) 2022-06-23 2022-06-23 Hardware interface type self-adaptive matching method and related device

Country Status (1)

Country Link
CN (1) CN114817337B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651353A (en) * 2008-08-12 2010-02-17 硕天科技股份有限公司 Universal USB power supply
CN104519405A (en) * 2013-10-08 2015-04-15 联想(北京)有限公司 Control method and electronic equipment
CN104917014A (en) * 2014-03-13 2015-09-16 苏州普福斯信息科技有限公司 Three-in-one adapter and control system thereof
US20150316969A1 (en) * 2014-04-30 2015-11-05 Micron Technology, Inc. Apparatuses supporting multiple interface types and methods of operating the same
WO2016155483A1 (en) * 2015-04-02 2016-10-06 中兴通讯股份有限公司 Interface identification method and terminal
CN110154803A (en) * 2019-04-09 2019-08-23 浙江腾亿新能源科技有限公司 Direct-current charging post control device a kind of succinct and that compatibility is high
CN110336962A (en) * 2019-06-14 2019-10-15 未来(北京)黑科技有限公司 Signal processing method, pinboard, HUD equipment and storage medium
CN110569207A (en) * 2019-04-10 2019-12-13 北京乐驾科技有限公司 Interface multiplexing device and vehicle-mounted equipment
CN110704350A (en) * 2019-09-12 2020-01-17 苏州浪潮智能科技有限公司 Resource management method and device, electronic equipment and storage medium
US20200177006A1 (en) * 2017-07-03 2020-06-04 France Brevets Coupling interface and method of operation
CN112422694A (en) * 2020-12-07 2021-02-26 国网甘肃省电力公司营销服务中心 Method for accessing information of multi-type energy equipment into system based on energy controller
CN113037506A (en) * 2021-02-25 2021-06-25 山东英信计算机技术有限公司 Interface switching control method, device, equipment and computer readable storage medium
CN213947866U (en) * 2020-11-11 2021-08-13 武汉璟丰科技有限公司 Driving board card compatible with multiple nozzles
CN113489504A (en) * 2021-07-05 2021-10-08 深圳市商汤科技有限公司 Circuit board, electronic equipment, signal processing method and device
CN114498831A (en) * 2022-01-24 2022-05-13 维沃移动通信有限公司 Electronic device and charging control method

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651353A (en) * 2008-08-12 2010-02-17 硕天科技股份有限公司 Universal USB power supply
CN104519405A (en) * 2013-10-08 2015-04-15 联想(北京)有限公司 Control method and electronic equipment
CN104917014A (en) * 2014-03-13 2015-09-16 苏州普福斯信息科技有限公司 Three-in-one adapter and control system thereof
US20150316969A1 (en) * 2014-04-30 2015-11-05 Micron Technology, Inc. Apparatuses supporting multiple interface types and methods of operating the same
WO2016155483A1 (en) * 2015-04-02 2016-10-06 中兴通讯股份有限公司 Interface identification method and terminal
US20200177006A1 (en) * 2017-07-03 2020-06-04 France Brevets Coupling interface and method of operation
CN110154803A (en) * 2019-04-09 2019-08-23 浙江腾亿新能源科技有限公司 Direct-current charging post control device a kind of succinct and that compatibility is high
CN110569207A (en) * 2019-04-10 2019-12-13 北京乐驾科技有限公司 Interface multiplexing device and vehicle-mounted equipment
CN110336962A (en) * 2019-06-14 2019-10-15 未来(北京)黑科技有限公司 Signal processing method, pinboard, HUD equipment and storage medium
CN110704350A (en) * 2019-09-12 2020-01-17 苏州浪潮智能科技有限公司 Resource management method and device, electronic equipment and storage medium
CN213947866U (en) * 2020-11-11 2021-08-13 武汉璟丰科技有限公司 Driving board card compatible with multiple nozzles
CN112422694A (en) * 2020-12-07 2021-02-26 国网甘肃省电力公司营销服务中心 Method for accessing information of multi-type energy equipment into system based on energy controller
CN113037506A (en) * 2021-02-25 2021-06-25 山东英信计算机技术有限公司 Interface switching control method, device, equipment and computer readable storage medium
CN113489504A (en) * 2021-07-05 2021-10-08 深圳市商汤科技有限公司 Circuit board, electronic equipment, signal processing method and device
CN114498831A (en) * 2022-01-24 2022-05-13 维沃移动通信有限公司 Electronic device and charging control method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丁慧龙: "电动汽车自助充电通用服务系统设计", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》 *

Also Published As

Publication number Publication date
CN114817337B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
EP2472402B1 (en) Remote management systems and methods for mapping operating system and management controller located in a server
EP2447850B1 (en) Method and device for modifying driving and matching information of usb device
EP2523116B1 (en) Method and device for identifying device ports of data card in linux system
US10372073B2 (en) Repair method and repair chip for regenerative ink cartridge, and regenerative ink cartridge
EP2798428B1 (en) Apparatus and method for managing operation of a mobile device
CN110673584B (en) Reliability detection method and device for electric power-assisted brake system
WO2023065601A1 (en) Server component self-test anomaly recovery method and device, system, and medium
CN114817337B (en) Hardware interface type self-adaptive matching method and related device
US9158645B2 (en) Continuously transferring data using a USB mass storage device
CN115407116A (en) Method and device for determining charging current
CN113915942B (en) Refrigerator and WiFi module working state detection method
WO2020000657A1 (en) Method and apparatus for establishing operation and maintenance monitoring connection, terminal device, and medium
CN111124785B (en) Method, device, equipment and storage medium for hard disk fault detection
CN210721440U (en) PCIE card abnormity recovery device, PCIE card and PCIE expansion system
CN107273121B (en) Management method and device for restarting intelligent equipment
CN114035026B (en) Micro control unit chip for battery management system and chip abnormality detection method
EP2562649B1 (en) Method for repairing communication abnormality between data card and host
CN111092765B (en) Intelligent driving method, system, electronic device and readable storage medium
CN111722879A (en) USB flash disk identification method, Linux system, Linux equipment and readable storage medium
CN107729170B (en) Method and device for generating dump file by HBA card
US6560750B2 (en) Method for providing master-slave heat-swapping apparatus and mechanism on a mono-ATA bus
CN116959549B (en) Automatic hard disk group array method, equipment and medium
WO2024113571A1 (en) Polarity inversion method and apparatus, and storage medium and electronic apparatus
CN115407759A (en) Flight fault-tolerant control method and system for board card fault of flight control computer
CN104793701A (en) Information processing method and device

Legal Events

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