
Hardware Hacking Cheatsheet
[[TOC]]
250-350 CVCC and GND well exposed is very usefulGND, IN or RX, OUT or TX and VCC3/4 pins on the PCB
GND
GNDVCC
VCCGND (multimeter to resistance measurement, usually 200k)VCC (multimeter to resistance measurement, usually 200kOhm)GND (multimeter to voltage measurement, usually 20V)TX UART pin voltage against GND (multimeter to voltage measurement, usually 20V); if the voltage is oscillating then this pin is probably TX (because it's sending data)RX UART pin voltage against GND (multimeter to voltage measurement, usually 20V); if the voltage is stuck at 0 then this pin is probably RX (because it's waiting to receive data)Table
| PIN | GND resistance | VCC resistance | V | Notes |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 |
Example
| PIN | GND resistance | VCC resistance | V | Notes |
|---|---|---|---|---|
| 1 | 30kOhm | 0Ohm | 3.3V | VCC |
| 2 | 4.7kOhm | 34kOhm | 3.3V | 1.6-3.3V on boot - TX |
| 3 | INFOhm (multimeter 1) | INFOhm (multimeter 1) | 3.3V | 0V on boot - RX |
| 4 | 0Ohm | 30kOhm | 0V | GND |
115200)H is the print help function, use it everywhereGND to Jtagulator GND, board pins 1,2,3 to Jtagulator channels 1,2,3V: set working voltageU: enter UART identification menuU: start identificationText string to output: defaultStarting channel: channel where we put the pin 1 of the boardEnding channel: channel where we put the pin 3 of the boardIgnore non-printable characters: Yes3.3V or 5V), else the board or the serial adapter will be damagedRX to adapter TX and board TX with adapter RX
VCC pin is not neededsudo lsusb to locate the adapterls -lart /dev to locate all device files; our should be one of the last, usually ttyUSB0dialout group (or be root), to check our groups groups $USERscreen /dev/ttyUSB0 $BAUDRATE to attach to the TTY
$BAUDRATE can be one of the ones found here$BAUDRATE
1152009600576003840019200$BAUDRATE we could see gibberish or also NOTHINGctrl + a -> k -> y: close screen\r\n or \n?
pyserial, python's library for serial communication, example:
#!/usr/bin/env python3
import serial