Loading... # Using Mac to connect Raspberry Pi 4 --- ## 1. Edit the config * using the usb to write the TF card * open `/boot/wpa_supplicant.conf` * insert the data ```json country=CN update_config=1 ctrl_interface=/var/run/wpa_supplicant network={ ssid="<wifi 名称>" psk="<wifi 密码>" } ``` * click [here](https://steveedson.co.uk/tools/wpa/) to format the data. ## 2. TTL to connect ### Edit the config ```config # edit TF card `/boot/config.txt` # add the content enable_uart=1 ``` ### Install the device drive in mac 1. [ch340g Drive](https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver) 2. [PL2303 Drive ](http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=229&pcid=41) ### Check for success ```shell > ls /dev | grep tty.usb # if appear tty.usbserial , it was scucuessful ``` ### Connection ```config GND->Groud RXD->GPIO 14(TXD) TXD->GPIO 15(RXD) ```  > if you have power supply, please remove the 5v red line ### Install Screen to ssh ```shell > brew install screen > screen /dev/tty.usbserial 115200 ``` ### Uninstall the drive ```shell > rm -rf /System/Library/Extensions/XXXX.kext > rm -rf /System/Library/Extensions.kextcache > rm -rf /System/Library/Extensions.mkext > kextcache -k /System/Library/Extensions ``` Last modification:September 3, 2022 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 If you think my article is useful to you, please feel free to appreciate