Receiving UART via Bus Pirate on macOS.
First, disconnect the Bus Pirate if it's connected and list all of your devices.
ls /dev
Save this list somewhere, because now you should connect the Bus Pirate and run the same command again. Compare the two lists to see which device is the Bus Pirate. For me it was /dev/tty.usbserial-AQ016RY5. Ignore the /dev/cu.* device.
Now you can connect to the Bus Pirate. I'm doing it via screen.
screen /dev/tty.usbserial-AQ016RY5 115200
115200 is the baud rate of the Bus Pirate which is hardcoded in its firmare.
You should see a HiZ> prompt on the screen. If you don't, press return.
Now we're gonna be switching to the UART mode. Type “m” and press return. You should see something like this:
HiZ>m 1. HiZ 2. 1-WIRE 3. UART 4. I2C 5. SPI 6. 2WIRE 7. 3WIRE 8. LCD 9. DIO x. exit(without change) (1)>
Enter “3” to select UART mode. Bus Pirate is then going to ask you about some stuff. For each of these select the corresponding option from the list below by entering a number. If the option says “default” just press return without typing anything to select the default option.
- Serial port speed: “115200”,
- Data bits and parity: default,
- Stop bits: default,
- Receive polarity: default,
- Output type: “Normal (H=3.3V, L=GND)”.
If everything is okay you should see “Ready” and the prompt should have changed to UART>.
Now enter “W” to send power from the Bus Pirate.
Enter “(0)” to show available macros. You should see something like this:
UART>(0) 0.Macro menu 1.Transparent bridge 2. Live monitor 3.Bridge with flow control UART>
Enter “(1)” to switch to the Transparent bridge. Confirm by pressing Y.
The prompt should now disappear and you should hopefully see some UART output from the device your Bus Pirate is connected to.
To exit press control+A, then press K, and finally Y to confirm.