Arrangement method of mapping table in mapping manager, binding and arrangement method for bus adapter and channel, storage medium, electronic device, computer device, connection method of bus adapter and computer device, binding and arrangement system for bus adapter and channel, mapping manager, connection system of bus adapter, and bus adapter

The method for arranging a mapping table in a mapping management device addresses software modification and compatibility issues by automatically identifying and connecting bus adapters, improving development efficiency and reliability.

JP2024116280AActive Publication Date: 2024-08-27SHANGHAI TOSUN TECH LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2024093367
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-08-02
Filing Date
2024-06-08
Publication Date
2024-08-27
Estimated Expiration
2042-07-28

AI Technical Summary

Technical Problem

Conventional automotive bus adapters require software modifications and face compatibility issues when switching between different adapters, leading to increased work and reduced software reliability.

Method used

A method for arranging a mapping table in a mapping management device that includes information fields such as application name, channel type, logical channel index, hardware type, and hardware index, allowing automatic identification and connection of bus adapters without software modifications.

Benefits of technology

Enables seamless switching between bus adapters without software changes, enhancing application development efficiency and reducing errors by providing a general architecture for accessing adapter resources from multiple manufacturers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024116280000001_ABST
    Figure 2024116280000001_ABST
Patent Text Reader

Abstract

To provide a mapping table arrangement method, or the like, in a mapping manager.SOLUTION: A mapping table includes one or more of an application program name, a channel type, a logical channel index, a hardware type, a hardware index, and a hardware channel index. The application program name is a string name of an application program using a mapping manager. The channel type is a type of logical channel that the mapping manager is responsible for mapping. The logical channel index is a logical channel resource number of the application program. The hardware type is a type of manufacturer and a model of a corresponding bus adapter. The hardware index is the number of distinguishing hardware of the same type after the corresponding bus adapter is inserted. The hardware channel index is the number of hardware channels of the same type in the corresponding bus adapter.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention belongs to the field of automotive bus adapter technology, and more specifically relates to a method for arranging a mapping table in a mapping management device, a method for binding and arranging a bus adapter and a channel, a storage medium, an electronic device, a computer device, a method for connecting a bus adapter and a computer device, a binding and arranging system for a bus adapter and a channel, a mapping management device, a bus adapter connection system, and a bus adapter. [Background technology]

[0002] An automotive bus adapter consists of a device with a USB interface on one end and one or more external automotive bus interfaces (such as CAN bus, LIN bus, FlexRay bus, automotive Ethernet, etc.) on the other end. There are many types of conventional automotive bus adapters, originating from different manufacturers. The automotive bus adapter needs to be matched with a host application developed by the user to monitor the automotive bus. The host application always needs to connect multiple automotive bus adapters to access multiple buses simultaneously. During the application process, the conventional technical solution usually hard codes the automotive bus adapters that need to be connected into the software.

[0003] During the application process, the prior art solutions hard-code the required car bus adapter into the software, which brings about two problems. First, replacing the car bus adapter A with the car bus adapter B requires changing the software at the same time, replacing the connection code of the car bus adapter A with the connection code of the car bus adapter B, which requires additional software modification time. If the car bus adapter B is later replaced with the car bus adapter A, the software needs to be modified again. Some users try to support the car bus adapter A and the car bus adapter B at the same time and complete the adapter switching by configuration, but this method also has the problem of incompatibility with the car bus adapter C. Secondly, when the software simultaneously connects two identical automobile bus adapters A and B, namely, A is inserted into the computer first and then B is inserted into the computer, and B is inserted into the computer first and then A is inserted into the computer, it is difficult for the software to distinguish which is A and which is B. Even if the user reads the serial numbers of the automobile bus adapters to bind A and B, it is difficult to automatically handle the problem of identifying the bus adapter after A is replaced with C in the subsequent application process.

[0004] Such problems must ultimately be addressed by modifying the software, which results in problems such as an increase in the amount of work and a decrease in the reliability of the software.

[0005] Therefore, it is necessary to design a method for arranging the mapping table in a new mapping management device based on the above technical problems. Summary of the Invention

[0006] An object of the present invention is to provide a method for arranging a mapping table in a mapping management device.

[0007] In order to solve the above technical problem, the method of arranging a mapping table in a mapping management device of the present invention includes arranging a plurality of information fields in a mapping table, the plurality of information fields including one or more of an application name, a channel type, a logical channel index, a hardware type, a hardware index, and a hardware channel index, the application name is a string name of an application that uses the mapping management device, the channel type is a channel type of a logical channel that the mapping management device is responsible for mapping, the logical channel index is a logical channel resource number of an application, the hardware type is a manufacturer type of a corresponding bus adapter and a model number of the bus adapter, the hardware index is a number that distinguishes similar hardware types after the corresponding bus adapter is inserted, and the hardware channel index is a number of a similar hardware channel carried inside the corresponding bus adapter.

[0008] Preferably, in the above method, the logical channel resource numbers increase from small to large. Preferably, in the above method, the hardware index is obtained by sorting in ascending order through the sequence numbers of the bus adapters, and after sorting the sequence numbers SN of each bus adapter in ascending order, the hardware index of the bus adapter with the smallest sequence number is the lowest. Preferably, in the above method, the hardware index is a number for distinguishing similar hardware types after a corresponding bus adapter is inserted, and the number is dynamically adjusted according to a sorting method of sequence numbers of the bus adapters. Preferably, in the above method, the hardware channel index is a number of a similar hardware channel carried inside a corresponding bus adapter, and the number is preset in the same bus adapter.

[0009] In another aspect, the present invention provides a method for binding and arranging a bus adapter and a channel, the method including arranging a mapping table of a mapping management device using the above-mentioned arrangement method, and a method for associating logical channels with corresponding hardware channels using the mapping table, the associating method including associating each logical channel with a corresponding hardware channel of the bus adapter based on the mapping table. Preferably, the above method further includes a method of connecting the logical channel to a corresponding hardware channel to perform data communication, wherein when an application is connected to a bus adapter, all supported bus adapters are scanned, and a mapping table related to the application is searched for in all mapping tables included in the mapping management device based on the application name, and whether or not corresponding hardware exists is searched for based on the hardware type, hardware index and hardware channel index in the mapping table corresponding to each logical channel related to the application, and if present, the bus adapter corresponding to the hardware is initialized, and the data transmission and reception function of the logical channel is connected to the hardware channel of the corresponding bus adapter to perform data communication, otherwise the connection fails. Preferably, in the method, the application is used to access channel resources of bus adapters produced by different manufacturers. Preferably, in the above method, the application sets the model number of the bus adapter or sets a change of the hardware channel in the process of use. Preferably, in the above method, the application module comprises a single or multiple logical channels. Preferably, in the above method, the bus adapter has a single or multiple hardware channels.

[0010] In another aspect, the present invention is a computer-readable storage medium having stored thereon a program for executing the mapping table arrangement method in the mapping management device described above, or a program for executing the binding and arrangement method between a bus adapter and a channel described above.

[0011] In another aspect, the present invention is an electronic device comprising a processor, a computer-readable storage medium, a communication bus, and a communication interface, the processor, the computer-readable storage medium, and the communication interface realizing mutual communication via the communication bus, and the computer-readable storage medium is configured to store a program for executing the above-mentioned mapping table arrangement method in the mapping management device, The processor is configured to execute the program.

[0012] In another aspect, the present invention is a computer device that is configured, when the computer device and a bus adapter are connected, to perform data communication with the bus adapter after executing a program for the binding and arrangement method between the bus adapter and a channel described above.

[0013] In another aspect, the present invention is a method for connecting a bus adapter to a computer device, the computer device being configured to perform data communication with the bus adapter after executing a program for the binding and arrangement method between the bus adapter and a channel described above.

[0014] In another aspect, the present invention is a bus adapter and channel binding and configuration system having a computer device, the computer device including a mapping table configuration module, an association module and a connection module, the mapping table configuration module configures a mapping table of a mapping management device, the association module associates a logical channel with a corresponding hardware channel by the mapping table, and the connection module connects the logical channel to the corresponding hardware channel to perform data communication. Preferably, in the above system, arranging the mapping table of the mapping management device includes arranging a plurality of information fields in the mapping table, the information fields including one or more of an application name, a channel type, a logical channel index, a hardware type, a hardware index, and a hardware channel index, the application name is a string name of an application that uses the mapping management device, the channel type is the channel type of the logical channel for which the mapping management device is responsible for mapping, the logical channel index is a logical channel resource number of the application, the hardware type is the manufacturer type of the corresponding bus adapter and the model number of the bus adapter, the hardware index is a number that distinguishes similar hardware types after the corresponding bus adapter is inserted, and the hardware channel index is a number of a similar hardware channel carried inside the corresponding bus adapter. Preferably, in the above system, connecting a logical channel to a corresponding hardware channel to perform data communication includes scanning all supported bus adapters when an application is connected to a bus adapter, and searching for a mapping table related to the application based on the application name in all mapping tables included in the mapping management device, searching for whether or not corresponding hardware exists based on the hardware type, hardware index, and hardware channel index in the mapping table corresponding to each logical channel related to the application, initializing the corresponding bus adapter if it exists, and connecting the data transmission and reception function of the logical channel to the hardware channel of the corresponding bus adapter to perform data communication, and if not, the connection fails.

[0015] In another aspect, the present invention is a mapping management device having a computer device, the computer device being configured to execute a program of the above-mentioned bus adapter and channel binding and arrangement method so that logical channels and hardware channels are associated by the mapping management device. In another aspect, the present invention is a bus adapter connection system having a computer device and at least one bus adapter, the computer device including an application module and a mapping management device, the computer device executing a program of the above-mentioned bus adapter and channel binding and arrangement method, and associating each logical channel in the application module with a hardware channel of the bus adapter to perform data communication, and then connecting them. In another aspect, the present invention is a bus adapter configured to communicate with a computer device that executes a program for the above-described bus adapter to channel binding and configuration method. Preferably, in the above bus adapter, the hardware channel index is a number of a similar hardware channel carried inside the corresponding bus adapter. Preferably, in the above bus adapter, the bus adapter and the computer device communicate using a CAN bus. Preferably, in the above bus adapter, the bus adapter has a single or multiple hardware channels.

[0016] The beneficial effects of the present invention are as follows: The present invention realizes a general architecture for an application to access bus adapter resources by configuring a mapping table in a mapping management device, associating logical channels with corresponding hardware channels through the mapping table, and connecting the logical channels to the corresponding hardware channels for data communication. An application using this architecture can arbitrarily set the model number of the bus adapter and the hardware channel it needs to connect to, and after each configuration change, the mapping relationship is immediately effective, and there is no need to modify the user's software, thereby improving the development efficiency of applications and reducing the possibility of errors.

[0017] Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and obtained by the structure particularly pointed out in the description and drawings.

[0018] In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. [Brief description of the drawings]

[0019] In order to more clearly describe the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly describes the drawings that need to be used in the description of the specific embodiments or the prior art, but the drawings in the following description are some embodiments of the present invention, and it is obvious that those skilled in the art can obtain other drawings from these drawings without exerting creative efforts.

[0020] [Figure 1] FIG. 1 is a flow chart of a method for binding and arranging a bus adapter and a channel according to the present invention. [Diagram 2] FIG. 2 is a schematic diagram of the binding and configuration of bus adapters and channels according to the present invention. [Diagram 3] FIG. 3 is a schematic diagram of a bus adapter hardware index sorting method according to the present invention. [Figure 4] FIG. 4 is a block diagram showing the principle of the binding and configuration system between a bus adapter and a channel according to the present invention. [Diagram 5] FIG. 5 is a block diagram showing the principle of a bus adapter connection system according to the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0021] In order to make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. It is clear that the described embodiments are only some embodiments of the present invention, and are not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without performing creative labor, belong to the scope of protection of the present invention.

[0022] Example 1 FIG. 1 is a flow chart of a method for binding and arranging a bus adapter and a channel according to the present invention.

[0023] As shown in Fig. 1, the first embodiment provides a method for binding and configuring a bus adapter and a channel, including: configuring a mapping table in a mapping management device, associating a logical channel with a corresponding hardware channel through the mapping table, and connecting the logical channel to the corresponding hardware channel for data communication, thereby realizing a general architecture for an application to access a bus adapter resource. An application using this architecture can arbitrarily set the model number of the bus adapter and the hardware channel it needs to connect, and after changing the configuration every time, the mapping relationship is immediately effective, and there is no need to modify the user's software, thereby improving the application development efficiency and reducing the possibility of errors.

[0024] FIG. 2 is a schematic diagram of the binding and configuration of bus adapters and channels according to the present invention.

[0025] As shown in FIG. 2, in this embodiment, the method for configuring the mapping table of the mapping management device includes the following: The mapping management device is responsible for associating each logical channel with a certain hardware channel of the bus adapter, and each association is realized by a mapping table written in the mapping management device. Each mapping table includes six information fields, and all of these mapping tables together form a mapping network between potential applications and potential bus adapters in a computer. The mapping tables in the mapping management device can be added and deleted arbitrarily by a user, and the six information fields in the mapping table can be arbitrarily configured. The six information fields in the mapping table include application name, channel type, logical channel index, hardware type, hardware index, and hardware channel index. For the automotive bus types supported by the application, each type has one or more logical channels, and the number and type of logical channels are set by the user (for example, the user can set the number and type of logical channels through corresponding software). Take the CAN bus supported by application A as an example, which has three logical channels, and the mapping target corresponding to each logical channel is managed by the mapping management device. A mapping table is used to associate each logical channel of the mapping management device with a certain hardware channel of the bus adapter, realizing a general architecture for one application to access bus adapter resources. An application using this architecture can arbitrarily configure the model number and hardware channel of the bus adapter it needs to connect to, and can deal with the problems of replacing the automobile bus adapter and the priority of accessing the computer by simply modifying the software configuration without modifying the software, thereby avoiding additional development investment and ensuring the reliability of the software.

[0026] In this embodiment, the application name is a character string name of an application that uses the mapping management device, for example, application A. The channel type is a channel type of a logical channel that the mapping management device is responsible for mapping, for example, logical channel A of application A is a CAN bus type. The logical channel index is a logical channel resource number of an application, the number increases from small to large, the logical channel index is a number assigned to a logical channel, the index value is a number sequence, the index value increases from small to large, and if there are three logical channels, their indexes are 0, 1, 2, in order. The hardware type is a manufacturer type of the corresponding bus adapter and a model number of the bus adapter under the manufacturer. The hardware index is a number that distinguishes similar hardware after the corresponding bus adapter is inserted into a computer, and the number is dynamically adjusted in the computer based on the sorting method of the sequence number of the bus adapter. The hardware channel index is a number of a similar hardware channel carried inside the corresponding bus adapter, and the number is preset in the same bus adapter. For example, hardware channel A of bus adapter A.

[0027] FIG. 3 is a schematic diagram of a bus adapter hardware index sorting method according to the present invention.

[0028] As shown in FIG. 3, in this embodiment, the hardware index is obtained by sorting the sequence numbers of the bus adapters in ascending order, and after sorting the sequence numbers SN of each bus adapter in ascending order, the hardware index of the bus adapter with the smallest sequence number is the lowest. The hardware index is obtained by sorting the sequence numbers of the bus adapters in ascending order, and the sorting method is based on string matching. The sequence numbers of the bus adapters are read and obtained based on the API interface provided by the manufacturer of the bus adapter. For example, N bus adapters of the same manufacturer and type are inserted into a computer, and the serial numbers SN of each bus adapter are different. After sorting the SN serial numbers in ascending order, the hardware index of the bus adapter with the smallest serial number (SN=000001) is the lowest, and the hardware index of the bus adapter with the second smallest serial number (SN=000123) is the second lowest, and so on.

[0029] In this embodiment, the method for associating logical channels with corresponding hardware channels through the mapping table includes: Associating each logical channel with a hardware channel of a corresponding bus adapter based on the mapping table.

[0030] In this embodiment, the method for connecting the logical channels to corresponding hardware channels for data communication includes the following: When an application is connected to a bus adapter, all supported bus adapters inserted in the computer are scanned, and a mapping table related to the application is searched for in all mapping tables included in the mapping management device based on the application name. Whether corresponding hardware exists is searched for based on the hardware type, hardware index, and hardware channel index in the mapping table corresponding to each logical channel related to the application. If there is, the corresponding bus adapter is initialized, and the data transmission and reception function of the logical channel is connected to the hardware channel of the corresponding bus adapter, thereby realizing data communication between the application logical channel and the corresponding bus. If it is found during the connection process that the application logical channel does not have corresponding hardware, the connection fails. A general architecture is realized in which an application accesses bus adapter resources. An application using this architecture can arbitrarily set the model number and hardware channel of the bus adapter it needs to connect, and after each configuration change, the mapping relationship is immediately effective, and there is no need to modify the user's software, thereby improving the development efficiency of the application and reducing the possibility of errors. At the same time, it is realized that the user's application can indiscriminately access the channel resources of automotive bus adapters produced by different manufacturers. If the bus adapter or hardware channel is changed during the application process, only the configuration needs to be changed without modifying the software. Users can choose this method when developing applications and achieve more results in less time.

[0031] Example 2 FIG. 4 is a block diagram showing the principle of the binding and configuration system between a bus adapter and a channel according to the present invention.

[0032] As shown in FIG. 4, on the basis of the first embodiment, the second embodiment further provides a binding and configuration system between a bus adapter and a channel, including: a mapping table configuration module configures a mapping table of a mapping management device; an association module associates a logical channel with a corresponding hardware channel through the mapping table; a connection module connects a logical channel to a corresponding hardware channel to perform data communication; a general architecture is realized in which an application accesses a bus adapter resource; an application using this architecture can arbitrarily set the model number and hardware channel of the bus adapter it needs to connect to, and after changing the configuration every time, the mapping relationship is immediately effective, and there is no need to modify the user's software, thereby improving the application development efficiency and reducing the possibility of errors; and at the same time, the user's application is realized to indiscriminately access the channel resources of the automotive bus adapters produced by different manufacturers. If the bus adapter or hardware channel is changed during the application process, only the configuration needs to be changed without modifying the software. Users can choose this method when developing applications and achieve more results in less time.

[0033] In this embodiment, the method in which the mapping table arrangement module arranges the mapping table of the mapping management device, the association module associates the logical channels with the corresponding hardware channels using the mapping table, and the connection module connects the logical channels with the corresponding hardware channels to perform data communication has been described in detail in the first embodiment, so the description will be omitted in this embodiment.

[0034] Example 3 On the basis of the first embodiment, the third embodiment further provides a mapping management device. The mapping management device is adapted to associate a logical channel with a hardware channel. A general architecture is realized in which an application accesses a bus adapter resource. An application using this architecture can arbitrarily set the model number of the bus adapter and the hardware channel it needs to connect to, and after each configuration change, the mapping relationship is immediately effective, and there is no need to modify the user's software, thereby improving the development efficiency of the application and reducing the possibility of errors.

[0035] In this embodiment, the method of associating the logical channels with the hardware channels employs the binding and arrangement method between the bus adapter and the channels in the first embodiment.

[0036] Example 4 FIG. 5 is a block diagram showing the principle of a bus adapter connection system according to the present invention.

[0037] As shown in FIG. 5, on the basis of the third embodiment, the fourth embodiment further provides a bus adapter connection system, which includes an application module (a module on which an application is installed), a mapping management device, and a bus adapter. The mapping management device is adapted to associate and connect each logical channel in the application module with a hardware channel of the bus adapter to perform data communication. The system realizes that a user's application can indiscriminately access channel resources of automotive bus adapters produced by different manufacturers, and when the bus adapter or hardware channel is changed during the application process, only the configuration needs to be changed without modifying the software. Users can choose this method when developing applications and achieve more results in less time.

[0038] In this embodiment, the application module can have a single or multiple logical channels, and the bus adapter can have a single or multiple hardware channels.

[0039] In this embodiment, the application module, mapping management device, and bus adapter are adapted to perform data communication by associating each logical channel with a hardware channel of the bus adapter using the binding and arrangement method between the bus adapter and the channel in embodiment 1, and then connecting the logical channels.

[0040] In summary, the present invention realizes a general architecture for an application to access bus adapter resources by configuring a mapping table in a mapping management device, associating logical channels with corresponding hardware channels through the mapping table, and connecting the logical channels to the corresponding hardware channels for data communication. An application using this architecture can arbitrarily set the model number of the bus adapter and the hardware channel it needs to connect to, and after each configuration change, the mapping relationship is immediately effective, without the need to modify the user's software, thereby improving the application development efficiency and reducing the possibility of errors.

[0041] In some embodiments described herein, it should be understood that the disclosed apparatus and method may be realized in other ways. The apparatus embodiments described above are merely schematic, and for example, the flowcharts and block diagrams in the drawings illustrate possible architectures, functions, and operations of the apparatus, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of code including one or more executable instructions for performing a certain logical function. It should be noted that in some alternative implementations, the functions depicted in the blocks may occur in a different order than that depicted in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and may sometimes be executed in a reverse order depending on the functions involved. It should also be noted that each block of the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts may be implemented in a dedicated hardware-based system that performs a certain function or operation, or may be implemented in a combination of dedicated hardware and computer instructions.

[0042] In addition, each functional module in each embodiment of the present invention may be integrated together to form a single independent part, each module may exist independently, or two or more modules may be integrated together to form a single independent part.

[0043] The above functions can be realized in the form of software functional modules and stored in a computer readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention can be essentially or the part that contributes to the prior art or the part of the technical solution can be expressed in the form of a software product, and the computer software product is stored in a storage medium and contains a plurality of instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method in each embodiment of the present invention. The above storage medium includes various media that can store program codes, such as U disks, removable disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical disks.

[0044] The above-mentioned preferred embodiments of the present invention have been enlightened, and those skilled in the art can make various changes and modifications based on the above description without departing from the technical spirit of the present invention. The technical scope of the present invention is not limited to the contents of the specification, but should be determined based on the claims.

Claims

1. arranging a plurality of information fields in a mapping table; the plurality of information fields including one or more of an application name, a channel type, a logical channel index, a hardware type, a hardware index, and a hardware channel index; The application name is a character string name of an application that uses a mapping management device; The channel type is a channel type of a logical channel for which a mapping management device is responsible for mapping; the logical channel index being an application logical channel resource number; The hardware type is the manufacturer type of the corresponding bus adapter and the model number of the bus adapter; The hardware index is a number that distinguishes similar hardware types after the corresponding bus adapter is inserted; 2. A method for arranging a mapping table in a mapping management device, comprising: a) selecting a hardware channel index from among a plurality of hardware channels;

2. 2. The method of claim 1, wherein the logical channel resource numbers increase from low to high.

3. 2. The method according to claim 1, characterized in that the hardware index is obtained by a method of sorting in ascending order through sequence numbers of bus adapters, and after sorting the sequence numbers SN of each bus adapter in ascending order, the hardware index of the bus adapter with the smallest sequence number is the lowest.

4. The hardware index is a number that distinguishes similar hardware types after a corresponding bus adapter is inserted, 2. The method of claim 1, further comprising dynamically adjusting said number based on a bus adapter's sequence number sorting method.

5. The hardware channel index is a number of a corresponding hardware channel carried within the corresponding bus adapter; 2. The method of claim 1, wherein said numbers are pre-assigned to identical bus adapters.

6. A method for binding and arranging a bus adapter and a channel, comprising: arranging a mapping table of a mapping management device using the arrangement method according to any one of claims 1 to 5; and a method for associating a logical channel with a corresponding hardware channel by the mapping table, the method comprising: A method for binding and configuring channels to a bus adapter, comprising associating each logical channel with a corresponding hardware channel of the bus adapter based on a mapping table.

7. A method for connecting the logical channels to corresponding hardware channels for data communication, Scanning all supported bus adapters when an application is connected to the bus adapter, and searching for a mapping table related to the application based on the application name in all mapping tables included in the mapping management device; Searching whether corresponding hardware exists based on the hardware type, the hardware index, and the hardware channel index in the mapping table corresponding to each logical channel associated with the application; 7. The method according to claim 6, further comprising initializing a bus adapter corresponding to the hardware if present, and connecting the data transmission / reception function of a logical channel to a hardware channel of the corresponding bus adapter to perform data communication, otherwise failing to connect.

8. 7. The method of claim 6, wherein the application is used to access channel resources of bus adapters produced by different manufacturers.

9. 7. The method according to claim 6, wherein the application sets the model number of the bus adapter or sets the change of the hardware channel in the process of use.

10. 7. The method of claim 6, wherein an application module comprises a single or multiple logical channels.

11. 7. The method of claim 6, wherein the bus adapter has a single or multiple hardware channels.

12. A computer-readable storage medium having stored thereon a program for executing a mapping table arrangement method in a mapping management device according to any one of claims 1 to 5, or a computer-readable storage medium having stored thereon a program for executing a binding and arrangement method between a bus adapter and a channel according to claim 6.

13. An electronic device comprising: a processor, a computer-readable storage medium, a communication bus, and a communication interface, the processor, the computer-readable storage medium, and the communication interface realizing communication between each other via the communication bus; The computer-readable storage medium is configured to store a program for executing the mapping table arrangement method in the mapping management device according to any one of claims 1 to 5, The electronic device, wherein the processor is configured to execute the program.

14. A computer device, characterized in that, when the computer device and a bus adapter are connected, the computer device is configured to perform data communication with the bus adapter after executing a program for the method of binding and arranging a bus adapter and a channel as described in claim 6.

15. A method for connecting a bus adapter to a computer device, the computer device being configured to perform data communication with the bus adapter after executing a program for the method for binding and arranging a bus adapter and a channel as described in claim 6.

16. 1. A bus adapter and channel binding and configuration system comprising a computing device, comprising: The computer device includes a mapping table arrangement module, an association module, and a connection module; The mapping table configuration module configures a mapping table of a mapping management device; The association module associates logical channels with corresponding hardware channels through a mapping table; The connection module connects a logical channel to a corresponding hardware channel for data communication.

17. configuring the mapping table of the mapping management device, arranging a plurality of information fields in a mapping table; the information fields include one or more of an application name, a channel type, a logical channel index, a hardware type, a hardware index, and a hardware channel index; The application name is a character string name of an application that uses a mapping management device; The channel type is a channel type of a logical channel for which a mapping management device is responsible for mapping; the logical channel index being an application logical channel resource number; The hardware type is the manufacturer type of the corresponding bus adapter and the model number of the bus adapter; The hardware index is a number that distinguishes similar hardware types after the corresponding bus adapter is inserted; 17. The system for binding and configuring a bus adapter and a channel according to claim 16, wherein the hardware channel index is a number of a similar hardware channel carried inside a corresponding bus adapter.

18. Connecting logical channels to corresponding hardware channels for data communication is scanning all supported bus adapters when an application is connected to the bus adapter, and searching for a mapping table related to the application based on the application name in all mapping tables included in the mapping management device; Searching whether or not there is a corresponding hardware according to a hardware type, a hardware index, and a hardware channel index in a mapping table corresponding to each logical channel associated with the application; The binding and configuration system for bus adapters and channels according to claim 17, further comprising: initializing a corresponding bus adapter if present; and connecting the data transmission and reception function of the logical channel to a hardware channel of the corresponding bus adapter to perform data communication; otherwise, the connection fails.

19. A mapping management device including a computer device, A mapping management device characterized in that the computer device is configured to execute a program of the bus adapter and channel binding and arrangement method described in claim 6 so that logical channels and hardware channels are associated by the mapping management device.

20. A bus adapter connection system including a computer device and at least one bus adapter, the computing device includes an application module and a mapping manager; The computer device executes a program for the method of binding and arranging a bus adapter and a channel as described in claim 6, and associates each logical channel in the application module with a hardware channel of the bus adapter and then connects them so as to perform data communication.

21. 7. A bus adapter, the bus adapter being configured to communicate with a computer device that executes a program for the method of binding and arranging a bus adapter and a channel according to claim 6.

22. 22. The bus adapter of claim 21, wherein the hardware channel index is a number of a like hardware channel carried inside the corresponding bus adapter.

23. 22. The bus adapter of claim 21, wherein the bus adapter and the computing device communicate using a CAN bus.

24. 22. The bus adapter of claim 21, wherein the bus adapter has single or multiple hardware channels.

Citation Information

Patent Citations

  • Communication system

    JP1997282255A

  • Input / Output data transfer system

    JP1998340243A

  • Input / output processing system

    JP2000172624A

  • Method and system for flexible channel path identifier assignment

    US20020065963A1