Method and device for detecting a connection of a chip to a printing device
View Patent ↗A field of printing devices, and a method and device for detecting a connection of a chip to a printing device. A controller in the printing device obtains an actual voltage value of a bus of the printing device when it detects that a plurality of chips connected in parallel become interfacing with the bus, and compares the actual voltage value with a voltage threshold. If the actual voltage value is less than or equal to the voltage threshold, it is determined that each chip is connected to the printing device. If the actual voltage value is greater than the voltage threshold, it is determined that each chip is not connected to the printing device.
1 . A method for detecting a connection of a chip to a printer, applied to a controller in the printer, the controller having a voltage threshold pre-stored thereon, wherein the method comprises:
obtaining an actual voltage value of a bus of the printer upon detecting that a plurality of chips connected in parallel become electrically interfacing with the bus, wherein the bus has a communication function and is configured to transfer signals between the plurality of chips and the controller of the printer both for connection detection and for subsequent data interaction, and wherein the actual voltage value is generated by a current loop formed between the plurality of chips and the controller via the bus;
comparing the actual voltage value with the voltage threshold;
determining, based on a result of the comparing and using the actual voltage value of the bus to determine a connection state of all of the plurality of chips without individually detecting each of the plurality of chips, comprising:
determining that each of the plurality of chips is connected to the printer in response to determining that the actual voltage value is less than or equal to the voltage threshold; and
determining that each of the plurality of chips is not connected to the printer in response to determining that the actual voltage value is greater than the voltage threshold;
wherein each of the plurality of chips has a chip model, the controller has a plurality of standard chip models pre-stored thereon, and the method further comprises:
sending a verification instruction to each of the plurality of chips via the bus in response to determining that each of the plurality of chips is connected to the printer, so as to cause each of the plurality of chips to send its chip model to the controller based on the verification instruction;
comparing each chip model with the plurality of standard chip models;
determining, in response to determining that the chip model is identical to any of the plurality of standard chip models, the chip with the chip model as a first chip; and
sending a verification success message to each first chip to allow the chip and the printer to perform data interaction with each other.
2 . The method according to claim 1 , wherein the method further comprises:
determining, in response to determining that the chip model is not identical to each of the plurality of standard chip models, the chip with the chip model as second chip; and
sending a verification failure message to each second chip.
3 . The method according to claim 1 , wherein the controller further has a material name and a material remaining amount threshold corresponding to each first chip pre-stored thereon, each first chip has a material remaining amount stored thereon, and the method further comprises:
sending a material remaining amount acquisition command to each first chip via the bus, so as to cause each first chip to send its material remaining amount stored thereon to the controller; and
generating, in response to determining that the material remaining amount stored on the first chip is less than or equal to its corresponding material remaining amount threshold, an alert message based on the material name corresponding to the first chip to alert a user.
4 . A printer comprising a bus and a controller, wherein the controller is configured to:
obtain an actual voltage value of a bus of the printer upon detecting that a plurality of chips connected in parallel become electrically interfacing with the bus, wherein the bus has a communication function and is configured to transfer signals between the plurality of chips and the controller of the printer both for connection detection and for subsequent data interaction, and wherein the actual voltage value is generated by a current loop formed between the plurality of chips and the controller via the bus;
compare the actual voltage value with the voltage threshold;
determining, based on a result of the comparing and using the actual voltage value of the bus to determine a connection state of all of the plurality of chips without individually detecting each of the plurality of chips, comprising:
determine that each of the plurality of chips is connected to the printer in response to determining that the actual voltage value is less than or equal to the voltage threshold; and
determine that each of the plurality of chips is not connected to the printer in response to determining that the actual voltage value is greater than the voltage threshold;
wherein each of the plurality of chips has a chip model, the controller has a plurality of standard chip models pre-stored thereon, and the controller is further configured to:
send a verification instruction to each of the plurality of chips via the bus in response to determining that each of the plurality of chips is connected to the printer, so as to cause each of the plurality of chips to send its chip model to the controller based on the verification instruction;
compare each chip model with the plurality of standard chip models;
determine, in response to determining that the chip model is identical to any of the plurality of standard chip models, the chip with the chip model as a first chip; and
send a verification success message to each first chip to allow the chip and the printer to perform data interaction with each other.
5 . The printer according to claim 4 , wherein the controller is further configured to:
determine, in response to determining that the chip model is not identical to each of the plurality of standard chip models, the chip with the chip model as second chip; and
send a verification failure message to each second chip.
6 . The printer according to claim 4 , wherein the controller further has a material name and a material remaining amount threshold corresponding to each first chip pre-stored thereon, each first chip has a material remaining amount stored thereon, and the controller is further configured to:
send a material remaining amount acquisition command to each first chip via the bus, so as to cause each first chip to send its material remaining amount stored thereon to the controller; and
generate, in response to determining that the material remaining amount stored on the first chip is less than or equal to its corresponding material remaining amount threshold, an alert message based on the material name corresponding to the first chip to alert a user.
7 . A non-transitory storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, causes the processor to:
obtain an actual voltage value of a bus of a printer upon detecting that a plurality of chips connected in parallel become electrically interfacing with the bus, wherein the controller has a voltage threshold pre-stored thereon, wherein the bus has a communication function and is configured to transfer signals between the plurality of chips and the controller of the printer both for connection detection and for subsequent data interaction, and wherein the actual voltage value is generated by a current loop formed between the plurality of chips and the controller via the bus;
compare the actual voltage value with the voltage threshold;
determining, based on a result of the comparing and using the actual voltage value of the bus to determine a connection state of all of the plurality of chips without individually detecting each of the plurality of chips, comprising:
determine that each of the plurality of chips is connected to the printer in response to determining that the actual voltage value is less than or equal to the voltage threshold; and
determine that each of the plurality of chips is not connected to the printer in response to determining that the actual voltage value is greater than the voltage threshold;
wherein each of the plurality of chips has a chip model, the controller has a plurality of standard chip models pre-stored thereon, and the computer program, when executed by a processor, further causes the processor to:
send a verification instruction to each of the plurality of chips via the bus in response to determining that each of the plurality of chips is connected to the printer, so as to cause each of the plurality of chips to send its chip model to the controller based on the verification instruction;
compare each chip model with the plurality of standard chip models;
determine, in response to determining that the chip model is identical to any of the plurality of standard chip models, the chip with the chip model as a first chip; and
send a verification success message to each first chip to allow the chip and the printer to perform data interaction with each other.
8 . The non-transitory storage medium according to claim 7 , wherein the computer program, when executed by a processor, further causes the processor to:
determine, in response to determining that the chip model is not identical to each of the plurality of standard chip models, the chip with the chip model as second chip; and
send a verification failure message to each second chip.
9 . The non-transitory storage medium according to claim 7 , wherein the controller further has a material name and a material remaining amount threshold corresponding to each first chip pre-stored thereon, each first chip has a material remaining amount stored thereon, and the computer program, when executed by a processor, further causes the processor to:
send a material remaining amount acquisition command to each first chip via the bus, so as to cause each first chip to send its material remaining amount stored thereon to the controller; and
generate, in response to determining that the material remaining amount stored on the first chip is less than or equal to its corresponding material remaining amount threshold, an alert message based on the material name corresponding to the first chip to alert a user.