This tutorial explains how to connect to the ZeroBETH system via SSH and modify the main program. It is intended for advanced users who wish to expand features, debug, or customize the system.
ZeroBETH's default username for SSH and Samba is zerobeth, and the password is an 8-digit code generated during initialization. Each device has a unique password. You can obtain it in the following ways:
- Boot screen (bottom-right corner): The password is shown in the bottom-right corner during the version display at boot.
- Engineering Mode: Enter engineering mode and go to page 9-8 to view the password.
- Via SD card: If the LCD is not working, insert the SD card into a computer and find the
smb_ssh_pwd.txtfile in the root directory.
To configure Wi-Fi in the ZeroBETH menu:
- Go to menu 2-2 to connect to a Wi-Fi network.
- Once connected, go to menu 3-1 to view the device's current IP address.
Note: If the CPU temperature exceeds 60°C, the system will automatically disable the Wi-Fi module. Please reconnect.
-
Use an SSH client (e.g., PuTTY) to connect to the ZeroBETH IP address.
Username:zerobeth
Password: 8-digit code shown on the device -
Check the PID of
main.py:ps aux | grep main.py -
Kill all related
main.pyprocesses (replace the numbers below with actual PIDs):sudo kill 111 222 333 444
You can now start editing the main program. Here's an example using nano:
nano /home/zerobeth/main/main.pyAfter editing, run the following command to restart the program:
/home/zerobeth/script/boot_run.shIf there are no issues in the code, ZeroBETH will start running normally.
If you prefer to develop on Windows, you can use Samba to mount the ZeroBETH development folder as a network drive, then use an editor such as Notepad++.
Steps:
-
Open “This PC” or File Explorer.
-
Click “Map network drive”.
-
In the “Folder” field, enter:
\\YOUR_ZEROBETH_IP\zerobeth-dev -
When prompted, enter:
Username:zerobeth
Password: 8-digit code shown on the device -
A new network drive will appear, which you can use to edit the main program files.
If you have any questions, please post them in the PicoBETH Discussion Forum.