I am working on a data logging project based on the raspberry pi zero. NOT a pi zero w, just the pi zero. Adding software packages to the pi zero is a little more difficult, because it has no wifi or ethernet connection. I have been taking the sd card out ant putting it in a pi 3b+ to get packages that I need then putting it back in the pi zero. I have tried and failed to use minicom and zmodem to transfer deb files over UART.
I found this great tutorial that explains how to ssh into a pi via the usb port on the pi. I did everything it said and was still not able to connect to the pi. I did an ifconfig on the pi, and saw that it had a APIPA on it’s usb network interface like so:
I had a usb network interface appear on my laptop, but no ipv4 address:
I finally got it to work by issuing an ifconfig command to my laptop’s usb interface and assigning an IP address in the same class B subnet :
Another benefit to a standard pi zero having ip connectivity via usb is that you can use piscope for troubleshooting. Here is piscope examining i2c frames polling an HTU21D relative humidity sensor: