Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rico SP C250DN Toner Reset on Raspberry Pi
Below are single-line commands to run in BASH on a Raspberry Pi to rewrite the toner chips to "full" for a Ricoh SP C250DN Printer.
You will need to have the 4 files below in the same directory: "black" "cyan" "magenta" and "yellow".
The chip is near one edge of the cartridge. The pad closest to the edge is GND, followed by VCC, DATA, and Clock.
On the Pi, connect VCC and GND to +3.3V and GND. Connect Data to (physical numbering) 3 and 5. They are the I2C Data and Clock pins.
Be sure i2c is enabled and installed.
modprobe -r i2c_bcm2708 ;modprobe i2c_bcm2708 baudrate=9600
address=0; for i in $(cat yellow); do i2cset -y 1 0x50 $address $i; address=$(($address +1)); done
address=0; for i in $(cat magenta); do i2cset -y 1 0x51 $address $i; address=$(($address +1)); done
address=0; for i in $(cat cyan); do i2cset -y 1 0x52 $address $i; address=$(($address +1)); done
address=0; for i in $(cat black); do i2cset -y 1 0x53 $address $i; address=$(($address +1)); done
The majority of the data and information I needed to do this came from this site:
https://esdblog.org/ricoh-sp-c250dn-laser-printer-toner-hack/
168
0
1
3
18
1
1
255
100
0
52
48
55
53
52
51
20
9
65
66
22
0
22
38
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
100
0
0
0
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
0
0
0
0
0
0
0
0
168
0
1
3
14
2
1
255
100
0
52
48
55
53
52
52
21
1
65
66
23
0
4
85
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
100
0
0
0
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
0
0
0
0
0
0
0
0
168
0
1
3
14
3
1
255
100
0
52
48
55
53
52
53
21
1
65
66
24
0
3
114
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
100
0
0
0
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
0
0
0
0
0
0
0
0
168
0
1
3
14
4
1
255
100
0
52
48
55
53
52
54
21
1
65
66
25
0
23
39
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
100
0
0
0
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
255
0
0
0
0
0
0
0
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment