Device management method, system and device based on type-c interface and storage medium
Patent Information
- Application Number
- CN202211604697.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-13
- Publication Date
- 2026-11-03
- Estimated Expiration
- 2042-12-13
AI Technical Summary
Traditional consumer electronics products are too small to accommodate additional serial ports, resulting in high costs and inconvenience in device status management. Existing technologies need to be improved.
Device status management is implemented using the Type-C interface. By listening to the VID, PID and description information of the connected device, it can determine whether it is a management device, configure the data transmission mode, and actively collect and send device information.
It saves costs, makes equipment management more convenient and faster, and can automatically obtain information about devices connected to other interfaces.
Smart Images

Figure CN116166598B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of device management technology, and in particular to a device management method, system, device, and storage medium based on a Type-C interface. Background Technology
[0002] Traditional consumer electronics products manage device status through serial ports and host computers. However, with the increasing miniaturization of consumer electronics products, it is unlikely that serial ports can be added to the products, as this would not only increase the size but also the cost. Most existing consumer electronics products have Type-C interfaces. By utilizing the existing Type-C power supply interface for device status management, not only are costs saved, but it is also more convenient and faster!
[0003] Therefore, existing technologies still need to be improved and developed. Summary of the Invention
[0004] The main objective of this invention is to provide a device management method, system, device, and storage medium based on a Type-C interface to solve the problems of the prior art described in the background.
[0005] The first aspect of this invention provides a device management method based on a Type-C interface for intermediate devices, comprising:
[0006] Monitor whether a device is connected to the Type-C interface;
[0007] When a device is detected to be connected to the Type-C interface, the device VID, device PID, and device description information of the connected device are obtained.
[0008] Based on the device VID, the device PID, and the device description information, determine whether the access device is a management device;
[0009] If the access device is a management device, the Type-C interface is configured to bidirectional data transmission mode, and information about devices connected to other interfaces is actively collected.
[0010] The device information is sent to the access device via the Type-C interface to generate a list of connected devices in the display interface of the access device.
[0011] In an optional embodiment of the first aspect of the present invention, determining whether the access device is a management device based on the device VID, the device PID, and the device description information includes:
[0012] Obtain the pre-set registration device information table;
[0013] Determine whether the combination of the device VID, the device PID, and the device description information exists in the registered device information table;
[0014] If the combination of the device VID, the device PID, and the device description information exists in the registered device information table, then the access device is determined to be a management device.
[0015] If the combination of the device VID, the device PID, and the device description information does not exist in the registered device information table, then the access device is determined not to be a management device.
[0016] In an optional embodiment of the first aspect of the present invention, if the access device is a management device, configuring the Type-C interface to a bidirectional data transmission mode and actively collecting device information connected to other interfaces includes:
[0017] A first data transmission channel is established between the intermediate device and the access device based on the Type-C interface;
[0018] One end of the first data transmission channel is connected to a preset first data storage area in the intermediate device, and the other end of the first data transmission channel is connected to a preset second data storage area in the access device. The attributes of both the first data storage area and the second data storage area are configured to be readable and writable.
[0019] Actively collect information about devices connected to other interfaces;
[0020] The device information is written into the first data storage area.
[0021] In an optional embodiment of the first aspect of the present invention, sending the device information to the access device via the Type-C interface to generate a list of connected devices in the display interface of the access device includes:
[0022] The device information is read from the first data storage area through the Type-C interface;
[0023] The device information is encapsulated according to the USB transmission protocol to obtain a transmission data packet;
[0024] The data packet is transmitted to the second data storage area through the first data transmission channel;
[0025] The device information is obtained by parsing the transmitted data packet in the second data storage area.
[0026] In an optional embodiment of the first aspect of the present invention, after determining whether the access device is a management device based on the device VID, the device PID, and the device description information, the method further includes:
[0027] If the access device is not a management device, then the Type-C interface is configured to a one-way data transmission mode.
[0028] In an optional embodiment of the first aspect of the present invention, configuring the Type-C interface to a one-way data transmission mode if the access device is not a management device includes:
[0029] A second data transmission channel is established between the intermediate device and the access device based on the Type-C interface;
[0030] One end of the second data transmission channel is connected to a preset third data storage area within the intermediate device, and the other end of the second data transmission channel is connected to a preset fourth data storage area within the access device. The attributes of the third data storage area are configured such that the interface is readable but not writable, and the attributes of the fourth data storage area are configured such that the interface is writable but not readable.
[0031] In an optional embodiment of the first aspect of the present invention, the step of sending the device information to the access device via the Type-C interface to generate a list of connected devices in the display interface of the access device further includes:
[0032] Receive parameter modification instructions sent by the access device through the Type-C interface;
[0033] The connection device whose parameters need to be modified and the parameters that need to be modified are obtained from the parameter modification instruction;
[0034] Apply the parameters to the connected device.
[0035] A second aspect of the present invention provides an equipment management system, the equipment management system comprising:
[0036] The monitoring module is used to monitor whether a device is connected to the Type-C interface;
[0037] The PID / VID / device description information acquisition module is used to acquire the device VID, device PID and device description information of the accessed device when a device is detected to be connected to the Type-C interface.
[0038] The determination module is used to determine whether the access device is a management device based on the device VID, the device PID and the device description information;
[0039] The transmission mode configuration module is used to configure the Type-C interface to bidirectional data transmission mode if the access device is a management device, and to actively collect device information connected to other interfaces;
[0040] The data transmission module is used to send the device information to the access device through the Type-C interface, so as to generate a list of connected devices in the display interface of the access device.
[0041] A third aspect of the present invention provides a device management intermediate device, the device management intermediate device comprising: a memory and at least one processor, the memory storing instructions, and the memory and the at least one processor being interconnected via a line;
[0042] The at least one processor invokes the instructions in the memory to cause the device management intermediate device to perform the device management method based on the Type-C interface as described in any of the preceding claims.
[0043] A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the device management method based on a Type-C interface as described in any of the preceding claims.
[0044] Beneficial Effects: This invention provides a device management method, system, device, and storage medium based on a Type-C interface. The method includes monitoring whether a device is connected to the Type-C interface; when a device is detected connected to the Type-C interface, obtaining the device VID, device PID, and device description information of the connected device; determining whether the connected device is a management device based on the device VID, device PID, and device description information; if the connected device is a management device, configuring the Type-C interface to a bidirectional data transmission mode and actively collecting device information connected to other interfaces; and sending the device information to the connected device through the Type-C interface to generate a connected device list on the display interface of the connected device. This invention utilizes the Type-C interface for device management. When a management device is connected to the Type-C interface, it can automatically obtain device information connected to other interfaces, saving costs and making device management more convenient. Attached Figure Description
[0045] Figure 1 This is a schematic diagram of an embodiment of a device management method based on a Type-C interface according to the present invention;
[0046] Figure 2 This is a schematic diagram of an embodiment of a video capture card according to the present invention;
[0047] Figure 3 This is a schematic diagram of an embodiment of an equipment management system according to the present invention;
[0048] Figure 4 This is a schematic diagram of an embodiment of an intermediate device for device management according to the present invention. Detailed Implementation
[0049] This invention provides a device management method, system, device, and storage medium based on a Type-C interface. The terms "first," "second," "third," "fourth," etc. (if applicable) in the specification, claims, and accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be understood in addition to those illustrated herein.
[0050] Or implemented in a sequence other than that described. Furthermore, the terms “comprising” or “having” and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units that are expressly listed, but may include other steps or units that are not expressly listed or that are inherent to such process, method, product, or apparatus.
[0051] See Figure 1 The first aspect of the present invention provides a device management method based on a Type-C interface for an intermediate device, wherein the intermediate device is provided with at least one Type-C interface, comprising:
[0052] S100. Monitor whether a device is connected to the Type-C interface; In this invention, the Type-C interface can be the charging and data transmission interface of an intermediate device. The inventive point of this invention is to use the Type-C interface of the intermediate device to manage the connected devices on the intermediate device.
[0053] S200. When a device is detected to be connected to the Type-C interface, the device VID, device PID, and device description information of the connected device are obtained. The device description information includes hardware configuration information and operating system information. In this invention, after the interface monitoring process of the intermediate device system detects that a device has been connected and completes the interface function detection, it will obtain the device VID, device PID, and device description information of the connected device through the Type-C interface. The technical solution of this invention uses the device VID, device PID, and device description information to determine whether the connected device is a management device.
[0054] S300. Determine whether the access device is a management terminal device (host computer) based on the device VID, the device PID, and the device description information. In this invention, the principle of determining whether the access device is a management terminal device through the device VID, the device PID, and the device description information is to determine whether the access device has been registered in the intermediate device. If it has been registered, the access device is considered to be a management terminal device; if it has not been registered in the intermediate device, it is not.
[0055] S400. If the access device is a management device, the Type-C interface is configured to bidirectional data transmission mode, and information about devices connected to other interfaces is actively collected. The device information includes device name, device VID, device PID, and device configuration parameters. In this invention, when the access device is determined to be a management device, in order to facilitate the management device in obtaining and sending information, the system automatically configures the Type-C interface to bidirectional data transmission mode and actively collects information about devices connected to other interfaces so that the management device can manage the connected devices on other interfaces.
[0056] S500: The device information is sent to the access device via the Type-C interface to generate a list of connected devices in the display interface of the access device. In this invention, the intermediate device sends the device information of other connected devices to the access device for subsequent management.
[0057] See Figure 2 In an optional embodiment of the first aspect of the present invention, the intermediate device includes a video capture card, the video capture card including a video processing chip, an HID to serial port chip, a protocol switching chip, a Type-C interface and a plurality of HDMI interfaces, the HID to serial port chip and the protocol switching chip are both communicatively connected to the video processing chip, the Type-C interface is communicatively connected to the HID to serial port chip, at least one of the HDMI interfaces is communicatively connected to the protocol switching chip, and at least one of the HDMI interfaces is communicatively connected to the video processing chip.
[0058] In this invention, the video processing chip handles video transmission and receives commands from the computer / sends video information from the chip itself. The HID-to-serial chip supports bidirectional data transmission, receiving serial port data and, according to the HID class device specification, packaging the data and uploading it to the computer via the Type-C interface, or receiving USB data packets compliant with HID class devices from the computer and sending them via the serial port. Users can also configure the chip's VID, PID, and various string descriptors using the provided host computer software. The protocol switching chip controls the HDMI HPD / CEC / DDC voltage switches by controlling the hardware states, establishing corresponding chip select relationships. The protocol switching chip enables reverse video transmission, allowing the video signal transmitter to automatically switch to a video signal receiver depending on whether a signal source or a display is inserted.
[0059] In an optional embodiment of the first aspect of the present invention, determining whether the access device is a management device based on the device VID, the device PID, and the device description information includes:
[0060] Obtain a pre-set registered device information table; in this invention, the registered device information table stores the device VID, device PID, and device description information of the registered management terminal devices, and the device VID, device PID, and device description information of each registered management terminal device are stored together.
[0061] Determine whether the combination of the device VID, the device PID, and the device description information exists in the registered device information table; in this invention, when comparing the device VID, the device PID, and the device description information, first compare the device VID to find all rows in the list that include the device VID, then compare the device PID to exclude rows with different device PIDs, and finally compare the device description information item by item.
[0062] If the combination of the device VID, the device PID, and the device description information exists in the registered device information table, then the access device is determined to be a management device; in this invention, if there is a row in the registered device information table where the device VID, the device PID, and the device description information are completely identical, then it proves that the access device has been registered and is a management device.
[0063] If the combination of the device VID, the device PID, and the device description information does not exist in the registered device information table, then the access device is determined not to be a management device. In this invention, if there is no completely identical row in the registered device information table for the device VID, device PID, and device description information, it proves that the access device has not been registered and is therefore not a management device. In another optional embodiment of the first aspect of this invention, the determination of whether the access device is a management device can also be based on the MAC address (this MAC address can be a traditional MAC address or a custom MAC address). Determining whether the access device is a management device based on the MAC address includes:
[0064] Read the first byte of the MAC address; In this invention, a MAC address is usually written to the device when it leaves the factory. According to the usual specifications, if the device is a computer, the first byte of the MAC address is usually zero, and if it is not a computer, it is usually other numbers. The device can usually be determined as a mobile phone or a computer by the first byte of the MAC address. In this invention, when the device manufacturer does not configure the MAC address according to the usual specifications, it can also be modified manually.
[0065] Determine whether the first byte is zero; in this invention, after reading the first byte, it is determined whether the first byte is zero.
[0066] If the first byte is zero, the access device is determined to be a management device. In this invention, if the first byte is zero, the access device is identified as a management device; if it is not zero, the access device is identified as not a management device, and subsequent process steps are not executed.
[0067] In an optional embodiment of the first aspect of the present invention, if the access device is a management device, configuring the Type-C interface to a bidirectional data transmission mode and actively collecting device information connected to other interfaces includes:
[0068] A first data transmission channel is established between the intermediate device and the access device based on the Type-C interface. In this invention, when the access device is a management device, the system will configure a dedicated data transmission channel for control between the intermediate device and the management device, so as not to affect the original data transmission function of the Type-C interface.
[0069] One end of the first data transmission channel is connected to a preset first data storage area within the intermediate device, and the other end of the first data transmission channel is connected to a preset second data storage area within the access device. Both the first and second data storage areas are configured with readable and writable interfaces. In this invention, the first data storage area is partitioned from the entire storage area of the intermediate device using available storage space, and the second data storage area is partitioned from the entire storage area of the access device using available storage space. The readable and writable interfaces of the first and second data storage areas mean that the Type-C interface can retrieve data from and write data to both the first and second data storage areas. The intermediate device's system can write and read data from the first data storage area, and the access device's system can write and read data from the second data storage area.
[0070] Actively collect device information connected to other interfaces; In this invention, the device information connected to other interfaces can be obtained directly from the intermediate device (other devices need to register in the intermediate device after connecting to it), or it can be obtained by sending requests to each connected device through other interfaces. Generally speaking, the other interfaces are not Type-C interfaces, which makes it easier for the management device to access.
[0071] The device information is written into the first data storage area. In this invention, the collected device information is temporarily stored in the first data storage area before transmission.
[0072] In an optional embodiment of the first aspect of the present invention, sending the device information to the access device via the Type-C interface to generate a list of connected devices in the display interface of the access device includes:
[0073] The device information is obtained by reading it from the first data storage area through the Type-C interface. In this invention, before the Type-C interface reads the device information from the first data storage area, it is necessary to verify whether the data reading function of the Type-C interface has the permission to read data from the first data storage area. If the Type-C interface has the permission, it can read data from the first data storage area.
[0074] The device information is encapsulated according to the USB transmission protocol to obtain a transmission data packet. In this invention, the data is encapsulated according to the USB transmission protocol before being transmitted through the Type-C interface, so that the data transmission between the access device and the intermediate device can better utilize the data transmission characteristics of the Type-C interface.
[0075] The data packet is transmitted to the second data storage area through the first data transmission channel. In this invention, data obtained from the first data storage area is only transmitted to the second data storage area through the Type-C interface. The binding of the first data storage area and the second data storage area can improve the accuracy of data transmission.
[0076] The device information is obtained by parsing the transmitted data packet in the second data storage area. In this invention, to facilitate the access device in generating a list of connected devices on its display interface based on the device information, the transmitted data packet in the second data storage area is immediately parsed into the device information.
[0077] In an optional embodiment of the first aspect of the present invention, after determining whether the device is a management device based on the MAC address, the method further includes:
[0078] If the access device is not a management device, the Type-C interface is configured for unidirectional data transmission. In this invention, if the access device is not a management device, it can only obtain information from the intermediate device and cannot send information to the intermediate device, meaning it cannot control the various devices connected to the intermediate device.
[0079] In an optional embodiment of the first aspect of the present invention, configuring the Type-C interface to a one-way data transmission mode if the access device is not a management device includes:
[0080] A second data transmission channel is established between the intermediate device and the access device based on the Type-C interface; in this invention, the second data transmission channel differs from the first data transmission channel in that the link parameters used in the channel creation function are different.
[0081] One end of the second data transmission channel is connected to a preset third data storage area within the intermediate device, and the other end of the second data transmission channel is connected to a preset fourth data storage area within the access device. The third data storage area is configured to have a readable but not writable interface, and the fourth data storage area is configured to have a writable but not readable interface. In this invention, "readable but not writable" means that the Type-C interface can retrieve data from the third data storage area but cannot write data to it. "Writable but not readable" means that the Type-C interface can write data to the fourth data storage area but cannot read data from it (i.e., the Type-C interface cannot send data from the access device to the intermediate device). The systems of the intermediate device and the access device remain the same as before; that is, the intermediate device's system can write and read data from the third data storage area, and the access device's system can write and read data from the fourth data storage area.
[0082] In an optional embodiment of the first aspect of the present invention, the step of sending the device information to the access device via the Type-C interface to generate a list of connected devices in the display interface of the access device further includes:
[0083] The access device receives parameter modification instructions sent by the access device through the Type-C interface. In this invention, the basic function of the access device is to obtain device information of each connected device on the intermediate device from the intermediate device through the Type-C interface. It only uses data transmission from the intermediate device to the access device. Another purpose of configuring the Type-C interface for bidirectional data transmission is to realize the control of each connected device on the intermediate device from the access device. Of course, before sending the parameter modification instructions, they also need to be written into the second data storage area, encapsulated into a data transmission packet, and then sent to the first data storage area.
[0084] The connection device whose parameters need to be modified and the parameters to be modified are obtained from the parameter modification instruction. In this invention, the parameter modification instruction of the access device can be a parameter configuration implemented for one of the connection devices on the intermediate device, or it can be a configuration for all connection devices.
[0085] The parameters are applied to the connection device. In this invention, applying the parameters to the connection device means updating the parameter configuration table of the connection device with the parameters.
[0086] In summary, the management terminal of this invention mainly includes two functions: parameter reading and parameter setting. Parameter setting: After the user sets parameters in the management terminal (host computer) software, data is transmitted via the USB protocol through the management terminal's Type-C interface. The MCU chip (i.e., the HID-to-serial chip) receives the USB protocol content, parses it into serial data, and sends the parsed data to the video processing chip via the serial port. The video processing chip receives the command and performs corresponding settings, such as: HPD high / low settings, default EDID settings, resolution settings, HDCP version switching, audio sampling rate settings, etc. Parameter reading: After the host computer sends a read command, the video processing chip receives the command, packages the data, and the MCU chip receives the serial data and, according to the HID class device specification, packages the data and uploads it to the host computer via the Type-C interface. The host computer software receives the data and updates it.
[0087] See Figure 3 A second aspect of the present invention provides an equipment management system, the equipment management system comprising:
[0088] The monitoring module 10 is used to monitor whether a device is connected to the Type-C interface;
[0089] The VID / PID / Device Description Information Acquisition Module 20 is used to acquire the device VID, device PID and device description information of the accessed device when a device is detected to be connected to the Type-C interface.
[0090] The judgment module 30 is used to determine whether the access device is a management terminal device based on the device VID, the device PID and the device description information;
[0091] The transmission mode configuration module 40 is used to configure the Type-C interface to bidirectional data transmission mode if the access device is a management device, and to actively collect device information connected to other interfaces;
[0092] The data transmission module 50 is used to send the device information to the access device through the Type-C interface, so as to generate a list of connected devices in the display interface of the access device.
[0093] In another optional embodiment of the second aspect of the present invention, the determining module 30 includes:
[0094] The device registration information table acquisition unit is used to acquire a preset device registration information table;
[0095] The judgment unit is used to determine whether the combination of the device VID, the device PID and the device description information exists in the registered device information table;
[0096] The determination unit is configured to determine that the access device is a management device if the combination of the device VID, the device PID, and the device description information exists in the registered device information table; and to determine that the access device is not a management device if the combination of the device VID, the device PID, and the device description information does not exist in the registered device information table.
[0097] In another optional embodiment of the second aspect of the present invention, the determining module 30 may also include:
[0098] A byte reading unit is used to read the first byte of the MAC address;
[0099] A byte determination unit is used to determine whether the first byte is zero;
[0100] The device determination unit is used to determine that the access device is a management device if the first byte is zero.
[0101] In an optional embodiment of the second aspect of the present invention, the transmission mode configuration module 40 includes:
[0102] The first transmission channel establishment unit is used to establish a first data transmission channel between the intermediate device and the access device based on the Type-C interface;
[0103] A bidirectional transmission storage area configuration unit is used to link one end of the first data transmission channel to a preset first data storage area in the intermediate device, and the other end of the first data transmission channel to a preset second data storage area in the access device, and configure the attributes of both the first data storage area and the second data storage area to be readable and writable.
[0104] The device information collection unit is used to actively collect device information connected to other interfaces;
[0105] The device information writing unit is used to write the device information into the first data storage area.
[0106] In an optional embodiment of the second aspect of the present invention, the data transmission module 50 includes:
[0107] The device information reading unit is used to read the device information from the first data storage area through the Type-C interface;
[0108] The encapsulation unit is used to encapsulate the device information according to the USB transmission protocol to obtain a transmission data packet;
[0109] The transmission unit is used to transmit the data packet to the second data storage area through the first data transmission channel;
[0110] The parsing unit is used to parse the transmission data packet in the second data storage area to obtain the device information.
[0111] In an optional embodiment of the second aspect of the present invention, the determination module 30 is further configured to configure the Type-C interface as a one-way data transmission mode if the access device is not a management device.
[0112] In an optional embodiment of the second aspect of the present invention, the determining module 30 further includes:
[0113] The second transmission channel establishment unit is used to establish a second data transmission channel between the intermediate device and the access device based on the Type-C interface;
[0114] A unidirectional transmission storage area configuration unit is used to link one end of the second data transmission channel to a preset third data storage area in the intermediate device, and to link the other end of the second data transmission channel to a preset fourth data storage area in the access device. The third data storage area is configured to have an interface that is readable but not writable, and the second data storage area is configured to have an interface that is writable but not readable.
[0115] In an optional embodiment of the second aspect of the present invention, the device management system further includes:
[0116] The instruction receiving module is used to receive parameter modification instructions sent by the access device through the Type-C interface;
[0117] The instruction parsing module is used to parse the parameter modification instruction to obtain the connection device whose parameters need to be modified and the parameters that need to be modified.
[0118] The parameter application module is used to apply the parameters to the connected device.
[0119] Figure 4This is a schematic diagram of a device management intermediate device provided in an embodiment of the present invention. The device management intermediate device can vary significantly due to differences in configuration or performance, and may include one or more video capture cards 110 (central processing units, CPUs) (e.g., one or more processors) and a memory 120, and one or more storage media 130 (e.g., one or more mass storage devices) for storing applications or data. The memory and storage media can be temporary or persistent storage. The program stored in the storage media may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the device management intermediate device. Furthermore, the processor may be configured to communicate with the storage media and execute the series of instruction operations stored in the storage media on the device management intermediate device.
[0120] The device management intermediate device of the present invention may further include one or more power supplies 140, one or more wired or wireless network interfaces 150, one or more input / output interfaces 160, and / or one or more operating systems, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will understand that... Figure 4 The illustrated device management intermediate device structure does not constitute a specific limitation on the device management intermediate device of the present invention. It may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.
[0121] The present invention also provides a computer-readable storage medium, which can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium, wherein the computer-readable storage medium stores instructions that, when the instructions are executed on a computer, cause the computer to perform the steps of the device management method based on the Type-C interface.
[0122] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system or system / unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0123] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a video speed control device, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0124] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A device management method based on a Type-C interface, used for intermediate devices, characterized in that, include: Monitor whether a device is connected to the Type-C interface; When a device is detected to be connected to the Type-C interface, the device VID, device PID, and device description information of the connected device are obtained. Based on the device VID, the device PID, and the device description information, determine whether the access device is a management device; If the access device is a management device, then the Type-C interface is configured to bidirectional data transmission mode, and information about devices connected to other interfaces is actively collected; The device information is sent to the access device via the Type-C interface to generate a list of connected devices in the display interface of the access device; The step of determining whether the access device is a management device based on the device VID, the device PID, and the device description information further includes: If the access device is not a management device, then the Type-C interface is configured to a one-way data transmission mode; The step of sending the device information to the access device via the Type-C interface to generate a list of connected devices in the display interface of the access device further includes: Receive parameter modification instructions sent by the access device through the Type-C interface; The connection device whose parameters need to be modified and the parameters that need to be modified are obtained from the parameter modification instruction; Apply the parameters to the connected device.
2. The device management method based on the Type-C interface according to claim 1, characterized in that, The step of determining whether the access device is a management device based on the device VID, the device PID, and the device description information includes: Obtain the pre-set registration device information table; Determine whether the combination of the device VID, the device PID, and the device description information exists in the registered device information table; If the combination of the device VID, the device PID, and the device description information exists in the registered device information table, then the access device is determined to be a management device. If the combination of the device VID, the device PID, and the device description information does not exist in the registered device information table, then the access device is determined not to be a management device.
3. The device management method based on the Type-C interface according to claim 1, characterized in that, If the access device is a management device, then the Type-C interface will be configured in bidirectional data transmission mode, and information about devices connected to other interfaces will be actively collected, including: A first data transmission channel is established between the intermediate device and the access device based on the Type-C interface; One end of the first data transmission channel is connected to a preset first data storage area in the intermediate device, and the other end of the first data transmission channel is connected to a preset second data storage area in the access device. The attributes of both the first data storage area and the second data storage area are configured to be readable and writable. Actively collect information about devices connected to other interfaces; The device information is written into the first data storage area.
4. The device management method based on the Type-C interface according to claim 3, characterized in that, The step of sending the device information to the access device via the Type-C interface to generate a list of connected devices in the display interface of the access device includes: The device information is read from the first data storage area through the Type-C interface; The device information is encapsulated according to the USB transmission protocol to obtain a transmission data packet; The data packet is transmitted to the second data storage area through the first data transmission channel; The device information is obtained by parsing the transmitted data packet in the second data storage area.
5. The device management method based on the Type-C interface according to claim 1, characterized in that, If the access device is not a management device, configuring the Type-C interface to a one-way data transmission mode includes: A second data transmission channel is established between the intermediate device and the access device based on the Type-C interface; One end of the second data transmission channel is connected to a preset third data storage area within the intermediate device, and the other end of the second data transmission channel is connected to a preset fourth data storage area within the access device. The attributes of the third data storage area are configured such that the interface is readable but not writable, and the attributes of the fourth data storage area are configured such that the interface is writable but not readable.
6. An equipment management system, characterized in that, The equipment management system includes: The monitoring module is used to monitor whether a device is connected to the Type-C interface; The PID / VID / device description information acquisition module is used to acquire the device VID, device PID and device description information of the accessed device when a device is detected to be connected to the Type-C interface. The determination module is used to determine whether the access device is a management device based on the device VID, the device PID and the device description information; The transmission mode configuration module is used to configure the Type-C interface to bidirectional data transmission mode if the access device is a management device, and to actively collect device information connected to other interfaces; The data transmission module is used to send the device information to the access device through the Type-C interface, so as to generate a list of connected devices in the display interface of the access device; The step of determining whether the access device is a management device based on the device VID, the device PID, and the device description information further includes: If the access device is not a management device, then the Type-C interface is configured to a one-way data transmission mode; The step of sending the device information to the access device via the Type-C interface to generate a list of connected devices in the display interface of the access device further includes: Receive parameter modification instructions sent by the access device through the Type-C interface; The connection device whose parameters need to be modified and the parameters that need to be modified are obtained from the parameter modification instruction; Apply the parameters to the connected device.
7. An intermediate device for equipment management, characterized in that, The device management intermediate device includes: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor invokes the instructions in the memory to cause the device management intermediate device to perform the device management method based on the Type-C interface as described in any one of claims 1-5.
8. A computer-readable storage medium storing a computer program thereon, characterized in that, When the computer program is executed by the processor, it implements the device management method based on the Type-C interface as described in any one of claims 1-5.
Citation Information
Patent Citations
Management method and system for mobile storage device
CN111639326A
