Jupyter lab login and case code running

1.Jupyter lab login

1.1 LAN connection

Note: Using the factory image provided by Yahboom, SSH, VNC, jupyter lab and other related environments are configured, and the boot is self-starting. Please do not reconfigure it yourself, otherwise exceptions will occur, and you will need to follow the tutorial to re-burn the factory image.

Connect your Windows computer to the car to send out a hotspot, taking the Raspberry Pi 4WD car as an example. The computer finds the wifi name of the car Yahboom_car (the hotspot name and password issued by other models of products can be viewed according to the manual), enter the password: 12345678 to connect, the default IP address of the car is 192.168 .50.1 . (The IP address of other models of products is not necessarily this. You can check it according to the manual, or through the oled display connected to the product. The default IP addresses of other products are 192.168.1.11 and 192.168.8.88).

If the computers are on the same network and have been verified to be able to log in via VNC or SSH, you can generally log in to jupyter lab directly and skip the mutual IP ping verification process.

 

1.2 Check network connectivity

Enter cmd in the computer search window to open the command running window, and ping the IP address of the car in the terminal (for example: ping 192.168.50.1) to check whether the network is open. If a reply appears, it means that the network is smooth. If the target host cannot be accessed, it means that the network is not smooth. You need to check whether the firewall is turned on on the computer and turn off anti-virus software such as Tinder.

 

 

 

Note: If the motherboard system is connected to its own router network, or is not a spontaneous hotspot product (a network connected through a distribution network or network cable). Both the car system terminal and the windows computer terminal need to ping each other's IP. If one party cannot ping successfully (windows computers check the IP address through the command ipconfig, and the motherboard system checks the IP address through the command ifconfig). It means there is a problem with the network. Please change to another LAN to connect. Please do not connect to the campus network. The campus network is blocked and remote login such as VNC and SSH is not possible.

 

 

1.3 Jupyter lab login

Open Google Chrome on your computer and enter the IP address of the car to log in. For example, the IP address of the spontaneous hotspot of the Raspberry Pi 4wd car is 192.168.50.1. Enter 192.168.50.1:8888 in the browser. Press the Enter button to log in. In the pop-up interface, enter the system password: yahboom. Please note that it is case-sensitive. After remembering the password, you do not need to enter the password again when you log in next time.

2. Run the case code

Taking the Raspberry Pi 4WD car as an example, the following interface will appear after successfully logging into jupyter lab.

 

 

Open the terminal and close the process used for the mobile app to start the connection class. Failure to close it will occupy peripheral resources and cause the case code to run abnormally. The operation methods of other types of products are different. For details, you can check the closing and opening chapters of the APP's self-starting factory program. If you close the large program permanently, you don't need to repeat this operation every time you turn on the computer.

 

 

This time, we take the case of driving the camera on the Raspberry Pi 4wd car as an example. Find the driver code in the corresponding path of the driver camera and open it. Click single-step execution to run the code section by section, and wait until the code is executed. You can open the camera screen.

 

You can also click the Run All button yourself, and the code will run quickly.

 

 

Each time you finish running a case, you need to close the running process, otherwise an exception will occur when running the next case.

 

For other functions in jupyter lab, you can view tutorials in other chapters, or refer to the official website tutorial.

https://jupyterlab.readthedocs.io/en/stable/user/interface.html