This method should work with all printers of the ULD driver family:
Under last linux versions, the ippusbxd software blocks the device from working, remove it:
$ sudo apt remove ippusbxd
First, download the drivers from the HP website:
$ wget https://ftp.hp.com/pub/softlib/software13/printers/MFP170/ULDLINUX_V1.00.39_00.12.zip
or the page if url changed: https://support.hp.com/us-en/drivers/selfservice/hp-laser-mfp-130-printer-series/24494378
if you don't see the driver, try changing the os to linux ubuntu.
The decompact it, and run
./install.sh in the uld folder. After the license agreement it asks you for a confirmation, whatever is written, type "
y" and enter, localized replies won't work.
Try running manually
While trying to port some C code to micropython, I needed to set a lot of defines in a code as Python global vars.
Given those defines :
#define CMD_SIZE 512
#define FRAME_B 0xA5
#define FRAME_E0 0xCC
#define FRAME_E1 0x33
#define FRAME_E2 0xC3
#define FRAME_E3 0x3C
#define WHITE 0x03
#define GRAY 0x02
#define DARK_GRAY 0x01
#define BLACK 0x00
#define CMD_HANDSHAKE 0x00 //handshake
#define CMD_SET_BAUD 0x01 //set baud
The Xiaomi smart home solution is a low-cost zigbee ecosystem of devices that can stay on for a very long time with deep sleep on little batteries.
Best part about it is the price, less than 40 euros for the gateway (hub), and less than 20 for the individual sensors (you can maybe even find better prices online, just avoid gearbest!).
Available sensors :
This is my naïve test according to some specs found on the web.
import socket import binascii UDP_IP = "192.168.0.107" UDP_PORT_FROM = 54322 UDP_PORT = 54321 MESSAGE = binascii.unhexlify('21310020ffffffffffffffffffffffffffffffffffffffffffffffffffffffff') print ("UDP target IP:", UDP_IP) print ("UDP target port:", UDP_PORT) print ("mess