WO2023011298A1 - 总线适配器与通道绑定配置方法、映射管理器及连接系统 - Google Patents

总线适配器与通道绑定配置方法、映射管理器及连接系统 Download PDF

Info

Publication number
WO2023011298A1
WO2023011298A1 PCT/CN2022/108431 CN2022108431W WO2023011298A1 WO 2023011298 A1 WO2023011298 A1 WO 2023011298A1 CN 2022108431 W CN2022108431 W CN 2022108431W WO 2023011298 A1 WO2023011298 A1 WO 2023011298A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
bus adapter
hardware
mapping
mapping table
Prior art date
Application number
PCT/CN2022/108431
Other languages
English (en)
French (fr)
Inventor
刘矗
谢乐寅
莫莽
Original Assignee
上海同星智能科技有限公司
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 上海同星智能科技有限公司 filed Critical 上海同星智能科技有限公司
Priority to JP2022547315A priority Critical patent/JP2023541740A/ja
Priority to CA3206530A priority patent/CA3206530A1/en
Priority to MX2023010696A priority patent/MX2023010696A/es
Priority to EP22852012.8A priority patent/EP4319063A1/en
Priority to KR1020227026973A priority patent/KR20230021632A/ko
Priority to US17/882,583 priority patent/US11757677B2/en
Publication of WO2023011298A1 publication Critical patent/WO2023011298A1/zh
Priority to US18/223,061 priority patent/US20230362030A1/en
Priority to US18/223,044 priority patent/US20230370303A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40169Flexible bus arrangements
    • 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
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the invention belongs to the technical field of automobile bus adapters, and in particular relates to a bus adapter and channel binding configuration method, a mapping manager and a connection system.
  • the car bus adapter consists of a USB interface at one end and a single or multiple car bus interfaces (CAN bus, LIN bus, FlexRay bus, automotive Ethernet, etc.) at the other end.
  • CAN bus CAN bus
  • LIN bus LIN bus
  • FlexRay bus automotive Ethernet
  • the automotive bus adapter needs to be accompanied by a host computer application developed by the user to monitor the automotive bus. PC applications often require the connection of multiple automotive bus adapters to access multiple buses simultaneously.
  • the existing technical solutions usually hard-code the car bus adapters that need to be connected in the software.
  • the first is to replace the car bus adapter A with the car bus adapter B, so that the software needs to be changed at the same time to replace 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 is replaced later If the bus adapter B is replaced with the car bus adapter A, the software needs to be modified again.
  • Some users will try to support car bus adapter A and car bus adapter B at the same time, and complete the adapter switching through configuration, but this method also has the problem of not being compatible with car bus adapter C.
  • the purpose of the present invention is to provide a bus adapter and channel binding configuration method, mapping manager and connection system.
  • the present invention provides a bus adapter and channel binding and configuration method, including:
  • mapping table Associating logical channels with corresponding hardware channels through a mapping table
  • the method for configuring the mapping table of the mapping manager includes:
  • mapping table The six information fields in the mapping table include: application program name, channel type, logical channel index, hardware type, hardware index and hardware channel index.
  • the application name is a character string name of an application using the mapping manager
  • the channel type is the channel type of the logical channel that the mapping manager is responsible for mapping
  • the logical channel index is the logical channel resource number of the application program, and the number is incremented from small to large;
  • the hardware type is the manufacturer type of the corresponding bus adapter and the bus adapter model of the manufacturer;
  • the hardware index is the serial number of the corresponding bus adapter to distinguish the same hardware type after insertion, and the serial number is dynamically adjusted according to the serial number sorting method of the bus adapter;
  • the hardware channel index is the number of the same type of hardware channel carried inside the corresponding bus adapter, and the number is preset in the same bus adapter.
  • the hardware index is obtained by the bus adapter serial number in ascending order, and after the serial numbers SN of each bus adapter are sorted in ascending order, the bus adapter with the smallest serial number has the lowest hardware index.
  • the method for associating a logical channel with a corresponding hardware channel through a mapping table includes:
  • the method for connecting a logical channel with a corresponding hardware channel for data communication includes:
  • the application When the application connects to the bus adapter, it scans all supported bus adapters, and then searches the mapping table associated with the application according to the application name in all the mapping tables contained in the mapping manager;
  • the corresponding bus adapter is initialized and the data sending and receiving function of the logical channel is connected to the hardware channel of the corresponding bus adapter for data communication; otherwise, the connection fails.
  • the present invention also provides a bus adapter and channel binding and configuration system, including:
  • the mapping table configuration module configures the mapping table of the mapping manager
  • association module which associates a logical channel with a corresponding hardware channel through a mapping table
  • the present invention also provides a mapping manager
  • the mapping manager is adapted to associate logical channels with hardware channels.
  • the present invention also provides a bus adapter connection system, including:
  • mapping managers application modules, mapping managers and bus adapters
  • the mapping manager is suitable for associating each logical channel in the application program module with the hardware channel of the bus adapter and then connecting them for data communication.
  • the beneficial effect of the present invention is that the present invention implements an application by configuring the mapping table of the mapping manager; associating the logical channel with the corresponding hardware channel through the mapping table; and connecting the logical channel with the corresponding hardware channel for data communication.
  • a general architecture for program access to bus adapter resources can arbitrarily configure the bus adapter models and hardware channels they need to connect. After each configuration change, the mapping relationship takes effect immediately without modifying the user's software. Thereby improving the efficiency of application program development and reducing the possibility of errors.
  • Fig. 1 is a flow chart of the bus adapter and channel binding and configuration method involved in the present invention
  • Fig. 2 is a schematic diagram of bus adapter and channel binding and configuration involved in the present invention
  • Fig. 3 is a schematic diagram of a bus adapter hardware index sorting method involved in the present invention.
  • Fig. 4 is a functional block diagram of the bus adapter and channel binding and configuration system involved in the present invention.
  • Fig. 5 is a functional block diagram of the bus adapter connection system involved in the present invention.
  • Fig. 1 is a flow chart of the bus adapter and channel binding and configuration method involved in the present invention.
  • the present embodiment 1 provides a method for binding and configuring a bus adapter and a channel, including: configuring the mapping table of the mapping manager; associating the logical channel with the corresponding hardware channel through the mapping table; The channel is connected to the corresponding hardware channel for data communication, realizing a general architecture for applications to access bus adapter resources.
  • Applications using this architecture can arbitrarily configure the bus adapter model and hardware channel they need to connect to, and change each time After configuration, the mapping relationship takes effect immediately without modifying the user's software, thereby improving the efficiency of application development and reducing the possibility of errors.
  • FIG. 2 is a schematic diagram of the binding and configuration of bus adapters and channels involved in the present invention.
  • the method for configuring the mapping table of the mapping manager includes: the mapping manager is responsible for associating each logical channel with a certain hardware channel of the bus adapter, and each association is determined by the mapping
  • Each mapping table contains 6 information fields, and all these mapping tables are put together to form a mapping network between potential applications and potential bus adapters in the computer;
  • the mapping table in the mapping manager Can be arbitrarily added and deleted by the user, and the 6 information fields in the mapping table can be configured arbitrarily;
  • the 6 information fields in the mapping table include: application name, channel type, logical channel index, hardware type, hardware index and hardware Channel index;
  • the application is aimed at the supported vehicle bus types, each type has single or multiple logical channels, and the number and types of logical channels are user-configurable (for example, users can configure the number and types of logical channels through corresponding software) ;
  • taking the CAN bus supported by application program A as an example it has three logical channels, and the mapping target corresponding to each logical channel is managed by the mapping
  • the application name is the character string name of the application using the mapping manager, such as application A;
  • the channel type is the channel type of the logical channel that the mapping manager is responsible for mapping, such as application A
  • the logical channel A is the CAN bus type;
  • the logical channel index is the logical channel resource number of the application program, and the number increases from small to large.
  • the hardware type is the manufacturer type of the corresponding bus adapter and the bus adapter model of the manufacturer; the hardware index is After the corresponding bus adapter is inserted into the computer, the number of the same hardware type is distinguished, and the number is dynamically adjusted in the computer according to the serial number sorting method of the bus adapter; the hardware channel index is the same type of hardware channel carried inside the corresponding bus adapter number, which is pre-set in the same bus adapter, for example, hardware channel A of bus adapter A.
  • FIG. 3 is a schematic diagram of a bus adapter hardware index sorting method involved in the present invention.
  • the hardware index is obtained by the serial number of the bus adapter in ascending order, and after the serial numbers SN of each bus adapter are sorted in ascending order, the bus adapter with the smallest serial number has the lowest hardware index;
  • the hardware index is obtained by sorting the bus adapter serial number in ascending order, and the sorting method is based on string comparison.
  • the method for associating a logical channel with a corresponding hardware channel through a mapping table includes: associating each logical channel with a hardware channel of the bus adapter according to the mapping table.
  • the method for connecting the logical channel to the corresponding hardware channel for data communication includes: scanning all supported bus adapters plugged into the computer when the application program is connected to the bus adapter, and then to the Find the mapping table associated with the application according to the application name in all mapping tables; search for the corresponding hardware according to the hardware type, hardware index and hardware channel index in the mapping table corresponding to each logical channel associated with the application; if If it exists, initialize the corresponding bus adapter, and connect the data sending and receiving function of the logical channel to the hardware channel of the corresponding bus adapter to realize the data communication between the application logic channel and the corresponding bus.
  • connection fails; a general architecture for application access to bus adapter resources is implemented.
  • Applications using this architecture can arbitrarily configure the bus adapter models and hardware channels they need to connect. After each configuration change, the mapping relationship It takes effect immediately without modifying the user's software, thereby improving the efficiency of application development and reducing the possibility of errors.
  • Changing the bus adapter in the middle, or changing the hardware channel only needs to modify the configuration without modifying the software. When users develop applications, they can choose this method to achieve twice the result with half the effort.
  • Fig. 4 is a functional block diagram of the bus adapter and channel binding and configuration system involved in the present invention.
  • this Embodiment 2 also provides a bus adapter and channel binding and configuration system, including: a mapping table configuration module, a mapping table for configuring the mapping manager; an association module, The logical channel is associated with the corresponding hardware channel through the mapping table; and the connection module connects the logical channel with the corresponding hardware channel for data communication, realizing a general architecture for an application program to access bus adapter resources, and the application program using this architecture
  • the bus adapter model and hardware channel that it needs to be connected can be configured arbitrarily. After each configuration change, the mapping relationship will take effect immediately without modifying the user's software, thereby improving the efficiency of application development and reducing the possibility of errors.
  • the mapping table configuration module configures the mapping table of the mapping manager, the association module associates the logical channel with the corresponding hardware channel through the mapping table, and the connection module connects the logical channel with the corresponding hardware channel for data communication
  • this Embodiment 3 also provides a mapping manager, which is suitable for associating logical channels with hardware channels, and realizes a general framework for an application program to access bus adapter resources.
  • the application program of the architecture can configure the bus adapter model and hardware channel it needs to connect arbitrarily. After each configuration change, the mapping relationship will take effect immediately without modifying the user's software, thereby improving the efficiency of application development and reducing errors. possibility.
  • the method for associating a logical channel with a hardware channel adopts the method of binding and configuring a bus adapter and a channel in Embodiment 1.
  • Fig. 5 is a functional block diagram of the bus adapter connection system involved in the present invention.
  • this Embodiment 4 also provides a bus adapter connection system, including: an application module (a module provided with an application program), a mapping manager and a bus adapter;
  • the mapping manager is suitable for associating each logical channel in the application module with the hardware channel of the bus adapter and then connecting them for data communication; the user's application program can access the bus adapters produced by different manufacturers indiscriminately.
  • Channel resources, changing the bus adapter in the application process, or changing the hardware channel only needs to modify the configuration without modifying the software. When users develop applications, they can achieve twice the result with half the effort by choosing this method.
  • the application module can have single or multiple logical channels; the bus adapter can have single or multiple hardware channels.
  • the application module, the mapping manager, and the bus adapter are adapted to use the bus adapter and channel binding and configuration method in Embodiment 1 to associate each logical channel with the hardware channel of the bus adapter connection for data communication.
  • the present invention implements an application program access by configuring the mapping table of the mapping manager; associating the logical channel with the corresponding hardware channel through the mapping table; and connecting the logical channel with the corresponding hardware channel for data communication.
  • the general architecture of bus adapter resources the application program using this architecture can arbitrarily configure the bus adapter model and hardware channel it needs to connect, and the mapping relationship will take effect immediately after each configuration change, without modifying the user's software. Thereby improving the efficiency of application program development and reducing the possibility of errors.
  • each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more Executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.
  • each functional module in each embodiment of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
  • the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used 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 methods described in various embodiments of the present invention.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical discs and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明属于汽车总线适配器技术领域,具体涉及一种总线适配器与通道绑定配置方法、映射管理器及连接系统,其中总线适配器与通道绑定和配置方法,包括:配置映射管理器的映射表;通过映射表将逻辑通道与对应的硬件通道关联;以及将逻辑通道与对应的硬件通道连接以进行数据通信,实现了一个应用程序访问总线适配器资源的通用架构,使用该架构的应用程序可以任意配置其所需要连接的总线适配器型号和硬件通道,在每次更改配置后,映射关系立即生效,而不需要修改用户的软件,从而提高了应用程序开发效率,降低出错的可能性。

Description

总线适配器与通道绑定配置方法、映射管理器及连接系统 技术领域
本发明属于汽车总线适配器技术领域,具体涉及一种总线适配器与通道绑定配置方法、映射管理器及连接系统。
背景技术
汽车总线适配器由一端USB接口,另一端外接单个或多个汽车总线接口(CAN总线、LIN总线、FlexRay总线,汽车以太网等)的设备构成。现有的汽车总线适配器种类繁多,来自不同的厂家。汽车总线适配器需要配套用户开发的上位机应用程序以监控汽车总线。上位机应用程序往往需要连接多个汽车总线适配器以同时访问多条总线。应用过程中,现有的技术方案通常将所需要连接的汽车总线适配器硬编码在软件内。
在应用过程中,由于现有技术方案将所需的汽车总线适配器硬编码在软件内,带来两个问题:
首先是将汽车总线适配器A更换为汽车总线适配器B导致软件需要同时改动,以将汽车总线适配器A的连接代码替换成汽车总线适配器B的连接代码,需要额外的软件修改时间;如果后期再将汽车总线适配器B更换为汽车总线适配器A,则还需要再次修改软件。部分用户会尝试同时支持汽车总线适配器A和汽车总线适配器B,通过配置完成适配器的切换,但是这种方法同样存在无法兼容汽车总线适配器C的问题。
其次是若软件同时连接了两个同类的汽车总线适配器A和B,在A先插入电脑随后B插入电脑,以及B先插入电脑随后A插入电脑这两种情况下,软件难以区分哪个是A,哪个是B,即使用户读取汽车总线适配器序列号来绑定A和B,也难以自动处理后续应用过程中A被C替换后的总线适配器识别问题。
这样的问题最终都需要通过修改软件来实现,这就带来工作量增加,以及软件可靠性下降等问题。
因此,基于上述技术问题需要设计一种新的总线适配器与通道绑定配置方法、映射管理器及连接系统。
技术问题
本发明的目的是提供一种总线适配器与通道绑定配置方法、映射管理器及连接系统。
技术解决方案
为了解决上述技术问题,本发明提供了一种总线适配器与通道绑定和配置方法,包括:
配置映射管理器的映射表;
通过映射表将逻辑通道与对应的硬件通道关联;以及
将逻辑通道与对应的硬件通道连接以进行数据通信。
进一步,所述配置映射管理器的映射表的方法包括:
对映射表中6个信息字段进行配置;
所述映射表中6个信息字段包括:应用程序名称、通道类型、逻辑通道索引、硬件类型、硬件索引和硬件通道索引。
进一步,所述应用程序名称为使用映射管理器的应用程序的字符串名称;
所述通道类型为映射管理器负责映射的逻辑通道的通道类型;
所述逻辑通道索引为应用程序的逻辑通道资源编号,该编号从小到大递增;
所述硬件类型为对应的总线适配器的厂家类型和该厂家旗下的总线适配器型号;
所述硬件索引为对应的总线适配器在插入后区分同硬件类型的编号,该编号根据总线适配器的序列号排序方法动态调整;
所述硬件通道索引为对应的总线适配器内部携带的同类硬件通道的编号,该编号预先设置在同一个总线适配器中。
进一步,所述硬件索引通过总线适配器序列号按照升序排序方法获取,将各总线适配器的序列号SN升序排序后,序列号最小的总线适配器的硬件索引最低。
进一步,所述通过映射表将逻辑通道与对应的硬件通道关联的方法包括:
根据映射表将每一个逻辑通道对应总线适配器的硬件通道关联。
进一步,所述将逻辑通道与对应的硬件通道连接以进行数据通信的方法包括:
应用程序连接总线适配器时扫描所有支持的总线适配器,再到映射管理器所包含的所有映射表中根据应用程序名称查找该应用程序关联的映射表;
根据该应用程序所关联的每一个逻辑通道对应的映射表中硬件类型、硬件索引和硬件通道索引搜索对应的硬件是否存在;
若存在则初始化对应的总线适配器并逻辑通道的数据收发功能和对应的总线适配器的硬件通道连接进行数据通信,否则连接失败。
第二方面,本发明还提供一种总线适配器与通道绑定和配置系统,包括:
映射表配置模块,配置映射管理器的映射表;
关联模块,通过映射表将逻辑通道与对应的硬件通道关联;以及
连接模块,将逻辑通道与对应的硬件通道连接以进行数据通信。
第三方面,本发明还提供一种映射管理器,
所述映射管理器适于将逻辑通道与硬件通道关联。
第四方面,本发明还提供一种总线适配器连接系统,包括:
应用程序模块、映射管理器和总线适配器;
所述映射管理器适于将所述应用程序模块中将每一个逻辑通道与所述总线适配器的硬件通道关联后连接,以进行数据通信。
有益效果
本发明的有益效果是,本发明通过配置映射管理器的映射表;通过映射表将逻辑通道与对应的硬件通道关联;以及将逻辑通道与对应的硬件通道连接以进行数据通信,实现了一个应用程序访问总线适配器资源的通用架构,使用该架构的应用程序可以任意配置其所需要连接的总线适配器型号和硬件通道,在每次更改配置后,映射关系立即生效,而不需要修改用户的软件,从而提高了应用程序开发效率,降低出错的可能性。
本发明的其他特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点在说明书以及附图中所特别指出的结构来实现和获得。
为使本发明的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。
附图说明
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明所涉及的总线适配器与通道绑定和配置方法的流程图;
图2是本发明所涉及的总线适配器与通道绑定和配置示意图;
图3是本发明所涉及的总线适配器硬件索引排序方法示意图;
图4是本发明所涉及的总线适配器与通道绑定和配置系统的原理框图;
图5是本发明所涉及的总线适配器连接系统的原理框图。
本发明的实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
实施例1
图1是本发明所涉及的总线适配器与通道绑定和配置方法的流程图。
如图1所示,本实施例1提供了一种总线适配器与通道绑定和配置方法,包括:配置映射管理器的映射表;通过映射表将逻辑通道与对应的硬件通道关联;以及将逻辑通道与对应的硬件通道连接以进行数据通信,实现了一个应用程序访问总线适配器资源的通用架构,使用该架构的应用程序可以任意配置其所需要连接的总线适配器型号和硬件通道,在每次更改配置后,映射关系立即生效,而不需要修改用户的软件,从而提高了应用程序开发效率,降低出错的可能性。
图2是本发明所涉及的总线适配器与通道绑定和配置示意图。
如图2所示,在本实施例中,所述配置映射管理器的映射表的方法包括:映射管理器负责将每一个逻辑通道与总线适配器的某个硬件通道关联,每一个关联都由映射管理器描述的映射表来实现,每张映射表包含6个信息字段,所有这些映射表放在一起构成了计算机中潜在的应用程序与潜在的总线适配器的映射网络;射管理器中的映射表可以由用户任意添加和删除,可以对映射表中6个信息字段进行任意配置;所述映射表中6个信息字段包括:应用程序名称、通道类型、逻辑通道索引、硬件类型、硬件索引和硬件通道索引;应用程序针对所支持的汽车总线类型,每种类型带单个或多个逻辑通道,逻辑通道的数量和种类是用户配置的(例如用户可以通过对应软件进行逻辑通道数量和种类的配置);例如以应用程序A所支持的CAN总线为例,其带三个逻辑通道,每个逻辑通道对应的映射目标由映射管理器管理;通过映射表使映射管理器每一个逻辑通道与所述的总线适配器的某个硬件通道关联,实现了一个应用程序访问总线适配器资源的通用架构,使用该架构的应用程序可以任意配置其所需要连接的总线适配器型号和硬件通道,使得只需修改软件配置,而不用修改软件即可应对汽车总线适配器的更换和先后接入电脑的问题,避免了额外的开发投入,保证了软件的可靠性。
在本实施例中,所述应用程序名称为使用映射管理器的应用程序的字符串名称,例如应用程序A;所述通道类型为映射管理器负责映射的逻辑通道的通道类型,例如应用程序A的逻辑通道A,是CAN总线类型;所述逻辑通道索引为应用程序的逻辑通道资源编号,该编号从小到大递增,逻辑通道索引即给逻辑通道编号,索引值即为编号顺序,索引值从小到大增长,如果有3个逻辑通道,则它们的索引依次为:0、1、2;所述硬件类型为对应的总线适配器的厂家类型和该厂家旗下的总线适配器型号;所述硬件索引为对应的总线适配器在插入电脑后区分同硬件类型的编号,该编号在电脑中是根据总线适配器的序列号排序方法动态调整的;所述硬件通道索引为对应的总线适配器内部携带的同类硬件通道的编号,该编号预先设置在同一个总线适配器中,例如总线适配器A的硬件通道A。
图3是本发明所涉及的总线适配器硬件索引排序方法示意图。
如图3所示,在本实施例中,所述硬件索引通过总线适配器序列号按照升序排序方法获取,将各总线适配器的序列号SN升序排序后,序列号最小的总线适配器的硬件索引最低;硬件索引通过总线适配器序列号按照升序排序方法得到,排序方法基于字符串比对。总线适配器序列号是根据总线适配器厂家提供的API接口读取得到的;举例来说,电脑中一共插入了同一厂家同一类型的N个总线适配器,每个总线适配器的序列号SN各不相同,经过对SN序列号的升序排序后,序列号最小的总线适配器(SN = 000001)的硬件索引最低,序列号第二小的总线适配器(SN = 000123)的硬件索引次低,以此类推。
在本实施例中,所述通过映射表将逻辑通道与对应的硬件通道关联的方法包括:根据映射表将每一个逻辑通道对应总线适配器的硬件通道关联。
在本实施例中,所述将逻辑通道与对应的硬件通道连接以进行数据通信的方法包括:应用程序连接总线适配器时扫描电脑内插入的所有支持的总线适配器,再到映射管理器所包含的所有映射表中根据应用程序名称查找该应用程序关联的映射表;根据该应用程序所关联的每一个逻辑通道对应的映射表中硬件类型、硬件索引和硬件通道索引搜索对应的硬件是否存在;若存在则初始化对应的总线适配器,并使逻辑通道的数据收发功能和对应的总线适配器的硬件通道连接,实现应用程序逻辑通道和对应总线的数据通信,若连接过程中发现应用程序逻辑通道对应的硬件不存在,则连接失败;实现了一个应用程序访问总线适配器资源的通用架构,使用该架构的应用程序可以任意配置其所需要连接的总线适配器型号和硬件通道,在每次更改配置后,映射关系立即生效,而不需要修改用户的软件,从而提高了应用程序开发效率,降低出错的可能性,同时实现了用户的应用程序可以无差别访问不同厂家生产的汽车总线适配器的通道资源,在应用过程中更改总线适配器,或更改硬件通道只需修改配置,而无需修改软件,用户开发应用程序时选择本方法可以达到事半功倍的效果。
实施例2
图4是本发明所涉及的总线适配器与通道绑定和配置系统的原理框图。
如图4所示,在实施例1的基础上,本实施例2还提供一种总线适配器与通道绑定和配置系统,包括:映射表配置模块,配置映射管理器的映射表;关联模块,通过映射表将逻辑通道与对应的硬件通道关联;以及连接模块,将逻辑通道与对应的硬件通道连接以进行数据通信,实现了一个应用程序访问总线适配器资源的通用架构,使用该架构的应用程序可以任意配置其所需要连接的总线适配器型号和硬件通道,在每次更改配置后,映射关系立即生效,而不需要修改用户的软件,从而提高了应用程序开发效率,降低出错的可能性,同时实现了用户的应用程序可以无差别访问不同厂家生产的汽车总线适配器的通道资源,在应用过程中更改总线适配器,或更改硬件通道只需修改配置,而无需修改软件,用户开发应用程序时选择本方法可以达到事半功倍的效果。
在本实施例中,映射表配置模块配置映射管理器的映射表,关联模块通过映射表将逻辑通道与对应的硬件通道关联,以及连接模块将逻辑通道与对应的硬件通道连接以进行数据通信的方法在实施例1中已经详细描述,在本实施例中不再赘述。
实施例3
在实施例1的基础上,本实施例3还提供一种映射管理器,所述映射管理器适于将逻辑通道与硬件通道关联,实现了一个应用程序访问总线适配器资源的通用架构,使用该架构的应用程序可以任意配置其所需要连接的总线适配器型号和硬件通道,在每次更改配置后,映射关系立即生效,而不需要修改用户的软件,从而提高了应用程序开发效率,降低出错的可能性。
在本实施例中,所述将逻辑通道与硬件通道关联的方法采用实施例1中的总线适配器与通道绑定和配置方法。
实施例4
图5是本发明所涉及的总线适配器连接系统的原理框图。
如图5所示,在实施例3的基础上,本实施例4还提供一种总线适配器连接系统,包括:应用程序模块(设置有应用程序的模块)、映射管理器和总线适配器;所述映射管理器适于将所述应用程序模块中将每一个逻辑通道与所述总线适配器的硬件通道关联后连接,以进行数据通信;用户的应用程序可以无差别访问不同厂家生产的汽车总线适配器的通道资源,在应用过程中更改总线适配器,或更改硬件通道只需修改配置,而无需修改软件。用户开发应用程序时选择本方法可以达到事半功倍的效果。
在本实施例中,应用程序模块可以带单个或多个逻辑通道;所述总线适配器可以带单个或多个硬件通道。
在本实施例中,所述应用程序模块、映射管理器和总线适配器适于采用实施例1中的总线适配器与通道绑定和配置方法将每一个逻辑通道与所述总线适配器的硬件通道关联后连接,以进行数据通信。
综上所述,本发明通过配置映射管理器的映射表;通过映射表将逻辑通道与对应的硬件通道关联;以及将逻辑通道与对应的硬件通道连接以进行数据通信,实现了一个应用程序访问总线适配器资源的通用架构,使用该架构的应用程序可以任意配置其所需要连接的总线适配器型号和硬件通道,在每次更改配置后,映射关系立即生效,而不需要修改用户的软件。从而提高了应用程序开发效率,降低出错的可能性。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本发明的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
另外,在本发明各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上述依据本发明的理想实施例为启示,通过上述的说明内容,相关工作人员完全可以在不偏离本项发明技术思想的范围内,进行多样的变更以及修改。本项发明的技术性范围并不局限于说明书上的内容,必须要根据权利要求范围来确定其技术性范围。

Claims (9)

  1. 一种总线适配器与通道绑定和配置方法,其特征在于,包括:
    配置映射管理器的映射表;
    通过映射表将逻辑通道与对应的硬件通道关联;以及
    将逻辑通道与对应的硬件通道连接以进行数据通信。
  2. 如权利要求1所述的总线适配器与通道绑定和配置方法,其特征在于,
    所述配置映射管理器的映射表的方法包括:
    对映射表中6个信息字段进行配置;
    所述映射表中6个信息字段包括:应用程序名称、通道类型、逻辑通道索引、硬件类型、硬件索引和硬件通道索引。
  3. 如权利要求2所述的总线适配器与通道绑定和配置方法,其特征在于,
    所述应用程序名称为使用映射管理器的应用程序的字符串名称;
    所述通道类型为映射管理器负责映射的逻辑通道的通道类型;
    所述逻辑通道索引为应用程序的逻辑通道资源编号,该编号从小到大递增;
    所述硬件类型为对应的总线适配器的厂家类型和该厂家旗下的总线适配器型号;
    所述硬件索引为对应的总线适配器在插入后区分同硬件类型的编号,该编号根据总线适配器的序列号排序方法动态调整;
    所述硬件通道索引为对应的总线适配器内部携带的同类硬件通道的编号,该编号预先设置在同一个总线适配器中。
  4. 如权利要求3所述的总线适配器与通道绑定和配置方法,其特征在于,
    所述硬件索引通过总线适配器序列号按照升序排序方法获取,将各总线适配器的序列号SN升序排序后,序列号最小的总线适配器的硬件索引最低。
  5. 如权利要求4所述的总线适配器与通道绑定和配置方法,其特征在于,
    所述通过映射表将逻辑通道与对应的硬件通道关联的方法包括:
    根据映射表将每一个逻辑通道对应总线适配器的硬件通道关联。
  6. 如权利要求5所述的总线适配器与通道绑定和配置方法,其特征在于,
    所述将逻辑通道与对应的硬件通道连接以进行数据通信的方法包括:
    应用程序连接总线适配器时扫描所有支持的总线适配器,再到映射管理器所包含的所有映射表中根据应用程序名称查找该应用程序关联的映射表;
    根据该应用程序所关联的每一个逻辑通道对应的映射表中硬件类型、硬件索引和硬件通道索引搜索对应的硬件是否存在;
    若存在则初始化对应的总线适配器并逻辑通道的数据收发功能和对应的总线适配器的硬件通道连接进行数据通信,否则连接失败。
  7. 一种总线适配器与通道绑定和配置系统,其特征在于,包括:
    映射表配置模块,配置映射管理器的映射表;
    关联模块,通过映射表将逻辑通道与对应的硬件通道关联;以及
    连接模块,将逻辑通道与对应的硬件通道连接以进行数据通信。
  8. 一种映射管理器,其特征在于,
    所述映射管理器适于将逻辑通道与硬件通道关联。
  9. 一种总线适配器连接系统,其特征在于,包括:
    应用程序模块、映射管理器和总线适配器;
    所述映射管理器适于将所述应用程序模块中将每一个逻辑通道与所述总线适配器的硬件通道关联后连接,以进行数据通信。
PCT/CN2022/108431 2021-08-02 2022-07-28 总线适配器与通道绑定配置方法、映射管理器及连接系统 WO2023011298A1 (zh)

Priority Applications (8)

Application Number Priority Date Filing Date Title
JP2022547315A JP2023541740A (ja) 2021-08-02 2022-07-28 バスアダプタとチャネルとのバインディング及び配置方法、並びにマッピング管理装置及び接続システム
CA3206530A CA3206530A1 (en) 2021-08-02 2022-07-28 Binding and configuration method for a bus adapter and a channel, mapping manager, and connection system
MX2023010696A MX2023010696A (es) 2021-08-02 2022-07-28 Metodo de enlace y configuracion para un adaptador de bus y un canal, gestor de mapeo y sistema de conexion.
EP22852012.8A EP4319063A1 (en) 2021-08-02 2022-07-28 Bus adapter and channel bundling configuration method, mapping manager, and connection system
KR1020227026973A KR20230021632A (ko) 2021-08-02 2022-07-28 버스 어댑터와 채널의 바인딩 설치방법, 매핑 관리기 및 연결시스템
US17/882,583 US11757677B2 (en) 2021-08-02 2022-08-07 Binding and configuration method for a bus adapter and a channel, mapping manager, and connection system
US18/223,061 US20230362030A1 (en) 2021-08-02 2023-07-18 Binding and configuration method for bus adapter and channel, bus adapter and connection system
US18/223,044 US20230370303A1 (en) 2021-08-02 2023-07-18 Binding and configuration method for bus adapter and channel and configuration method for mapping table

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110878601.2A CN113612671B (zh) 2021-08-02 2021-08-02 总线适配器与通道绑定配置方法、映射管理器及连接系统
CN202110878601.2 2021-08-02

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/882,583 Continuation US11757677B2 (en) 2021-08-02 2022-08-07 Binding and configuration method for a bus adapter and a channel, mapping manager, and connection system

Publications (1)

Publication Number Publication Date
WO2023011298A1 true WO2023011298A1 (zh) 2023-02-09

Family

ID=78338975

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/108431 WO2023011298A1 (zh) 2021-08-02 2022-07-28 总线适配器与通道绑定配置方法、映射管理器及连接系统

Country Status (2)

Country Link
CN (2) CN113612671B (zh)
WO (1) WO2023011298A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113612671B (zh) * 2021-08-02 2022-09-06 上海同星智能科技有限公司 总线适配器与通道绑定配置方法、映射管理器及连接系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5761448A (en) * 1996-08-30 1998-06-02 Ncr Corporation Physical-to-logical bus mapping scheme for computer systems having multiple PCI bus configuration
CN101420459A (zh) * 2008-12-05 2009-04-29 杭州华三通信技术有限公司 一种管理应用配置信息的方法、应用系统和存储设备
US8065454B1 (en) * 2009-08-20 2011-11-22 Qlogic, Corporation System and method for mapping functions to and from network devices using configuration compatible with an adapter by remapping plurality of logical ports of adapter
CN112415943A (zh) * 2020-11-12 2021-02-26 珠海格力电器股份有限公司 一种io端口配置装置、方法和plc组态软件
CN113612671A (zh) * 2021-08-02 2021-11-05 上海同星智能科技有限公司 总线适配器与通道绑定配置方法、映射管理器及连接系统

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52130532A (en) * 1976-04-27 1977-11-01 Fujitsu Ltd Address conversion system
US7447735B2 (en) * 2003-07-01 2008-11-04 Motorola, Inc. Interprocessor communication protocol
US7543084B2 (en) * 2005-02-25 2009-06-02 International Business Machines Corporation Method for destroying virtual resources in a logically partitioned data processing system
US7379777B2 (en) * 2006-01-24 2008-05-27 National Instruments Corporation System and method for automatically updating the memory map of a programmable logic controller to customized hardware
US9740647B1 (en) * 2016-10-21 2017-08-22 International Business Machines Corporation Migrating DMA mappings from a source I/O adapter of a computing system to a destination I/O adapter of the computing system
CN112486863A (zh) * 2020-11-25 2021-03-12 珠海格力电器股份有限公司 软件虚拟仿真方法、装置和电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5761448A (en) * 1996-08-30 1998-06-02 Ncr Corporation Physical-to-logical bus mapping scheme for computer systems having multiple PCI bus configuration
CN101420459A (zh) * 2008-12-05 2009-04-29 杭州华三通信技术有限公司 一种管理应用配置信息的方法、应用系统和存储设备
US8065454B1 (en) * 2009-08-20 2011-11-22 Qlogic, Corporation System and method for mapping functions to and from network devices using configuration compatible with an adapter by remapping plurality of logical ports of adapter
CN112415943A (zh) * 2020-11-12 2021-02-26 珠海格力电器股份有限公司 一种io端口配置装置、方法和plc组态软件
CN113612671A (zh) * 2021-08-02 2021-11-05 上海同星智能科技有限公司 总线适配器与通道绑定配置方法、映射管理器及连接系统

Also Published As

Publication number Publication date
CN113612671A (zh) 2021-11-05
CN115499268A (zh) 2022-12-20
CN113612671B (zh) 2022-09-06

Similar Documents

Publication Publication Date Title
US7673020B2 (en) System and method for facilitating communication between a computing device and multiple categories of media devices
US7412544B2 (en) Reconfigurable USB I/O device persona
US20020146002A1 (en) Network administration apparatus, network administrating program, network administrating method and computer network system
US7103665B2 (en) Method of managing a resource storage data, program for managing the resource storage data, storage media having the resource managing program, and resource manager for managing the resource storage data
US6877042B2 (en) System and method for generating world wide names
US20080288708A1 (en) Multiple virtual usb devices with virtual hub implemented using one usb device controller
US8320401B2 (en) System and method to access and address high-speed interface converter devices
MXPA02010378A (es) Enmascaramiento programatico de unidades de almacenamiento.
WO2023011298A1 (zh) 总线适配器与通道绑定配置方法、映射管理器及连接系统
CN104932922A (zh) 一种调整sas卡硬盘启动顺序的方法及装置
US6671727B1 (en) Methodology for providing persistent target identification in a fibre channel environment
US7321561B2 (en) Verification of connections between devices in a network
CN109976870A (zh) 虚拟机的创建方法、装置、设备及介质
US20020129132A1 (en) Network management apparatus, network communication apparatus, network communication program, network communication method and computer network system
WO2023011504A1 (zh) 多适配器兼容库文件模块、调用方法、调用系统及设备
CN110290226A (zh) 一种通用的客户端和服务端对接接口协议方法
US8683022B2 (en) Methods and apparatus for assigning a physical adapter to a virtual adapter
US11757677B2 (en) Binding and configuration method for a bus adapter and a channel, mapping manager, and connection system
US7826386B2 (en) Facilitating the configuring of communications environments
CN113849379B (zh) 一种服务器资产信息收集的方法、装置、设备及可读介质
CN116932451A (zh) 一种数据处理方法、主机及相关设备
US20090063495A1 (en) Volume mapping by blade slot
US20150195366A1 (en) Switching device, non-transitory computer readable medium and zoning setting method
CN102026402A (zh) 一种实现电脑装置接入无线网络的方法
CN111090427A (zh) 一种嵌入式系统中运行时构建usb复合设备的方法

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2022547315

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22852012

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 3206530

Country of ref document: CA

WWE Wipo information: entry into national phase

Ref document number: MX/A/2023/010696

Country of ref document: MX

WWE Wipo information: entry into national phase

Ref document number: 2022852012

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022852012

Country of ref document: EP

Effective date: 20231031

NENP Non-entry into the national phase

Ref country code: DE