WO2024067757A1 - Cross-terminal-communication device management method, system and apparatus based on bus, and medium - Google Patents

Cross-terminal-communication device management method, system and apparatus based on bus, and medium Download PDF

Info

Publication number
WO2024067757A1
WO2024067757A1 PCT/CN2023/122389 CN2023122389W WO2024067757A1 WO 2024067757 A1 WO2024067757 A1 WO 2024067757A1 CN 2023122389 W CN2023122389 W CN 2023122389W WO 2024067757 A1 WO2024067757 A1 WO 2024067757A1
Authority
WO
WIPO (PCT)
Prior art keywords
bus
information
physical
physical device
connection
Prior art date
Application number
PCT/CN2023/122389
Other languages
French (fr)
Chinese (zh)
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 蔚来软件科技(上海)有限公司
Publication of WO2024067757A1 publication Critical patent/WO2024067757A1/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/40169Flexible bus arrangements
    • 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/46Interconnection of networks
    • 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
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Definitions

  • the present invention relates to the field of communication technology, and specifically provides a device management method, system, apparatus and medium for cross-end communication based on a bus.
  • vehicle body network communication has a relatively stable networking structure, relatively certain data links, unified communication protocols and static device management configuration.
  • static node devices in the vehicle and different dynamic node devices outside the vehicle need to communicate data at the business level.
  • a better method is needed to achieve cross-end heterogeneous network communication between the closed vehicle bus network and the distributed, open external network.
  • the present invention is proposed to provide a solution or at least partially solve the problem of how to effectively manage the physical devices of the external network of the bus to achieve seamless integration and peer-to-peer communication between the internal and external networks of the bus.
  • the present invention provides a device management method based on bus cross-end communication, the method comprising:
  • a connection driver of a physical device of an external network of the bus establishes a device connection with the physical device and obtains a connection event of the device connection;
  • an interface connection is established between the physical device and a preset bus node of the bus, so as to realize that the physical device is equivalent to a bus node of the bus.
  • the device information includes registration management information and status management information
  • the registration management information is used to manage the registration information and permission information of the physical device
  • the status management information is used to manage the device status of the physical device.
  • the registration management information includes device registration information, device service registration information and user identity registration information
  • the step of "managing the device information of the physical device according to the connection event" includes:
  • connection event respectively obtain device registration information, device service registration information and user identity registration information of the physical device;
  • the user identity registration information is managed by a preset user identity registration unit.
  • the step of "managing the device registration information through a preset device registration unit" includes:
  • the device registration unit By means of the device registration unit, converting the device registration information into a device registration list
  • the device registration information includes the ID, physical address and device type of the physical device; and/or,
  • the device service registration information includes the service ID, service interface and service parameters of the physical device; and/or,
  • the user identity registration information includes the user login account of the physical device, The binding relationship between user permissions and users and physical devices.
  • the state management information includes device parameter information, device working state information and device resource information of the physical device
  • the step of "managing the device information of the physical device according to the connection event" further includes:
  • connection event device parameter information, device working status information and device resource information of the physical device are respectively obtained;
  • the device resource information is managed by a preset device resource management unit.
  • the method further includes:
  • the bus node By means of the bus node, based on the network management event of the bus, the device working status information in the device status management unit is modified; and/or,
  • the device parameter information of the device parameter management unit is reconfigured by applying a preset device configuration list through the bus node.
  • the step of "establishing a data link of the physical device” includes:
  • connection event establishing a data channel between the physical device and the bus node
  • the data channel acquiring a transmission protocol required for communication of the physical device
  • the PDU of the transmission protocol is processed to achieve the establishment of the data link.
  • the method further includes:
  • the transmission protocol and the transmission data format between the physical device and the bus node are converted to achieve the transmission of the physical device and the bus node.
  • Cross-end communication between online nodes are converted to achieve the transmission of the physical device and the bus node.
  • the method further includes:
  • a service channel between the physical device and the bus node is determined.
  • the address information includes a device ID and/or a device port number; and/or,
  • the method further comprises:
  • mapping relationship is saved in a preset service routing table, which is maintained by a preset service router.
  • the present invention provides a device management system based on bus-based cross-end communication, the system comprising:
  • a device connection event acquisition module which is configured to be a connection driver of a physical device of an external network based on the bus, establish a device connection with the physical device, and acquire a connection event of the device connection;
  • a device management information and data link determination module configured to manage device information of the physical device and establish a data link of the physical device according to the connection event
  • An interface connection establishment module is configured to establish an interface connection between the physical device and a preset bus node of the bus according to the device information and the data link, so as to realize that the physical device is equivalent to a bus node of the bus.
  • a control device comprising a processor and a storage device, the storage device being adapted to store a plurality of program codes, the program codes being adapted to be loaded and run by the processor to execute the device management method based on bus cross-end communication described in any one of the technical solutions of the device management method based on bus cross-end communication. Law.
  • a computer-readable storage medium which stores a plurality of program codes, wherein the program codes are suitable for being loaded and run by a processor to execute the device management method based on cross-end communication based on bus as described in any one of the technical solutions of the above-mentioned technical solution of the device management method based on cross-end communication based on bus.
  • the present invention can establish a device connection of the physical device based on the connection drive of the physical device of the external network of the bus, obtain the connection event, manage the device information of the physical device based on the connection event, and establish the data link of the physical device, and establish the interface connection between the physical device of the external network and the preset bus node according to the device information and the data link, so that the physical device is equivalent to the bus node.
  • the present invention can effectively manage the physical devices of the external network that need to be connected to the bus, and make the physical devices of the external network equivalent to the bus node, which solves the problem of physical layer differences between the bus and the external network, shields the physical layer differences between the physical devices of different external networks and the bus, and realizes seamless integration and peer-to-peer communication between the physical devices of the external network and the bus nodes, making the cross-end communication process based on the bus more open and flexible.
  • FIG1 is a schematic flow chart of main steps of a device management method based on bus-based cross-end communication according to an embodiment of the present invention
  • FIG2 is a schematic diagram of an architecture of bus-based cross-end communication according to an implementation of an embodiment of the present invention
  • FIG. 3 is a schematic diagram of the architecture of a device management method based on bus-based cross-end communication according to an implementation of an embodiment of the present invention
  • FIG. 4 is a main structural block diagram of a device management system based on bus-based cross-end communication according to an embodiment of the present invention.
  • module and “processor” may include hardware, software or a combination of the two.
  • a module may include hardware circuits, various suitable sensors, communication ports, and memories, and may also include software parts, such as program codes, or a combination of software and hardware.
  • the processor may be a central processing unit, a microprocessor, a digital signal processor, or any other suitable processor.
  • the processor has data and/or signal processing functions.
  • the processor may be implemented in software, hardware, or a combination of the two.
  • Non-temporary computer-readable storage media include any suitable medium that can store program codes, such as a magnetic disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, and the like.
  • a and/or B means all possible combinations of A and B, such as only A, only B, or A and B.
  • the term "at least one A or B” or “at least one of A and B” has a similar meaning to “A and/or B", and may include only A, only B, or A and B.
  • the singular terms “one” and “the” may also include plural forms.
  • FIG. 1 is a schematic flow chart of the main steps of a device management method based on bus cross-end communication according to an embodiment of the present invention.
  • the device management method based on bus cross-end communication in the embodiment of the present invention mainly includes the following steps S101 to S103.
  • Step S101 A connection driver of a physical device of an external network based on a bus establishes a device connection with the physical device and obtains a connection event of the device connection.
  • a physical device connection can be established based on a connection driver of a physical device in an external network, and a connection event can be obtained, wherein the connection event can include a connection process, a connection state, and a connection result of the device connection.
  • the bus may be a vehicle body bus, such as an Ethernet bus, a CAN bus, etc.
  • the external network may be various IoT networks, and the physical device may be a wifi device, a USB device, a Bluetooth device, etc.
  • the process of establishing a device connection with a physical device may include: discovering the physical device; connecting and shaking hands with the physical device to obtain information such as services, transmission protocols, and resources of the physical device; authenticating the physical device; generating a link with the physical device; road.
  • FIG. 2 is a schematic diagram of the architecture of bus-based cross-end communication according to an implementation of an embodiment of the present invention.
  • the bus can be a vehicle body bus, and the vehicle body bus can be Ethernet, CAN (Controller Area Network) network.
  • the external network can be a WLAN (Wireless Local Area Network) ad hoc network, a Bluetooth ad hoc network, and the physical device can be a Wifi Device, a BT Device, and the like.
  • WLAN Wireless Local Area Network
  • Bluetooth Bluetooth ad hoc network
  • the physical device can be a Wifi Device, a BT Device, and the like.
  • connection drivers for various physical devices can be set, such as USB1 ⁇ n, Wifi1 ⁇ n, BLE (Bluetooth Low Energy) 1 ⁇ n, 5G/LTE (Long Term Evolution), V2X (vehicle to everything), NFC (Near Field Communication), and Bluetooth plug-in.
  • These connection drivers can provide physical devices of external networks with access to the cross-end device virtualization management module, so that the cross-end device virtualization management module can simultaneously maintain and manage multiple heterogeneous external networks.
  • the plug-ins in Figure 2 can all realize "hot plugging", that is, they can realize the effective expansion of device connections.
  • Step S102 according to the connection event, the device information of the physical device is managed, and a data link of the physical device is established.
  • the device information of the physical device can be managed based on the connection event of the physical device of the external network, and the data link of the physical device can be established based on the connection event.
  • the data link refers to the medium for sending and receiving data between the physical device and the bus.
  • the control plane management of the physical device can be achieved based on the management of the device information of the physical device, and the data plane management of the physical device can be achieved based on the data link.
  • the device information may include registration management information and status management information.
  • the registration management information may be used to manage registration information and permission information of the physical device, and the status management information may be used to manage the device status of the physical device.
  • the registration management information may include device registration information, device service registration information, and user identity registration information.
  • the status management information may include device parameter information, device working status information, and device resource information of the physical device.
  • Step S103 According to the device information and the data link, an interface connection is established between the physical device and the bus node of the preset bus, so as to realize the equivalent of the physical device to the bus. Bus node.
  • an interface connection between a physical device and a preset bus node can be established according to the device information and the data link, so as to achieve the connection of the physical device to the bus as a bus node.
  • the embodiment of the present invention can establish a device connection of the physical device based on the connection drive of the physical device of the external network of the bus, and obtain the connection event, manage the device information of the physical device based on the connection event, and establish the data link of the physical device, and establish the interface connection between the physical device of the external network and the preset bus node according to the device information and the data link, so that the physical device is equivalent to the bus node.
  • the embodiment of the present invention can effectively manage the physical devices of the external network that need to be connected to the bus, and make the physical devices of the external network equivalent to the bus node, which solves the problem of physical layer differences between the bus and the external network, shields the physical layer differences between the physical devices of different external networks and the bus, and realizes seamless integration and peer-to-peer communication between the physical devices of the external network and the bus nodes, making the cross-end communication process based on the bus more open and flexible.
  • Step S102 and step S103 are further described below.
  • step S102 may further include the following steps S10201 to S10204:
  • Step S10201 According to the connection event, the device registration information, device service registration information and user identity registration information of the physical device are respectively obtained.
  • Step S10202 managing device registration information through a preset device registration unit.
  • Step S10203 managing the device service registration information through a preset device service registration unit.
  • Step S10204 managing the user identity registration information through a preset user identity registration unit.
  • FIG. 3 is a schematic diagram of the architecture of a device management method based on bus cross-end communication according to an embodiment of the present invention.
  • the device registration information, device service registration information and user identity registration information of the physical device can be obtained according to the connection event of the physical device, and the device registration information, device service registration information and user identity registration information can be respectively obtained through the preset device registration unit, device service registration unit and user identity registration unit.
  • the device service registration information and user identity registration information are managed.
  • the device registration information may include the ID, physical address (MAC Address) and device type of the physical device.
  • the device service registration information may include the service ID, service interface and service parameters of the physical device.
  • the user identity registration information may include the user login account of the physical device, user permissions and the binding relationship between the user and the physical device.
  • step S10202 may further include the following steps S102021 and S102022:
  • Step S102021 The device registration information is converted into a device registration list through the device registration unit.
  • Step S102022 Synchronize the device registration list to the preset device database to manage the device registration information.
  • the device registration unit can convert the device registration information into a device registration list, and synchronize the device registration list to the device database, which stores and maintains the device registration list.
  • the device registration list in the device database can be directly indexed, that is, the device registration information can be obtained without rewriting the device registration information each time the device is connected.
  • the device registration list has a unified data structure, which makes the indexing process faster and more convenient, and can also provide relevant device information for subsequent physical device device diagnosis, communication performance optimization, and resource management processes.
  • step S102 may include the following steps S10205 to S10208 in addition to the above steps S10201 to S10204:
  • Step S10205 According to the connection event, device parameter information, device working status information and device resource information of the physical device are respectively obtained.
  • Step S10206 Perform configuration management on the device parameter information through a preset device parameter management unit.
  • Step S10207 Maintain the device working status information through the preset device status management unit.
  • Step S10208 managing the device resource information through a preset device resource management unit.
  • the The device parameter information, device working status information and device resource information of the physical device are obtained through the connection event, and the device parameter information, device working status information and device resource information are managed by the device parameter management unit, the device status management unit and the device resource management unit respectively.
  • the device working status information may include the power mode and communication working mode of the device
  • the management of the device working status information may be a state machine for maintaining the power mode and communication working mode of the device.
  • the device parameter information may include parameters such as the broadcast frequency of the physical device, the duration of the connection timeout, the interval of the sleep timer wake-up, etc.
  • the device resource information may include the channel resources, protocol resources, software resources and hardware available resources of the physical device.
  • the device operating status information in the device status management unit can be modified through the bus node based on the network management events of the bus.
  • the network management event of the bus can change the working state and communication working mode of the physical device through the device management interface (bus node) and the device state management unit in FIG. 3 to achieve synchronization of the working state between the physical device and other bus nodes of the bus.
  • the network management event refers to the communication or wake-up coordination event of the bus.
  • the device parameter information of the device parameter unit may be reconfigured by applying a preset device configuration list through the bus node.
  • the device parameter management unit provides configuration management of device parameter information, and the physical device can change its working behavior according to the configured device parameter information.
  • the changed device parameter information is sent to the device management interface (bus node) through the device configuration list in FIG. 3 , and then further reaches the device parameter management unit to implement the configuration of the device parameters.
  • step S102 may further include the following steps S10209 to S10211:
  • Step S10209 Establish a data channel between the physical device and the bus node according to the connection event.
  • a data channel between a physical device and a bus node may be established based on a connection event of a device connection.
  • the process of establishing a data channel between a physical device and a bus node can be implemented by a communication link management unit in FIG3 .
  • the communication link management unit manages the establishment of the data channel and manages the data link layer, the network layer, and the transmission layer.
  • the working status and events of the transport layer including broadcast, scanning, connection handshake, authentication, binding, disconnection and exception.
  • Step S10210 According to the data channel, obtain the transmission protocol required for communication of the physical device.
  • the transmission protocol required for the physical devices to communicate can be acquired based on the data channel.
  • the step of obtaining the transmission protocol can be implemented by a communication protocol stack unit.
  • the communication protocol stack unit provides transmission protocols required by different physical devices, such as HTTP (Hyper Text Transfer Protocol), FTP (File Transfer Protocol), RTP (Real-time Transport Protocol), GATT (Generic Attribute Profile) and other protocol stacks.
  • HTTP Hyper Text Transfer Protocol
  • FTP File Transfer Protocol
  • RTP Real-time Transport Protocol
  • GATT Generic Attribute Profile
  • the communication between the bus network and the external network may use different transmission protocols between different networks, or may use the same transmission protocol.
  • Step S10211 According to the transmission protocol, process the PDU (Protocol Data Unit) of the transmission protocol to establish a data link.
  • PDU Protocol Data Unit
  • the PDU content of the transmission protocol may be processed according to the transmission protocol, such as serialization, encoding and decoding, compression, decompression, etc., to achieve the establishment of a data link.
  • the transmission protocol such as serialization, encoding and decoding, compression, decompression, etc.
  • the PDU of the transmission protocol may be processed by the data processing unit in FIG. 3 .
  • the transmission protocol and transmission data format between the physical device and the bus node can be converted according to the processing result of the PDU to achieve cross-end communication between the physical device and the bus node. That is, through the data manager and communication protocol converter in FIG3, the conversion and adaptation of the transmission protocol and transmission data format between the bus and the external network are achieved, thereby achieving bus communication fusion based on service sessions of heterogeneous networks in cross-end communication.
  • the present invention may also include the following steps S104 and S105:
  • Step S104 Establishing a mapping relationship between the physical device and the bus node according to the address information of the physical device and the address information of the bus node
  • Step S105 Determine the relationship between the physical device and the bus node according to the mapping relationship service channel.
  • a mapping relationship between the physical device and the bus node can be established according to the address information of the physical device and the bus node, and a service channel between the physical device and the bus node can be established based on the mapping relationship.
  • the address information can include a device ID and a device port number.
  • the service channel refers to a channel through which service information can be transmitted, which uses the bus node as a transmission medium.
  • mapping relationship may be saved in a preset service routing table, and the service routing table is maintained by a preset service router.
  • the service router in FIG. 3 may maintain a service routing table storing mapping relationships between physical devices and bus nodes.
  • step S103 may be further configured as follows:
  • an interface connection between the physical device and the bus node is established.
  • service communication between different terminals includes service interface calls between service consumers and service providers through service primitives, service discovery and registration, service proxy and other sessions. Service sessions can be forwarded through service routers.
  • the message format of service sessions on the service bus is shown in Table 1 below:
  • the service router addresses and forwards relevant messages to the destination device based on the destination device ID/source device ID/destination port number/source port number and other information in the message. Specifically, the service router maintains a service routing table.
  • the destination device and the source device can be mapped to a unique bus node in the heterogeneous network topology of cross-end communication based on the relevant ID number, and the service router forwards the relevant session message to the destination device or the relevant bus node based on the service routing table.
  • the destination device ID can be a special defined value mapped to the physical devices corresponding to multiple bus nodes.
  • a unique service channel can be determined based on the destination port number and the source port number. There can be multiple service channels between two service nodes.
  • a device connection between a physical device control plane and a data plane can be established through a device connection driver plug-in (connection driver) in FIG. 3.
  • a device connection management module in FIG. 3 can be used to establish a connection with an external network.
  • the device security management module provides the security functions required for authentication, encryption and decryption during the device connection process, such as random number generator, secure storage, security algorithm engine, digital certificate management, etc.
  • the present invention also provides a device management system based on bus-based cross-end communication.
  • the device management system based on bus-based cross-end communication in the embodiment of the present invention may include a device connection event acquisition module, a device management information and data link determination module, and an interface connection establishment module.
  • the device connection event acquisition module can be configured as a connection driver for a physical device of an external network based on the bus, establishes a device connection with the physical device, and obtains a connection event of the device connection.
  • the device management information and data link determination module can be configured to manage the device information of the physical device according to the connection event and establish a data link for the physical device.
  • the interface connection establishment module can be configured to establish an interface connection between the physical device and a bus node of a preset bus according to the device information and the data link, so as to realize the equivalence of the physical device to the bus node of the bus.
  • bus-based cross-end communication device management system is used to execute the bus-based cross-end communication device management method embodiment shown in Figure 1.
  • the technical principles, technical problems solved and technical effects produced by the two are similar.
  • Technical personnel in this technical field can clearly understand that for the convenience and conciseness of description, the specific working process and related instructions of the bus-based cross-end communication device management system can refer to the contents described in the embodiment of the bus-based cross-end communication device management method, which will not be repeated here.
  • the present invention can implement all or part of the processes in the method of the above embodiment by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium.
  • the computer program includes computer program code, which can be source code.
  • the computer-readable storage medium may include any entity or device, medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal, and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
  • the present invention also provides a control device.
  • the control device includes a processor and a storage device
  • the storage device can be configured to store a program for executing a device management method based on bus cross-end communication of the above method embodiment
  • the processor can be configured to execute the program in the storage device, which includes but is not limited to executing a program for a device management method based on bus cross-end communication of the above method embodiment.
  • the control device can be a control device device formed by various electronic devices.
  • the present invention also provides a computer-readable storage medium.
  • the computer-readable storage medium can be configured to store a program for executing the device management method based on bus-based cross-end communication of the above-mentioned method embodiment, and the program can be loaded and run by the processor to implement the above-mentioned device management method based on bus-based cross-end communication.
  • the computer-readable storage medium can be a storage device formed by various electronic devices.
  • the computer-readable storage medium in the embodiment of the present invention is a non-temporary computer-readable storage medium.
  • each module is only for illustrating the functional units of the device of the present invention
  • the physical devices corresponding to these modules may be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.
  • modules in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present invention, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to the technical field of communications. In particular, provided are a cross-terminal-communication device management method, system and apparatus based on a bus, and a medium, which aim to solve the problem of how to effectively manage a physical device of an external network of a bus so as to realize seamless integration and peer-to-peer communication between an internal network and the external network of the bus. For this purpose, the method in the present invention may comprise: on the basis of a connection drive of a physical device of an external network of a bus, establishing a device connection to the physical device, and acquiring a connection event; managing device information of the physical device on the basis of the connection event, and establishing a data link of the physical device; and establishing an interface connection between the physical device of the external network and a preset bus node according to the device information and the data link, such that the physical device is equivalent to a bus node. Therefore, the problem of a physical layer difference between a bus and an external network is solved, thereby realizing seamless integration and peer-to-peer communication between a physical device of the external network and a bus node.

Description

基于总线的跨端通信的设备管理方法、系统、装置及介质Device management method, system, device and medium based on bus-based cross-end communication 技术领域Technical Field
本发明涉及通信技术领域,具体提供一种基于总线的跨端通信的设备管理方法、系统、装置及介质。The present invention relates to the field of communication technology, and specifically provides a device management method, system, apparatus and medium for cross-end communication based on a bus.
背景技术Background technique
一般而言,车身网络通信具有比较稳定的组网结构,具备比较确定的数据链路,且具备统一的通信协议和静态的设备管理配置。随着物联网和车载网络的加速融合,车内静态的节点设备和不同的车外动态节点设备之间需要在业务层面进行数据通信,需要有较好的方法来实现封闭的车内总线网络和分布式的、开放的外部网络形成跨端的异构网络的通信。Generally speaking, vehicle body network communication has a relatively stable networking structure, relatively certain data links, unified communication protocols and static device management configuration. With the accelerated integration of the Internet of Things and vehicle networks, static node devices in the vehicle and different dynamic node devices outside the vehicle need to communicate data at the business level. A better method is needed to achieve cross-end heterogeneous network communication between the closed vehicle bus network and the distributed, open external network.
然而,在跨端通信的异构网络场景下,不同的终端设备的平台是存在着各种物理差异的,如通信硬件、操作系统以及通信协议的差异等,这些差异都会使得跨端通信的设备之间无法直接进行服务总线通信。However, in the heterogeneous network scenario of cross-end communication, there are various physical differences between the platforms of different terminal devices, such as differences in communication hardware, operating system, and communication protocol. These differences will make it impossible for cross-end communication devices to directly communicate on the service bus.
相应地,本领域需要一种新的跨端通信的设备管理方案来解决上述问题。Accordingly, the art needs a new cross-end communication device management solution to solve the above problems.
发明内容Summary of the invention
为了克服上述缺陷,提出了本发明,以提供解决或至少部分地解决如何实现对总线的外部网络的物理设备进行有效管理,以实现总线内外部网络之间的无缝融合,对等通信的问题。In order to overcome the above defects, the present invention is proposed to provide a solution or at least partially solve the problem of how to effectively manage the physical devices of the external network of the bus to achieve seamless integration and peer-to-peer communication between the internal and external networks of the bus.
在第一方面,本发明提供一种基于总线的跨端通信的设备管理方法,所述方法包括:In a first aspect, the present invention provides a device management method based on bus cross-end communication, the method comprising:
基于所述总线的外部网络的物理设备的连接驱动,建立与所述物理设备的设备连接,并获取所述设备连接的连接事件;A connection driver of a physical device of an external network of the bus establishes a device connection with the physical device and obtains a connection event of the device connection;
根据所述连接事件,对所述物理设备的设备信息进行管理, 并建立所述物理设备的数据链路;managing device information of the physical device according to the connection event, and establishing a data link of the physical device;
根据所述设备信息和所述数据链路,建立所述物理设备与预设的所述总线的总线节点之间的接口连接,以实现将所述物理设备等效为所述总线的总线节点。According to the device information and the data link, an interface connection is established between the physical device and a preset bus node of the bus, so as to realize that the physical device is equivalent to a bus node of the bus.
在上述基于总线的跨端通信的设备管理方法的一个技术方案中,所述设备信息包括注册管理信息和状态管理信息,所述注册管理信息用于管理所述物理设备的注册信息和权限信息,所述状态管理信息用于管理所述物理设备的设备状态。In a technical solution of the above-mentioned bus-based cross-end communication device management method, the device information includes registration management information and status management information, the registration management information is used to manage the registration information and permission information of the physical device, and the status management information is used to manage the device status of the physical device.
在上述基于总线的跨端通信的设备管理方法的一个技术方案中,所述注册管理信息包括设备注册信息、设备服务注册信息和用户身份注册信息,“根据所述连接事件,对所述物理设备的设备信息进行管理”的步骤包括:In a technical solution of the above-mentioned device management method based on bus cross-end communication, the registration management information includes device registration information, device service registration information and user identity registration information, and the step of "managing the device information of the physical device according to the connection event" includes:
根据所述连接事件,分别获取所述物理设备的设备注册信息、设备服务注册信息和用户身份注册信息;According to the connection event, respectively obtain device registration information, device service registration information and user identity registration information of the physical device;
通过预设的设备注册单元对所述设备注册信息进行管理;Managing the device registration information through a preset device registration unit;
通过预设的设备服务注册单元对所述设备服务注册信息进行管理;Managing the device service registration information through a preset device service registration unit;
通过预设的用户身份注册单元对所述用户身份注册信息进行管理。The user identity registration information is managed by a preset user identity registration unit.
在上述基于总线的跨端通信的设备管理方法的一个技术方案中,“通过预设的设备注册单元对所述设备注册信息进行管理”的步骤包括:In a technical solution of the above-mentioned device management method based on bus cross-end communication, the step of "managing the device registration information through a preset device registration unit" includes:
通过所述设备注册单元,将所述设备注册信息转换成设备注册列表;By means of the device registration unit, converting the device registration information into a device registration list;
将所述设备注册列表同步至预设的设备数据库中,以实现对所述设备注册信息的管理;和/或,Synchronize the device registration list to a preset device database to manage the device registration information; and/or,
所述设备注册信息包括所述物理设备的ID、物理地址和设备类型;和/或,The device registration information includes the ID, physical address and device type of the physical device; and/or,
所述设备服务注册信息包括所述物理设备的服务ID、服务接口和服务参数;和/或,The device service registration information includes the service ID, service interface and service parameters of the physical device; and/or,
所述用户身份注册信息包括所述物理设备的用户登录账户、 用户权限和用户与物理设备之间的绑定关系。The user identity registration information includes the user login account of the physical device, The binding relationship between user permissions and users and physical devices.
在上述基于总线的跨端通信的设备管理方法的一个技术方案中,所述状态管理信息包括所述物理设备的设备参数信息、设备工作状态信息和设备资源信息,“根据所述连接事件,对所述物理设备的设备信息进行管理”的步骤还包括:In a technical solution of the above-mentioned device management method based on bus cross-end communication, the state management information includes device parameter information, device working state information and device resource information of the physical device, and the step of "managing the device information of the physical device according to the connection event" further includes:
根据所述连接事件,分别获取所述物理设备的设备参数信息、设备工作状态信息和设备资源信息;According to the connection event, device parameter information, device working status information and device resource information of the physical device are respectively obtained;
通过预设的设备参数管理单元对所述设备参数信息进行配置管理;Performing configuration management on the device parameter information through a preset device parameter management unit;
通过预设的设备状态管理单元对所述设备工作状态信息进行维护;Maintaining the device working status information through a preset device status management unit;
通过预设的设备资源管理单元对所述设备资源信息进行管理。The device resource information is managed by a preset device resource management unit.
在上述基于总线的跨端通信的设备管理方法的一个技术方案中,所述方法还包括:In a technical solution of the above-mentioned device management method based on bus cross-end communication, the method further includes:
通过所述总线节点,基于所述总线的网络管理事件,对所述设备状态管理单元中的设备工作状态信息进行更改;和/或,By means of the bus node, based on the network management event of the bus, the device working status information in the device status management unit is modified; and/or,
通过所述总线节点,应用预设的设备配置列表对所述设备参数管理单元的设备参数信息进行再配置。The device parameter information of the device parameter management unit is reconfigured by applying a preset device configuration list through the bus node.
在上述基于总线的跨端通信的设备管理方法的一个技术方案中,“建立所述物理设备的数据链路”的步骤包括:In a technical solution of the above-mentioned device management method based on bus cross-end communication, the step of "establishing a data link of the physical device" includes:
根据所述连接事件,建立所述物理设备与所述总线节点之间的数据通道;According to the connection event, establishing a data channel between the physical device and the bus node;
根据所述数据通道,获取所述物理设备的进行通信所需要的传输协议;According to the data channel, acquiring a transmission protocol required for communication of the physical device;
根据所述传输协议,对所述传输协议的PDU进行处理,以实现所述数据链路的建立。According to the transmission protocol, the PDU of the transmission protocol is processed to achieve the establishment of the data link.
在上述基于总线的跨端通信的设备管理方法的一个技术方案中,所述方法还包括:In a technical solution of the above-mentioned device management method based on bus cross-end communication, the method further includes:
根据PDU的处理结果,对所述物理设备与所述总线节点之间的传输协议和传输数据格式进行转换,以实现所述物理设备与所述总 线节点之间的跨端通信。According to the processing result of the PDU, the transmission protocol and the transmission data format between the physical device and the bus node are converted to achieve the transmission of the physical device and the bus node. Cross-end communication between online nodes.
在上述基于总线的跨端通信的设备管理方法的一个技术方案中,所述方法还包括:In a technical solution of the above-mentioned device management method based on bus cross-end communication, the method further includes:
根据所述物理设备的地址信息和所述总线节点的地址信息,建立所述物理设备与所述总线节点之间的映射关系;Establishing a mapping relationship between the physical device and the bus node according to the address information of the physical device and the address information of the bus node;
根据所述映射关系,确定所述物理设备与所述总线节点之间的服务通道。According to the mapping relationship, a service channel between the physical device and the bus node is determined.
在上述基于总线的跨端通信的设备管理方法的一个技术方案中,“根据所述设备信息和所述数据链路,建立所述物理设备与预设的所述总线的总线节点之间的接口连接”包括:In a technical solution of the above-mentioned device management method based on bus-based cross-end communication, "establishing an interface connection between the physical device and a preset bus node of the bus according to the device information and the data link" includes:
根据所述设备信息、所述数据链路和所述服务通道,建立所述物理设与所述总线节点之间的接口连接;和/或,establishing an interface connection between the physical device and the bus node according to the device information, the data link and the service channel; and/or,
所述地址信息包括设备ID和/或设备端口号;和/或,The address information includes a device ID and/or a device port number; and/or,
所述方法还包括:The method further comprises:
将所述映射关系保存至预设的服务路由表中,所述服务路由表由预设的服务路由器进行维护The mapping relationship is saved in a preset service routing table, which is maintained by a preset service router.
在第二方面,本发明提供一种基于总线的跨端通信的设备管理系统,所述系统包括:In a second aspect, the present invention provides a device management system based on bus-based cross-end communication, the system comprising:
设备连接事件获取模块,其被配置为基于所述总线的外部网络的物理设备的连接驱动,建立与所述物理设备的设备连接,并获取所述设备连接的连接事件;A device connection event acquisition module, which is configured to be a connection driver of a physical device of an external network based on the bus, establish a device connection with the physical device, and acquire a connection event of the device connection;
设备管理信息和数据链路确定模块,其被配置为根据所述连接事件,对所述物理设备的设备信息进行管理,并建立所述物理设备的数据链路;a device management information and data link determination module, configured to manage device information of the physical device and establish a data link of the physical device according to the connection event;
接口连接建立模块,其被配置为根据所述设备信息和所述数据链路,建立所述物理设备与预设的所述总线的总线节点之间的接口连接,以实现将所述物理设备等效为所述总线的总线节点An interface connection establishment module is configured to establish an interface connection between the physical device and a preset bus node of the bus according to the device information and the data link, so as to realize that the physical device is equivalent to a bus node of the bus.
在第三方面,提供一种控制装置,该控制装置包括处理器和存储装置,所述存储装置适于存储多条程序代码,所述程序代码适于由所述处理器加载并运行以执行上述基于总线的跨端通信的设备管理方法的技术方案中任一项技术方案所述的基于总线的跨端通信的设备管理方 法。In a third aspect, a control device is provided, the control device comprising a processor and a storage device, the storage device being adapted to store a plurality of program codes, the program codes being adapted to be loaded and run by the processor to execute the device management method based on bus cross-end communication described in any one of the technical solutions of the device management method based on bus cross-end communication. Law.
在第四方面,提供一种计算机可读存储介质,该计算机可读存储介质其中存储有多条程序代码,所述程序代码适于由处理器加载并运行以执行上述基于总线的跨端通信的设备管理方法的技术方案中任一项技术方案所述的基于总线的跨端通信的设备管理方法。In a fourth aspect, a computer-readable storage medium is provided, which stores a plurality of program codes, wherein the program codes are suitable for being loaded and run by a processor to execute the device management method based on cross-end communication based on bus as described in any one of the technical solutions of the above-mentioned technical solution of the device management method based on cross-end communication based on bus.
本发明上述一个或多个技术方案,至少具有如下一种或多种有益效果:The above one or more technical solutions of the present invention have at least one or more of the following beneficial effects:
在实施本发明的技术方案中,本发明能够基于总线的外部网络的物理设备的连接驱动,建立物理设备的设备连接,并获取连接事件,基于连接事件对物理设备的设备信息进行管理,并建立物理设备的数据链路,根据设备信息和数据链路,建立外部网络的物理设备与预设的总线节点之间的接口连接,使得物理设备等效为总线节点。通过上述配置方式,本发明能够对需要接入总线的外部网络的物理设备进行有效管理,将外部网络的物理设备等效为总线节点,解决了总线与外部网络之间的存在物理层差异的问题,屏蔽了不同的外部网络的物理设备与总线之间的物理层的差异,实现外部网络的物理设备与总线节点之间无缝融合和对等通信,使得基于总线的跨端通信过程更为开放和灵活。In the technical solution for implementing the present invention, the present invention can establish a device connection of the physical device based on the connection drive of the physical device of the external network of the bus, obtain the connection event, manage the device information of the physical device based on the connection event, and establish the data link of the physical device, and establish the interface connection between the physical device of the external network and the preset bus node according to the device information and the data link, so that the physical device is equivalent to the bus node. Through the above configuration, the present invention can effectively manage the physical devices of the external network that need to be connected to the bus, and make the physical devices of the external network equivalent to the bus node, which solves the problem of physical layer differences between the bus and the external network, shields the physical layer differences between the physical devices of different external networks and the bus, and realizes seamless integration and peer-to-peer communication between the physical devices of the external network and the bus nodes, making the cross-end communication process based on the bus more open and flexible.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
参照附图,本发明的公开内容将变得更易理解。本领域技术人员容易理解的是:这些附图仅仅用于说明的目的,而并非意在对本发明的保护范围组成限制。其中:The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. Among them:
图1是根据本发明的一个实施例的基于总线的跨端通信的设备管理方法的主要步骤流程示意图;FIG1 is a schematic flow chart of main steps of a device management method based on bus-based cross-end communication according to an embodiment of the present invention;
图2是根据本发明实施例的一个实施方式的基于总线的跨端通信的架构示意图;FIG2 is a schematic diagram of an architecture of bus-based cross-end communication according to an implementation of an embodiment of the present invention;
图3是根据本发明实施例的一个实施方式的基于总线的跨端通信的设备管理方法的架构示意图;3 is a schematic diagram of the architecture of a device management method based on bus-based cross-end communication according to an implementation of an embodiment of the present invention;
图4是根据本发明的一个实施例的基于总线的跨端通信的设备管理系统的主要结构框图。 FIG. 4 is a main structural block diagram of a device management system based on bus-based cross-end communication according to an embodiment of the present invention.
具体实施方式Detailed ways
下面参照附图来描述本发明的一些实施方式。本领域技术人员应当理解的是,这些实施方式仅仅用于解释本发明的技术原理,并非旨在限制本发明的保护范围。Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
在本发明的描述中,“模块”、“处理器”可以包括硬件、软件或者两者的组合。一个模块可以包括硬件电路,各种合适的感应器,通信端口,存储器,也可以包括软件部分,比如程序代码,也可以是软件和硬件的组合。处理器可以是中央处理器、微处理器、数字信号处理器或者其他任何合适的处理器。处理器具有数据和/或信号处理功能。处理器可以以软件方式实现、硬件方式实现或者二者结合方式实现。非暂时性的计算机可读存储介质包括任何合适的可存储程序代码的介质,比如磁碟、硬盘、光碟、闪存、只读存储器、随机存取存储器等等。术语“A和/或B”表示所有可能的A与B的组合,比如只是A、只是B或者A和B。术语“至少一个A或B”或者“A和B中的至少一个”含义与“A和/或B”类似,可以包括只是A、只是B或者A和B。单数形式的术语“一个”、“这个”也可以包含复数形式。In the description of the present invention, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, and memories, and may also include software parts, such as program codes, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, a digital signal processor, or any other suitable processor. The processor has data and/or signal processing functions. The processor may be implemented in software, hardware, or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program codes, such as a magnetic disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, and the like. The term "A and/or B" means all possible combinations of A and B, such as only A, only B, or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and/or B", and may include only A, only B, or A and B. The singular terms "one" and "the" may also include plural forms.
参阅附图1,图1是根据本发明的一个实施例的基于总线的跨端通信的设备管理方法的主要步骤流程示意图。如图1所示,本发明实施例中的基于总线的跨端通信的设备管理方法主要包括下列步骤S101-步骤S103。Referring to FIG. 1 , FIG. 1 is a schematic flow chart of the main steps of a device management method based on bus cross-end communication according to an embodiment of the present invention. As shown in FIG. 1 , the device management method based on bus cross-end communication in the embodiment of the present invention mainly includes the following steps S101 to S103.
步骤S101:基于总线的外部网络的物理设备的连接驱动,建立与物理设备的设备连接,并获取设备连接的连接事件。Step S101: A connection driver of a physical device of an external network based on a bus establishes a device connection with the physical device and obtains a connection event of the device connection.
在本实施例中,可以基于外部网络的物理设备的连接驱动,建立物理设备的设备连接,并获取连接事件。其中,连接事件可以包括设备连接的连接过程、连接状态和连接结果。In this embodiment, a physical device connection can be established based on a connection driver of a physical device in an external network, and a connection event can be obtained, wherein the connection event can include a connection process, a connection state, and a connection result of the device connection.
一个实施方式中,总线可以为车身总线,如以太网总线、CAN总线等。外部网络可以为各种物联网络,物理设备可以为wifi设备、USB设备、蓝牙设备等。In one implementation, the bus may be a vehicle body bus, such as an Ethernet bus, a CAN bus, etc. The external network may be various IoT networks, and the physical device may be a wifi device, a USB device, a Bluetooth device, etc.
一个实施方式中,建立与物理设备的设备连接的过程可以包括:发现物理设备;与物理设备连接握手,以获取物理设备的服务、传输协议和资源等信息;对物理设备进行鉴权;生成与物理设备之间的链 路。In one implementation, the process of establishing a device connection with a physical device may include: discovering the physical device; connecting and shaking hands with the physical device to obtain information such as services, transmission protocols, and resources of the physical device; authenticating the physical device; generating a link with the physical device; road.
一个实施方式中,可以参阅附图2,图2是根据本发明实施例的一个实施方式的基于总线的跨端通信的架构示意图。如图2所示,总线可以为车身总线,车身总线可以为Ethernet(以太网)、CAN(Controller Area Network,控制器局域网)网络。外部网络可以为WLAN(Wireless Local Area Network,无线局域网)自组网,蓝牙自组网等网络,物理设备可以为Wifi Device(wifi设备)、BT Device(蓝牙设备)等。在预设的跨端设备虚拟化管理模块中,可以设置有多种物理设备的连接驱动,如,USB1~n、Wifi1~n、BLE(Bluetooth Low Energy,蓝牙低功耗)1~n、5G/LTE(Long Term Evolution,长期演进)、V2X(vehicle to everything,车对外界的信息交换)、NFC(Near Field Communication,近场通信)、Bluetooth(蓝牙)插件,这些连接驱动能够提供外部网络的物理设备的接入跨端设备虚拟化管理模块,使得跨端设备虚拟化管理模块能够同时实现维护和管理多个异构的外部网络的能力。其中,图2中的插件均能够实现“热插拔”,即能够实现设备连接的有效扩展。In one implementation, please refer to FIG. 2, which is a schematic diagram of the architecture of bus-based cross-end communication according to an implementation of an embodiment of the present invention. As shown in FIG. 2, the bus can be a vehicle body bus, and the vehicle body bus can be Ethernet, CAN (Controller Area Network) network. The external network can be a WLAN (Wireless Local Area Network) ad hoc network, a Bluetooth ad hoc network, and the physical device can be a Wifi Device, a BT Device, and the like. In the preset cross-end device virtualization management module, connection drivers for various physical devices can be set, such as USB1~n, Wifi1~n, BLE (Bluetooth Low Energy) 1~n, 5G/LTE (Long Term Evolution), V2X (vehicle to everything), NFC (Near Field Communication), and Bluetooth plug-in. These connection drivers can provide physical devices of external networks with access to the cross-end device virtualization management module, so that the cross-end device virtualization management module can simultaneously maintain and manage multiple heterogeneous external networks. Among them, the plug-ins in Figure 2 can all realize "hot plugging", that is, they can realize the effective expansion of device connections.
步骤S102:根据连接事件,对物理设备的设备信息进行管理,并建立物理设备的数据链路。Step S102: according to the connection event, the device information of the physical device is managed, and a data link of the physical device is established.
在本实施例中,可以基于外部网络的物理设备的连接事件来实现对物理设备的设备信息的管理,同时基于连接事件,建立物理设备的数据链路。其中,数据链路是指物理设备与总线之间收发数据的媒介。基于对物理设备的设备信息的管理能够实现对物理设备的进行控制面的管理,基于数据链路能够实现对物理设备进行数据面的管理。In this embodiment, the device information of the physical device can be managed based on the connection event of the physical device of the external network, and the data link of the physical device can be established based on the connection event. The data link refers to the medium for sending and receiving data between the physical device and the bus. The control plane management of the physical device can be achieved based on the management of the device information of the physical device, and the data plane management of the physical device can be achieved based on the data link.
一个实施方式中,设备信息可以包括注册管理信息和状态管理信息,注册管理信息可以用于管理物理设备的注册信息和权限信息,状态管理信息可以用于管理物理设备的设备状态。In one implementation, the device information may include registration management information and status management information. The registration management information may be used to manage registration information and permission information of the physical device, and the status management information may be used to manage the device status of the physical device.
一个实施方式中,注册管理信息可以包括设备注册信息、设备服务注册信息和用户身份注册信息。In one implementation, the registration management information may include device registration information, device service registration information, and user identity registration information.
一个实施方式中,状态管理信息可以包括物理设备的设备参数信息、设备工作状态信息和设备资源信息。In one implementation, the status management information may include device parameter information, device working status information, and device resource information of the physical device.
步骤S103:根据设备信息和数据链路,建立物理设备与预设的总线的总线节点之间的接口连接,以实现将物理设备等效为总线的 总线节点。Step S103: According to the device information and the data link, an interface connection is established between the physical device and the bus node of the preset bus, so as to realize the equivalent of the physical device to the bus. Bus node.
在本实施例中,可以根据设备信息和数据链路,建立物理设备与预设的总线节点之间的接口连接,以实现将物理设备等效为总线节点接入总线。In this embodiment, an interface connection between a physical device and a preset bus node can be established according to the device information and the data link, so as to achieve the connection of the physical device to the bus as a bus node.
基于上述步骤S101-步骤S103,本发明实施例能够基于总线的外部网络的物理设备的连接驱动,建立物理设备的设备连接,并获取连接事件,基于连接事件对物理设备的设备信息进行管理,并建立物理设备的数据链路,根据设备信息和数据链路,建立外部网络的物理设备与预设的总线节点之间的接口连接,使得物理设备等效为总线节点。通过上述配置方式,本发明实施例能够对需要接入总线的外部网络的物理设备进行有效管理,将外部网络的物理设备等效为总线节点,解决了总线与外部网络之间的存在物理层差异的问题,屏蔽了不同的外部网络的物理设备与总线之间的物理层的差异,实现外部网络的物理设备与总线节点之间无缝融合和对等通信,使得基于总线的跨端通信过程更为开放和灵活。Based on the above steps S101-S103, the embodiment of the present invention can establish a device connection of the physical device based on the connection drive of the physical device of the external network of the bus, and obtain the connection event, manage the device information of the physical device based on the connection event, and establish the data link of the physical device, and establish the interface connection between the physical device of the external network and the preset bus node according to the device information and the data link, so that the physical device is equivalent to the bus node. Through the above configuration method, the embodiment of the present invention can effectively manage the physical devices of the external network that need to be connected to the bus, and make the physical devices of the external network equivalent to the bus node, which solves the problem of physical layer differences between the bus and the external network, shields the physical layer differences between the physical devices of different external networks and the bus, and realizes seamless integration and peer-to-peer communication between the physical devices of the external network and the bus nodes, making the cross-end communication process based on the bus more open and flexible.
下面对步骤S102和步骤S103分别作进一步地说明。Step S102 and step S103 are further described below.
在本发明实施例的一个实施方式中,步骤S102可以进一步包括以下步骤S10201至步骤S10204:In one implementation of the embodiment of the present invention, step S102 may further include the following steps S10201 to S10204:
步骤S10201:根据连接事件,分别获取物理设备的设备注册信息、设备服务注册信息和用户身份注册信息。Step S10201: According to the connection event, the device registration information, device service registration information and user identity registration information of the physical device are respectively obtained.
步骤S10202:通过预设的设备注册单元对设备注册信息进行管理。Step S10202: managing device registration information through a preset device registration unit.
步骤S10203:通过预设的设备服务注册单元对设备服务注册信息进行管理。Step S10203: managing the device service registration information through a preset device service registration unit.
步骤S10204:通过预设的用户身份注册单元对用户身份注册信息进行管理。Step S10204: managing the user identity registration information through a preset user identity registration unit.
在本实施方式中,可以参阅附图3,图3是根据本发明实施例的一个实施方式的基于总线的跨端通信的设备管理方法的架构示意图。如图3所示,可以根据物理设备的连接事件,分别获取物理设备的设备注册信息、设备服务注册信息和用户身份注册信息,并通过预设设备注册单元、设备服务注册单元和用户身份注册单元分别对设备注册信息、 设备服务注册信息和用户身份注册信息进行管理。其中,设备注册信息可以包括物理设备的ID、物理地址(MAC Address)和设备类型。设备服务注册信息可以包括物理设备的服务ID、服务接口和服务参数。用户身份注册信息可以包括物理设备的用户登录账户、用户权限和用户与物理设备之间的绑定关系。In this embodiment, please refer to FIG. 3, which is a schematic diagram of the architecture of a device management method based on bus cross-end communication according to an embodiment of the present invention. As shown in FIG. 3, the device registration information, device service registration information and user identity registration information of the physical device can be obtained according to the connection event of the physical device, and the device registration information, device service registration information and user identity registration information can be respectively obtained through the preset device registration unit, device service registration unit and user identity registration unit. The device service registration information and user identity registration information are managed. The device registration information may include the ID, physical address (MAC Address) and device type of the physical device. The device service registration information may include the service ID, service interface and service parameters of the physical device. The user identity registration information may include the user login account of the physical device, user permissions and the binding relationship between the user and the physical device.
一个实施方式中,步骤S10202可以进一步包括以下步骤S102021和步骤S102022:In one implementation, step S10202 may further include the following steps S102021 and S102022:
步骤S102021:通过设备注册单元,将设备注册信息转换成设备注册列表。Step S102021: The device registration information is converted into a device registration list through the device registration unit.
步骤S102022:将设备注册列表同步至预设的设备数据库中,以实现对设备注册信息的管理。Step S102022: Synchronize the device registration list to the preset device database to manage the device registration information.
在本实施方式中,可以参阅附图3,设备注册单元可以将设备注册信息转换为设备注册列表,并将设备注册列表同步至设备数据库中,设备数据库对设备注册列表进行存储和维护。这样在进行设备连接时,就可以直接对设备数据库中的设备注册列表进行索引,即能够获得设备注册信息,无需每次进行设备连接时都重新写入设备注册信息。同时,设备注册列表具有统一的数据结构,使得索引过程更为快速、便捷,也能够为后续的物理设备的设备诊断、通信性能优化以及资源管理等过程提供相关的设备信息。In this embodiment, referring to FIG. 3, the device registration unit can convert the device registration information into a device registration list, and synchronize the device registration list to the device database, which stores and maintains the device registration list. In this way, when connecting a device, the device registration list in the device database can be directly indexed, that is, the device registration information can be obtained without rewriting the device registration information each time the device is connected. At the same time, the device registration list has a unified data structure, which makes the indexing process faster and more convenient, and can also provide relevant device information for subsequent physical device device diagnosis, communication performance optimization, and resource management processes.
在本发明实施例的一个实施方式中,步骤S102除了包括上述步骤S10201至步骤S10204外,还可以包括以下步骤S10205至步骤S10208:In one implementation of the embodiment of the present invention, step S102 may include the following steps S10205 to S10208 in addition to the above steps S10201 to S10204:
步骤S10205:根据连接事件,分别获取物理设备的设备参数信息、设备工作状态信息和设备资源信息。Step S10205: According to the connection event, device parameter information, device working status information and device resource information of the physical device are respectively obtained.
步骤S10206:通过预设的设备参数管理单元对设备参数信息进行配置管理。Step S10206: Perform configuration management on the device parameter information through a preset device parameter management unit.
步骤S10207:通过预设的设备状态管理单元对设备工作状态信息进行维护。Step S10207: Maintain the device working status information through the preset device status management unit.
步骤S10208:通过预设的设备资源管理单元对设备资源信息进行管理。Step S10208: managing the device resource information through a preset device resource management unit.
在本实施方式中,继续参阅附图3,如图3所示,可以基于 连接事件来获取物理设备的设备参数信息、设备工作状态信息和设备资源信息,并通过设备参数管理单元、设备状态管理单元和设备资源管理单元分别对设备参数信息、设备工作状态信息和设备资源信息进行管理。其中,设备工作状态信息可以包括设备所处的电源模式以及通信的工作模式,对设备工作状态信息进行管理可以为维护设备所处的电源模式、通信的工作模式的状态机。设备参数信息可以包括物理设备的广播频度、连接超时的时长、睡眠定时唤醒的间隔等参数。设备资源信息可以包括物理设备的信道资源、协议资源、软件资源和硬件可用资源等。In this embodiment, referring to FIG. 3 , as shown in FIG. 3 , the The device parameter information, device working status information and device resource information of the physical device are obtained through the connection event, and the device parameter information, device working status information and device resource information are managed by the device parameter management unit, the device status management unit and the device resource management unit respectively. Among them, the device working status information may include the power mode and communication working mode of the device, and the management of the device working status information may be a state machine for maintaining the power mode and communication working mode of the device. The device parameter information may include parameters such as the broadcast frequency of the physical device, the duration of the connection timeout, the interval of the sleep timer wake-up, etc. The device resource information may include the channel resources, protocol resources, software resources and hardware available resources of the physical device.
一个实施方式中,可以通过总线节点,基于总线的网络管理事件,对设备状态管理单元中的设备工作状态信息进行更改。In one implementation, the device operating status information in the device status management unit can be modified through the bus node based on the network management events of the bus.
在本实施方式中,继续参阅附图3,总线的网络管理事件可以通过图3中的设备管理接口(总线节点)和设备状态管理单元来改变物理设备的工作状态和通信工作模式,以实现物理设备与总线的其他总线节点之间的工作状态的同步。其中,网络管理事件是指总线的通信或唤醒协同事件。In this embodiment, referring to FIG. 3 , the network management event of the bus can change the working state and communication working mode of the physical device through the device management interface (bus node) and the device state management unit in FIG. 3 to achieve synchronization of the working state between the physical device and other bus nodes of the bus. The network management event refers to the communication or wake-up coordination event of the bus.
一个实施方式中,可以通过总线节点,应用预设的设备配置列表来对设备参数单元的设备参数信息进行再配置。In one implementation, the device parameter information of the device parameter unit may be reconfigured by applying a preset device configuration list through the bus node.
在本实施方式中,继续参阅附图3,设备参数管理单元提供设备参数信息的配置管理,物理设备可以根据配置的设备参数信息改变其工作的行为。而改变的设备参数信息通过图3中的设备配置列表下发至设备管理接口(总线节点),从而进一步到达设备参数管理单元来实现设备参数的配置。In this embodiment, referring to FIG. 3 , the device parameter management unit provides configuration management of device parameter information, and the physical device can change its working behavior according to the configured device parameter information. The changed device parameter information is sent to the device management interface (bus node) through the device configuration list in FIG. 3 , and then further reaches the device parameter management unit to implement the configuration of the device parameters.
在本发明实施例的一个实施方式中,步骤S102还可以包括以下步骤S10209至步骤S10211:In one implementation of the embodiment of the present invention, step S102 may further include the following steps S10209 to S10211:
步骤S10209:根据连接事件,建立物理设备与总线节点之间的数据通道。Step S10209: Establish a data channel between the physical device and the bus node according to the connection event.
在本实施方式中,可以基于设备连接的连接事件,建立物理设备与总线节点之间的数据通道。In this implementation, a data channel between a physical device and a bus node may be established based on a connection event of a device connection.
一个实施方式中,如图3所示,建立物理设备与总线节点之间的数据通道的过程可以由图3中的通信链路管理单元实现。通信链路管理单元对数据通道的建立进行管理,并管理数据链路层、网络层和传 输层的工作状态和事件,其中包括广播、扫描、连接握手、鉴权、绑定、断开连接和异常等。In one embodiment, as shown in FIG3 , the process of establishing a data channel between a physical device and a bus node can be implemented by a communication link management unit in FIG3 . The communication link management unit manages the establishment of the data channel and manages the data link layer, the network layer, and the transmission layer. The working status and events of the transport layer, including broadcast, scanning, connection handshake, authentication, binding, disconnection and exception.
步骤S10210:根据数据通道,获取物理设备的进行通信所需要的传输协议。Step S10210: According to the data channel, obtain the transmission protocol required for communication of the physical device.
在本实施方式中,可以基于数据通道来获取物理设备进行通信的时所需的传输协议。In this implementation, the transmission protocol required for the physical devices to communicate can be acquired based on the data channel.
一个实施方式中,如图3所示,获取传输协议的步骤可以通过通信协议栈单元来实现。通信协议栈单元提供不同的物理设备所需的传输协议,如HTTP(Hyper Text Transfer Protocol,超文本传输协议)、FTP(File Transfer Protocol,文件传输协议)、RTP(Real-time Transport Protocol,实时传输协议)、GATT(Generic Attribute Profile,通用属性协议)等协议栈。针对基于总线的跨端通信而言,总线网络和外部网络之间的通信,不同的网络之间可能采用不同的传输协议,也可能采用相同的传输协议。In one implementation, as shown in FIG3 , the step of obtaining the transmission protocol can be implemented by a communication protocol stack unit. The communication protocol stack unit provides transmission protocols required by different physical devices, such as HTTP (Hyper Text Transfer Protocol), FTP (File Transfer Protocol), RTP (Real-time Transport Protocol), GATT (Generic Attribute Profile) and other protocol stacks. For bus-based cross-end communication, the communication between the bus network and the external network may use different transmission protocols between different networks, or may use the same transmission protocol.
步骤S10211:根据传输协议,对传输协议的PDU(Protocol Data Unit,协议数据单元)进行处理,以实现数据链路的建立。Step S10211: According to the transmission protocol, process the PDU (Protocol Data Unit) of the transmission protocol to establish a data link.
在本实施方式中,可以根据传输协议,对传输协议的PDU内容进行处理,如序列化、编解码、压缩、解压缩等处理,以实现数据链路的建立。In this implementation, the PDU content of the transmission protocol may be processed according to the transmission protocol, such as serialization, encoding and decoding, compression, decompression, etc., to achieve the establishment of a data link.
一个实施方式中,可以通过图3中的数据处理单元实现对传输协议的PDU进行处理。In one implementation, the PDU of the transmission protocol may be processed by the data processing unit in FIG. 3 .
一个实施方式中,可以根据PDU的处理结果,对物理设备与总线节点之间的传输协议和传输数据格式进行转换,以实现物理设备与总线节点之间的跨端通信。即,通过图3中的数据管理器和通信协议转换器,实现对总线和外部网络之间的传输协议和传输数据格式的转换,和适配,从而实现跨端通信中异构网络的基于服务会话的总线通信融合。In one implementation, the transmission protocol and transmission data format between the physical device and the bus node can be converted according to the processing result of the PDU to achieve cross-end communication between the physical device and the bus node. That is, through the data manager and communication protocol converter in FIG3, the conversion and adaptation of the transmission protocol and transmission data format between the bus and the external network are achieved, thereby achieving bus communication fusion based on service sessions of heterogeneous networks in cross-end communication.
在本发明实施例第一个实施方式中,本发明除了包括上述步骤S101和步骤S103外,还可以包括以下步骤S104和步骤S105:In the first implementation of the embodiment of the present invention, in addition to the above steps S101 and S103, the present invention may also include the following steps S104 and S105:
步骤S104:根据物理设备的地址信息和总线节点的地址信息,建立物理设备与总线节点之间的映射关系Step S104: Establishing a mapping relationship between the physical device and the bus node according to the address information of the physical device and the address information of the bus node
步骤S105:根据映射关系,确定物理设备与总线节点之间 的服务通道。Step S105: Determine the relationship between the physical device and the bus node according to the mapping relationship service channel.
在本实施方式中,可以根据物理设备和总线节点的地址信息,建立物理设备与总线节点之间的映射关系,并基于映射关系建立物理设备与总线节点之间的服务通道。其中,地址信息可以包括设备ID和设备端口号。服务通道是指服务信息可以传输的通道,其是以总线节点作为传输介质的。In this embodiment, a mapping relationship between the physical device and the bus node can be established according to the address information of the physical device and the bus node, and a service channel between the physical device and the bus node can be established based on the mapping relationship. The address information can include a device ID and a device port number. The service channel refers to a channel through which service information can be transmitted, which uses the bus node as a transmission medium.
一个实施方式中,可以将映射关系保存至预设的服务路由表中,服务路由表由预设的服务路由器进行维护。In one implementation, the mapping relationship may be saved in a preset service routing table, and the service routing table is maintained by a preset service router.
在本实施方式中,可以由图3中的服务路由器来维护保存有物理设备和总线节点之间映射关系的服务路由表。In this implementation, the service router in FIG. 3 may maintain a service routing table storing mapping relationships between physical devices and bus nodes.
一个实施方式中,步骤S103可以进一步被配置为:In one implementation, step S103 may be further configured as follows:
根据设备信息、数据链路和服务通道,建立物理设与总线节点之间的接口连接。According to the device information, data link and service channel, an interface connection between the physical device and the bus node is established.
一般而言,在跨端通信中,不同的终端(物理设备)的服务通信包括服务消费者和服务提供者之间通过服务原语进行服务接口调用,服务发现与注册、服务代理等会话。服务会话可以通过服务路由器来转发。服务总线上的服务会话的报文格式如下表1所示:Generally speaking, in cross-end communication, service communication between different terminals (physical devices) includes service interface calls between service consumers and service providers through service primitives, service discovery and registration, service proxy and other sessions. Service sessions can be forwarded through service routers. The message format of service sessions on the service bus is shown in Table 1 below:
表1服务会话的报文格式表
Table 1 Message format of service session
服务路由器根据报文中的目的设备ID/源设备ID/目的端口号/源端口号等信息来寻址和转发相关报文到目的设备。具体来说,服务路由器维护一份服务路由表。在单播的场景下,目的设备和源设备根据相关的ID号可以映射到跨端通信的异构网络拓扑中的一个唯一的总线节点,服务路由器根据服务路由表将相关会话报文转发到目的设备或者相关的总线节点上。针对多播和组播的场景,目的设备ID可以是一个特殊的定义值,映射到多个总线节点对应的物理设备上。根据目的端口号和源端口号可以确定唯一的服务通道。两个服务节点之间可以有多个服务通道。The service router addresses and forwards relevant messages to the destination device based on the destination device ID/source device ID/destination port number/source port number and other information in the message. Specifically, the service router maintains a service routing table. In a unicast scenario, the destination device and the source device can be mapped to a unique bus node in the heterogeneous network topology of cross-end communication based on the relevant ID number, and the service router forwards the relevant session message to the destination device or the relevant bus node based on the service routing table. For multicast and groupcast scenarios, the destination device ID can be a special defined value mapped to the physical devices corresponding to multiple bus nodes. A unique service channel can be determined based on the destination port number and the source port number. There can be multiple service channels between two service nodes.
一个实施方式中,可以继续参阅附图3,如图3所示,可以通过图3中的设备连接驱动插件(连接驱动)建立物理设备控制面和数据面的设备连接。可以通过图3中的设备连接管理模块建立与外部网络 的物理设备的设备连接。并通过设备安全管理模块提供设备连接过程中的鉴权、加解密所需要的安全功能,如随机数生成器、安全存储、安全算法引擎、数字证书管理等内容。In one implementation, referring to FIG. 3, as shown in FIG. 3, a device connection between a physical device control plane and a data plane can be established through a device connection driver plug-in (connection driver) in FIG. 3. A device connection management module in FIG. 3 can be used to establish a connection with an external network. The device security management module provides the security functions required for authentication, encryption and decryption during the device connection process, such as random number generator, secure storage, security algorithm engine, digital certificate management, etc.
需要指出的是,尽管上述实施例中将各个步骤按照特定的先后顺序进行了描述,但是本领域技术人员可以理解,为了实现本发明的效果,不同的步骤之间并非必须按照这样的顺序执行,其可以同时(并行)执行或以其他顺序执行,这些变化都在本发明的保护范围之内。It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.
进一步,本发明还提供了一种基于总线的跨端通信的设备管理系统。Furthermore, the present invention also provides a device management system based on bus-based cross-end communication.
参阅附图4,图4是根据本发明的一个实施例的基于总线的跨端通信的设备管理系统的主要结构框图。如图4所示,本发明实施例中的基于总线的跨端通信的设备管理系统可以包括设备连接事件获取模块、设备管理信息和数据链路确定模块和接口连接建立模块。在本实施例中,设备连接事件获取模块可以被配置为基于总线的外部网络的物理设备的连接驱动,建立与物理设备的设备连接,并获取设备连接的连接事件。设备管理信息和数据链路确定模块可以被配置为根据连接事件,对物理设备的设备信息进行管理,并建立物理设备的数据链路。接口连接建立模块可以被配置为根据设备信息和数据链路,建立物理设备与预设的总线的总线节点之间的接口连接,以实现将物理设备等效为总线的总线节点。Refer to Figure 4, which is a main structural block diagram of a device management system based on bus-based cross-end communication according to an embodiment of the present invention. As shown in Figure 4, the device management system based on bus-based cross-end communication in the embodiment of the present invention may include a device connection event acquisition module, a device management information and data link determination module, and an interface connection establishment module. In this embodiment, the device connection event acquisition module can be configured as a connection driver for a physical device of an external network based on the bus, establishes a device connection with the physical device, and obtains a connection event of the device connection. The device management information and data link determination module can be configured to manage the device information of the physical device according to the connection event and establish a data link for the physical device. The interface connection establishment module can be configured to establish an interface connection between the physical device and a bus node of a preset bus according to the device information and the data link, so as to realize the equivalence of the physical device to the bus node of the bus.
上述基于总线的跨端通信的设备管理系统以用于执行图1所示的基于总线的跨端通信的设备管理方法实施例,两者的技术原理、所解决的技术问题及产生的技术效果相似,本技术领域技术人员可以清楚地了解到,为了描述的方便和简洁,基于总线的跨端通信的设备管理系统的具体工作过程及有关说明,可以参考基于总线的跨端通信的设备管理方法的实施例所描述的内容,此处不再赘述。The above-mentioned bus-based cross-end communication device management system is used to execute the bus-based cross-end communication device management method embodiment shown in Figure 1. The technical principles, technical problems solved and technical effects produced by the two are similar. Technical personnel in this technical field can clearly understand that for the convenience and conciseness of description, the specific working process and related instructions of the bus-based cross-end communication device management system can refer to the contents described in the embodiment of the bus-based cross-end communication device management method, which will not be repeated here.
本领域技术人员能够理解的是,本发明实现上述一实施例的方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码 形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读存储介质可以包括:能够携带所述计算机程序代码的任何实体或装置、介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器、随机存取存储器、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不包括电载波信号和电信信号。It is understood by those skilled in the art that the present invention can implement all or part of the processes in the method of the above embodiment by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above method embodiments can be implemented. The computer program includes computer program code, which can be source code. The computer-readable storage medium may include any entity or device, medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal, and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable storage medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable storage media do not include electric carrier signals and telecommunication signals.
进一步,本发明还提供了一种控制装置。在根据本发明的一个控制装置实施例中,控制装置包括处理器和存储装置,存储装置可以被配置成存储执行上述方法实施例的基于总线的跨端通信的设备管理方法的程序,处理器可以被配置成用于执行存储装置中的程序,该程序包括但不限于执行上述方法实施例的基于总线的跨端通信的设备管理方法的程序。为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该控制装置可以是包括各种电子设备形成的控制装置设备。Furthermore, the present invention also provides a control device. In an embodiment of a control device according to the present invention, the control device includes a processor and a storage device, the storage device can be configured to store a program for executing a device management method based on bus cross-end communication of the above method embodiment, and the processor can be configured to execute the program in the storage device, which includes but is not limited to executing a program for a device management method based on bus cross-end communication of the above method embodiment. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The control device can be a control device device formed by various electronic devices.
进一步,本发明还提供了一种计算机可读存储介质。在根据本发明的一个计算机可读存储介质实施例中,计算机可读存储介质可以被配置成存储执行上述方法实施例的基于总线的跨端通信的设备管理方法的程序,该程序可以由处理器加载并运行以实现上述基于总线的跨端通信的设备管理方法。为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该计算机可读存储介质可以是包括各种电子设备形成的存储装置设备,可选的,本发明实施例中计算机可读存储介质是非暂时性的计算机可读存储介质。Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium can be configured to store a program for executing the device management method based on bus-based cross-end communication of the above-mentioned method embodiment, and the program can be loaded and run by the processor to implement the above-mentioned device management method based on bus-based cross-end communication. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-temporary computer-readable storage medium.
进一步,应该理解的是,由于各个模块的设定仅仅是为了说明本发明的装置的功能单元,这些模块对应的物理器件可以是处理器本身,或者处理器中软件的一部分,硬件的一部分,或者软件和硬件结合的一部分。因此,图中的各个模块的数量仅仅是示意性的。Further, it should be understood that since the setting of each module is only for illustrating the functional units of the device of the present invention, the physical devices corresponding to these modules may be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.
本领域技术人员能够理解的是,可以对装置中的各个模块进行适应性地拆分或合并。对具体模块的这种拆分或合并并不会导致技术方案偏离本发明的原理,因此,拆分或合并之后的技术方案都将落入本发明的保护范围内。 Those skilled in the art will appreciate that the modules in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present invention, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present invention.
至此,已经结合附图所示的优选实施方式描述了本发明的技术方案,但是,本领域技术人员容易理解的是,本发明的保护范围显然不局限于这些具体实施方式。在不偏离本发明的原理的前提下,本领域技术人员可以对相关技术特征作出等同的更改或替换,这些更改或替换之后的技术方案都将落入本发明的保护范围之内。 So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims (13)

  1. 一种基于总线的跨端通信的设备管理方法,其特征在于,所述方法包括:A device management method based on bus cross-end communication, characterized in that the method comprises:
    基于所述总线的外部网络的物理设备的连接驱动,建立与所述物理设备的设备连接,并获取所述设备连接的连接事件;A connection driver of a physical device of an external network of the bus establishes a device connection with the physical device and obtains a connection event of the device connection;
    根据所述连接事件,对所述物理设备的设备信息进行管理,并建立所述物理设备的数据链路;According to the connection event, managing device information of the physical device and establishing a data link of the physical device;
    根据所述设备信息和所述数据链路,建立所述物理设备与预设的所述总线的总线节点之间的接口连接,以实现将所述物理设备等效为所述总线的总线节点。According to the device information and the data link, an interface connection is established between the physical device and a preset bus node of the bus, so as to realize that the physical device is equivalent to a bus node of the bus.
  2. 根据权利要求1所述的基于总线的跨端通信的设备管理方法,其特征在于,所述设备信息包括注册管理信息和状态管理信息,所述注册管理信息用于管理所述物理设备的注册信息和权限信息,所述状态管理信息用于管理所述物理设备的设备状态。According to the device management method based on bus cross-end communication according to claim 1, it is characterized in that the device information includes registration management information and status management information, the registration management information is used to manage the registration information and permission information of the physical device, and the status management information is used to manage the device status of the physical device.
  3. 根据权利要求2所述的基于总线的跨端通信的设备管理方法,其特征在于,所述注册管理信息包括设备注册信息、设备服务注册信息和用户身份注册信息,“根据所述连接事件,对所述物理设备的设备信息进行管理”的步骤包括:According to claim 2, the device management method based on bus cross-end communication is characterized in that the registration management information includes device registration information, device service registration information and user identity registration information, and the step of "managing the device information of the physical device according to the connection event" includes:
    根据所述连接事件,分别获取所述物理设备的设备注册信息、设备服务注册信息和用户身份注册信息;According to the connection event, respectively obtain device registration information, device service registration information and user identity registration information of the physical device;
    通过预设的设备注册单元对所述设备注册信息进行管理;Managing the device registration information through a preset device registration unit;
    通过预设的设备服务注册单元对所述设备服务注册信息进行管理;Managing the device service registration information through a preset device service registration unit;
    通过预设的用户身份注册单元对所述用户身份注册信息进行管理。The user identity registration information is managed by a preset user identity registration unit.
  4. 根据权利要求3所述的基于总线的跨端通信的设备管理方法,其特征在于,“通过预设的设备注册单元对所述设备注册信息进行管理”的步骤包括:The device management method based on bus cross-end communication according to claim 3 is characterized in that the step of "managing the device registration information through a preset device registration unit" comprises:
    通过所述设备注册单元,将所述设备注册信息转换成设备注册列表; By means of the device registration unit, converting the device registration information into a device registration list;
    将所述设备注册列表同步至预设的设备数据库中,以实现对所述设备注册信息的管理;和/或,Synchronize the device registration list to a preset device database to manage the device registration information; and/or,
    所述设备注册信息包括所述物理设备的ID、物理地址和设备类型;和/或,The device registration information includes the ID, physical address and device type of the physical device; and/or,
    所述设备服务注册信息包括所述物理设备的服务ID、服务接口和服务参数;和/或,The device service registration information includes the service ID, service interface and service parameters of the physical device; and/or,
    所述用户身份注册信息包括所述物理设备的用户登录账户、用户权限和用户与物理设备之间的绑定关系。The user identity registration information includes the user login account of the physical device, user permissions and the binding relationship between the user and the physical device.
  5. 根据权利要求3所述的基于总线的跨端通信的设备管理方法,其特征在于,所述状态管理信息包括所述物理设备的设备参数信息、设备工作状态信息和设备资源信息,“根据所述连接事件,对所述物理设备的设备信息进行管理”的步骤还包括:According to claim 3, the device management method based on bus cross-end communication is characterized in that the status management information includes device parameter information, device working status information and device resource information of the physical device, and the step of "managing the device information of the physical device according to the connection event" further includes:
    根据所述连接事件,分别获取所述物理设备的设备参数信息、设备工作状态信息和设备资源信息;According to the connection event, device parameter information, device working status information and device resource information of the physical device are respectively obtained;
    通过预设的设备参数管理单元对所述设备参数信息进行配置管理;Performing configuration management on the device parameter information through a preset device parameter management unit;
    通过预设的设备状态管理单元对所述设备工作状态信息进行维护;Maintaining the device working status information through a preset device status management unit;
    通过预设的设备资源管理单元对所述设备资源信息进行管理。The device resource information is managed by a preset device resource management unit.
  6. 根据权利要求5所述的基于总线的跨端通信的设备管理方法,其特征在于,所述方法还包括:The device management method based on bus cross-end communication according to claim 5, characterized in that the method further comprises:
    通过所述总线节点,基于所述总线的网络管理事件,对所述设备状态管理单元中的设备工作状态信息进行更改;和/或,By means of the bus node, based on the network management event of the bus, the device working status information in the device status management unit is modified; and/or,
    通过所述总线节点,应用预设的设备配置列表对所述设备参数管理单元的设备参数信息进行再配置。The device parameter information of the device parameter management unit is reconfigured by applying a preset device configuration list through the bus node.
  7. 根据权利要求1所述的基于总线的跨端通信的设备管理方法,其特征在于,“建立所述物理设备的数据链路”的步骤包括:The device management method based on bus cross-end communication according to claim 1 is characterized in that the step of "establishing a data link of the physical device" comprises:
    根据所述连接事件,建立所述物理设备与所述总线节点之间的数据通道;According to the connection event, establishing a data channel between the physical device and the bus node;
    根据所述数据通道,获取所述物理设备的进行通信所需要的传输协 议;According to the data channel, the transmission protocol required for the communication of the physical device is obtained. Discussion;
    根据所述传输协议,对所述传输协议的PDU进行处理,以实现所述数据链路的建立。According to the transmission protocol, the PDU of the transmission protocol is processed to achieve the establishment of the data link.
  8. 根据权利要求7所述的基于总线的跨端通信的设备管理方法,其特征在于,所述方法还包括:The device management method based on bus cross-end communication according to claim 7, characterized in that the method further comprises:
    根据PDU的处理结果,对所述物理设备与所述总线节点之间的传输协议和传输数据格式进行转换,以实现所述物理设备与所述总线节点之间的跨端通信。According to the processing result of the PDU, the transmission protocol and the transmission data format between the physical device and the bus node are converted to achieve cross-end communication between the physical device and the bus node.
  9. 根据权利要求1所述的基于总线的跨端通信的设备管理方法,其特征在于,所述方法还包括:The device management method based on bus cross-end communication according to claim 1, characterized in that the method further comprises:
    根据所述物理设备的地址信息和所述总线节点的地址信息,建立所述物理设备与所述总线节点之间的映射关系;Establishing a mapping relationship between the physical device and the bus node according to the address information of the physical device and the address information of the bus node;
    根据所述映射关系,确定所述物理设备与所述总线节点之间的服务通道。According to the mapping relationship, a service channel between the physical device and the bus node is determined.
  10. 根据权利要求9所述的基于总线的跨端通信的设备管理方法,其特征在于,“根据所述设备信息和所述数据链路,建立所述物理设备与预设的所述总线的总线节点之间的接口连接”包括:The device management method based on bus-based cross-end communication according to claim 9 is characterized in that "establishing an interface connection between the physical device and a preset bus node of the bus according to the device information and the data link" comprises:
    根据所述设备信息、所述数据链路和所述服务通道,建立所述物理设与所述总线节点之间的接口连接;和/或,establishing an interface connection between the physical device and the bus node according to the device information, the data link and the service channel; and/or,
    所述地址信息包括设备ID和/或设备端口号;和/或,The address information includes a device ID and/or a device port number; and/or,
    所述方法还包括:The method further comprises:
    将所述映射关系保存至预设的服务路由表中,所述服务路由表由预设的服务路由器进行维护。The mapping relationship is saved in a preset service routing table, and the service routing table is maintained by a preset service router.
  11. 一种基于总线的跨端通信的设备管理系统,其特征在于,所述系统包括:A device management system based on bus-based cross-end communication, characterized in that the system comprises:
    设备连接事件获取模块,其被配置为基于所述总线的外部网络的物理设备的连接驱动,建立与所述物理设备的设备连接,并获取所述设备 连接的连接事件;The device connection event acquisition module is configured to be a connection driver of a physical device of an external network based on the bus, establish a device connection with the physical device, and acquire the device Connection events for connections;
    设备管理信息和数据链路确定模块,其被配置为根据所述连接事件,对所述物理设备的设备信息进行管理,并建立所述物理设备的数据链路;a device management information and data link determination module, configured to manage device information of the physical device and establish a data link of the physical device according to the connection event;
    接口连接建立模块,其被配置为根据所述设备信息和所述数据链路,建立所述物理设备与预设的所述总线的总线节点之间的接口连接,以实现将所述物理设备等效为所述总线的总线节点。An interface connection establishing module is configured to establish an interface connection between the physical device and a preset bus node of the bus according to the device information and the data link, so as to realize the equivalence of the physical device to the bus node of the bus.
  12. 一种控制装置,包括处理器和存储装置,所述存储装置适于存储多条程序代码,其特征在于,所述程序代码适于由所述处理器加载并运行以执行权利要求1至10中任一项所述的基于总线的跨端通信的设备管理方法。A control device comprises a processor and a storage device, wherein the storage device is suitable for storing multiple program codes, and is characterized in that the program codes are suitable for being loaded and run by the processor to execute the device management method based on bus cross-end communication as described in any one of claims 1 to 10.
  13. 一种计算机可读存储介质,其中存储有多条程序代码,其特征在于,所述程序代码适于由处理器加载并运行以执行权利要求1至10中任一项所述的基于总线的跨端通信的设备管理方法。 A computer-readable storage medium storing a plurality of program codes, characterized in that the program codes are suitable for being loaded and run by a processor to execute the device management method based on bus cross-end communication as described in any one of claims 1 to 10.
PCT/CN2023/122389 2022-09-30 2023-09-28 Cross-terminal-communication device management method, system and apparatus based on bus, and medium WO2024067757A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211216525.XA CN115622833B (en) 2022-09-30 2022-09-30 Device management method, system, device and medium for cross-terminal communication based on bus
CN202211216525.X 2022-09-30

Publications (1)

Publication Number Publication Date
WO2024067757A1 true WO2024067757A1 (en) 2024-04-04

Family

ID=84861331

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/122389 WO2024067757A1 (en) 2022-09-30 2023-09-28 Cross-terminal-communication device management method, system and apparatus based on bus, and medium

Country Status (2)

Country Link
CN (1) CN115622833B (en)
WO (1) WO2024067757A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115622833B (en) * 2022-09-30 2024-04-19 蔚来软件科技(上海)有限公司 Device management method, system, device and medium for cross-terminal communication based on bus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020004872A1 (en) * 2000-06-02 2002-01-10 Koichi Ono Interface device, node, interface system, method for controlling bus reset and computer program product for controlling bus reset
CN101083578A (en) * 2006-05-29 2007-12-05 中国移动通信集团公司 Method for distributing address for intelligent information household electronic equipments in household network
CN104991877A (en) * 2015-06-26 2015-10-21 武汉光庭科技有限公司 Efficient unified extension method for vehicle-mounted navigation host
CN110784510A (en) * 2019-09-17 2020-02-11 亚信科技(中国)有限公司 Method for accessing target service node to bus and information interaction method of service node
CN115114600A (en) * 2022-06-29 2022-09-27 中孚安全技术有限公司 Unified management and control method and system for internal equipment and external equipment
CN115622833A (en) * 2022-09-30 2023-01-17 蔚来软件科技(上海)有限公司 Device management method, system, device and medium for cross-terminal communication based on bus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1116231B1 (en) * 1999-07-27 2013-09-25 Samsung Electronics Co., Ltd. Device discovery and control in a bridged home network
EP1396962A1 (en) * 2002-08-05 2004-03-10 Sony International (Europe) GmbH Bus service interface
JP5838983B2 (en) * 2013-02-25 2016-01-06 トヨタ自動車株式会社 Information processing apparatus and information processing method
JP6471739B2 (en) * 2016-11-18 2019-02-20 トヨタ自動車株式会社 In-vehicle communication system
JP7124303B2 (en) * 2017-12-04 2022-08-24 トヨタ自動車株式会社 Vehicle-mounted relay device, information processing device, relay device, information processing method, program, information processing system, and vehicle
US11505161B2 (en) * 2020-10-13 2022-11-22 Ford Global Technologies, Llc Authenticating privilege elevation on a transportation service

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020004872A1 (en) * 2000-06-02 2002-01-10 Koichi Ono Interface device, node, interface system, method for controlling bus reset and computer program product for controlling bus reset
CN101083578A (en) * 2006-05-29 2007-12-05 中国移动通信集团公司 Method for distributing address for intelligent information household electronic equipments in household network
CN104991877A (en) * 2015-06-26 2015-10-21 武汉光庭科技有限公司 Efficient unified extension method for vehicle-mounted navigation host
CN110784510A (en) * 2019-09-17 2020-02-11 亚信科技(中国)有限公司 Method for accessing target service node to bus and information interaction method of service node
CN115114600A (en) * 2022-06-29 2022-09-27 中孚安全技术有限公司 Unified management and control method and system for internal equipment and external equipment
CN115622833A (en) * 2022-09-30 2023-01-17 蔚来软件科技(上海)有限公司 Device management method, system, device and medium for cross-terminal communication based on bus

Also Published As

Publication number Publication date
CN115622833A (en) 2023-01-17
CN115622833B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
US11122027B2 (en) End-to-end M2M service layer sessions
JP6906565B2 (en) Schedule selection and connection setup between devices participating in NAN datalinks
TW201713137A (en) Smart co-processor for optimizing service discovery power consumption in wireless service platforms
WO2021031562A1 (en) Information obtaining method and device
CN113873453B (en) Communication method, apparatus, system and medium
WO2021218595A1 (en) Address acquiring method and apparatus
WO2024067757A1 (en) Cross-terminal-communication device management method, system and apparatus based on bus, and medium
WO2022222745A1 (en) Communication method and apparatus
WO2018170703A1 (en) Connection establishment method and device
JP7442690B2 (en) SECURE COMMUNICATION METHODS, RELATED EQUIPMENT AND SYSTEMS
WO2024067758A1 (en) Bus-based cross-terminal communication method and system, and apparatus and readable storage medium
WO2022151420A1 (en) Method, apparatus, and system for transmitting data packet
TWI663884B (en) Method of data communication for a communication device in wireless ad hoc network and a communication device
WO2024078501A1 (en) Communication method and apparatus
WO2022012355A1 (en) Secure communication method, related apparatus, and system
WO2024197846A1 (en) Communication methods and apparatuses, device, chip and storage medium
WO2024199060A1 (en) Security establishment method and related apparatus
WO2022206462A1 (en) Signaling message processing method, apparatus, and system
WO2022097614A1 (en) Information processing device and information processing method

Legal Events

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

Ref document number: 23870982

Country of ref document: EP

Kind code of ref document: A1