CN-116027993-B - Device identification processing method, device, storage medium and computer device
Abstract
The embodiment of the invention provides a device identification processing method, a device, a storage medium and computer equipment. The method is used for preventing equipment identification abnormality caused by the fact that a first configuration program modifies interface configuration, the first configuration program is used for modifying the interface configuration of equipment into the interface configuration corresponding to a preset protocol when the equipment conforming to the preset protocol is accessed, the first configuration program can be called up by a first rule file when the equipment is accessed and can be withdrawn when the equipment is removed. So that the access device is normally recognized as a USB device by the printing system.
Inventors
- CHEN LILONG
Assignees
- 珠海奔图电子有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20221228
Claims (9)
- 1. A device identification processing method is used for preventing device identification abnormality caused by interface configuration modification of a first configuration program, and multiplexing the same interface with an IPP-over-USB protocol, when a computer device executes Ippusbxd programs or the IPP-USB programs, the setting protocol of the interface is replaced by the Bidirectionprotocol to the IPP-over-USB protocol, the Bidirectionprotocol cannot be started, the computer device cannot identify an image forming device, the first configuration program is used for modifying the interface configuration of the device into the interface configuration corresponding to a preset protocol when the device conforming to the preset protocol is accessed, the first configuration program can be called up by a first rule file when the device is accessed and can be withdrawn when the device is removed, and the method is characterized by comprising the following steps of: In response to the first instruction, creating a second rule file, the second rule file being readable by a system service program in place of the first rule file; After the system service program reads the second rule file, the execution of the first configuration program can be skipped when the equipment meeting the preset characteristic information is accessed, so that the interface configuration is not modified by the first configuration program; The second rule file comprises a filtering rule, a first filtering tag and a rule of a first configuration program, wherein the directory of the second rule file is a second file directory, the directory of the first rule file is a first file directory, the reading priority of the second file directory is higher than that of the first file directory, and the computer equipment executes the second rule file and does not execute the first rule file, so that the second rule file replaces the first rule file and is read; after the second rule file is read by the system service program, the first configuration program can be normally executed when equipment which does not accord with preset characteristic information is accessed.
- 2. The device identification processing method according to claim 1, characterized by further comprising: and deleting the second rule file in response to a second instruction, so that the system service program is executed in a mode when the second rule file is not created.
- 3. The apparatus identification processing method according to claim 1, wherein, The preset characteristic information at least comprises one of a manufacturer identity number ID, a device ID and a serial number.
- 4. A device identification processing method is used for preventing device identification abnormality caused by interface configuration modification by a second configuration program, wherein the second configuration program is used for modifying the interface configuration of a device into the interface configuration corresponding to a preset protocol when the device conforming to the preset protocol is accessed, the second configuration program can be called up by a third rule file when the first device conforming to the matching condition of the third rule file is accessed and can be withdrawn when all the devices are removed when the computer device executes Ippusbxd programs or IPP-USB programs, and the device identification processing method is characterized in that the method comprises the following steps: in response to the third instruction, creating a fourth rule file, the fourth rule file being readable by the system service program in place of the third rule file; After the system service program reads the fourth rule file, the system service program can execute an alternative configuration program without executing the second configuration program when the equipment which does not accord with the preset characteristic is accessed, and can skip the execution of the second configuration program and the alternative configuration program when the equipment which accords with the preset characteristic information is accessed; The third rule file comprises a calling instruction of the IPP-USB program, the directory where the third rule file is located is a third file directory, the directory where the fourth rule file is located is a fourth file directory, the reading priority of the fourth file directory is higher than the reading priority of the third file directory, and the computer equipment reads the fourth rule file but not the third rule file, so that the fourth rule file replaces the third rule file and is read.
- 5. The device identification processing method according to claim 4, characterized by further comprising: And deleting the fourth rule file in response to a fourth instruction, so that the system service program is executed in a mode when the fourth rule file is not created.
- 6. A device identification processing apparatus is used for preventing device identification abnormality caused by interface configuration modification by a first configuration program, wherein the first configuration program is used for modifying the interface configuration of a device into the interface configuration corresponding to a preset protocol when the device is accessed, the first configuration program can be called up by a first rule file when the device is accessed and can be exited when the device is removed when the device is executed by Ippusbxd programs or IPP-USB programs, and the setting protocol of the interface is replaced by the Bidirectional protocol to the IPP-over-USB protocol, so that the computer device can not be identified to an image forming apparatus, and the apparatus is characterized in that the apparatus comprises: A first creation module for creating a second rule file in response to a first instruction, the second rule file being readable by a system service program in place of the first rule file; After the system service program reads the second rule file, the execution of the first configuration program can be skipped when the equipment meeting the preset characteristic information is accessed, so that the interface configuration is not modified by the first configuration program; The second rule file comprises a filtering rule, a first filtering tag and a rule of a first configuration program, wherein the directory of the second rule file is a second file directory, the directory of the first rule file is a first file directory, the reading priority of the second file directory is higher than that of the first file directory, and the computer equipment executes the second rule file and does not execute the first rule file, so that the second rule file replaces the first rule file and is read; after the second rule file is read by the system service program, the first configuration program can be normally executed when equipment which does not accord with preset characteristic information is accessed.
- 7. A device identification processing device is used for preventing device identification abnormality caused by the fact that a second configuration program modifies interface configuration, and a Bidirectionprotocol multiplexes the same interface with an IPP-over-USB protocol, when a computer device executes Ippusbxd programs or the IPP-USB programs, the setting protocol of the interface is replaced by the Bidirectionprotocol to the IPP-over-USB protocol, the Bidirectionprotocol cannot be started, so that the computer device cannot identify an image forming device, wherein the second configuration program is used for modifying the interface configuration of the device into the interface configuration corresponding to a preset protocol when the device conforming to the preset protocol is accessed, the second configuration program can be called up by a third rule file when the first device conforming to the matching condition of the third rule file is accessed, and can be withdrawn when all the devices are removed, and the device is characterized by comprising: a second creation module for creating a fourth rule file in response to a third instruction, the fourth rule file being readable in place of the third rule file; After the system service program reads the fourth rule file, the system service program can execute an alternative configuration program without executing the second configuration program when the equipment which does not accord with the preset characteristic is accessed, and can skip the execution of the second configuration program and the alternative configuration program when the equipment which accords with the preset characteristic information is accessed; The third rule file comprises a calling instruction of the IPP-USB program, the directory where the third rule file is located is a third file directory, the directory where the fourth rule file is located is a fourth file directory, the reading priority of the fourth file directory is higher than the reading priority of the third file directory, and the computer equipment reads the fourth rule file but not the third rule file, so that the fourth rule file replaces the third rule file and is read.
- 8. A storage medium comprising a stored program, wherein the program, when executed, controls a device in which the storage medium is located to execute the device identification processing method according to any one of claims 1 to 3, or to execute the device identification processing method according to claim 4 or 5.
- 9. A computer device comprising a memory for storing information including program instructions and a processor for controlling execution of the program instructions, characterized in that the program instructions, when loaded and executed by the processor, implement the device identification processing method of any one of claims 1 to 3, or perform the device identification processing method of claim 4 or 5.
Description
Device identification processing method, device, storage medium and computer device [ Field of technology ] The embodiment of the invention relates to the technical field of equipment identification, in particular to an equipment identification processing method, an equipment identification processing device, a storage medium and computer equipment. [ Background Art ] The internet print Protocol (INTERNET PRINTING Protocol, IPP) is a standard network Protocol for printing on the internet, which allows users to perform remote printing jobs and manage printing jobs via the internet, etc. The user can control various parameters such as the kind of paper used for printing, resolution, and the like through the relevant interface. The IPP-over-USB protocol allows universal serial bus (Universal Serial Bus, USB) devices to be considered network devices, extending devices to which internet printing protocols are applicable to image forming apparatuses including USB connections. A bi-directional (bi-directional) protocol is used for searching, using a USB printer. Currently, there are image forming apparatuses that use a bidirect protocol as a default setting protocol of an interface, and use an IPP-over-USB protocol as an alternative setting protocol of the interface, where the two protocols multiplex the same interface. However, since a part of the existing operating systems are preloaded with the configuration program, after the program identifies the interface corresponding to the IPP-over-USB protocol, the program can start the alternative configuration protocol of the interface, and modify the interface configuration of the device to the interface configuration corresponding to the protocol, so that the default configuration protocol of the interface cannot be used, and the computer device cannot identify the image forming apparatus. [ Invention ] In view of the above, the embodiments of the present invention provide a device identification processing method, apparatus, storage medium, and computer device, so as to solve the problem that in the prior art, the computer device cannot identify an image forming apparatus. In a first aspect, an embodiment of the present invention provides a device identification processing method, configured to prevent a device identification abnormality caused by modifying an interface configuration by a first configuration program, where the first configuration program is configured to modify, when a device conforming to a preset protocol is accessed, the interface configuration of the device to an interface configuration corresponding to the preset protocol, where the first configuration program can be called up by a first rule file when the device is accessed and exits when the device is removed, and the method includes: In response to the first instruction, creating a second rule file, the second rule file being readable by a system service program in place of the first rule file; after the second rule file is read by the system service program, the execution of the first identification program can be skipped when the equipment meeting the preset characteristic information is accessed, so that the interface configuration is not modified by the first identification program. In one possible implementation, the method further includes: and deleting the second rule file in response to a second instruction, so that the system service program is executed in a mode when the second rule file is not created. In one possible implementation, the first instruction is configured to create the second rule file in a file directory having a higher reading priority than the first rule file, so that the second rule file can be read in place of the first rule file. In one possible implementation manner, after the second rule file is read by the system service program, the first configuration program can be normally executed when a device which does not conform to the preset feature information is accessed. In one possible implementation manner, the preset feature information includes at least one of a manufacturer identification number ID, a device ID, and a serial number. In a second aspect, an embodiment of the present invention provides a device identification processing method for preventing device identification abnormality caused by modification of interface configuration by a second configuration program, where the second configuration program is configured to modify, when a device conforming to a preset protocol is accessed, the interface configuration of the device to an interface configuration corresponding to the preset protocol, the second configuration program being capable of being called up by a third rule file when a first device conforming to a third rule file matching condition is accessed and being exited when all devices are removed, the method comprising: in response to the third instruction, creating a fourth rule file, the fourth rule file being readable by the system serv