When I ran this command I get a couple of messages:
sudo python3 setup.py install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:146: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
admin@joshysdog:~/pidog $ uname -r
6.12.34+rpt-rpi-v8
@SunFounder_Moderator
(my_venv) admin@joshysdog:~/pidog/gpt_examples $ rpicam-hello
[0:42:29.264789122] [3519] INFO Camera camera_manager.cpp:326 libcamera v0.5.1+100-e53bdf1f
[0:42:29.315495228] [3523] WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:42:29.323040266] [3523] INFO RPI vc4.cpp:440 Registered camera /base/soc/i2c0mux/i2c@1/ov5647@36 to Unicam device /dev/media2 and ISP device /dev/media0
[0:42:29.323324120] [3523] INFO RPI pipeline_base.cpp:1107 Using configuration file ‘/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml’
Made X/EGL preview window
Made DRM preview window
Preview window unavailable
Mode selection for 1296:972:12:P
SGBRG10_CSI2P,640x480/0 - Score: 3296
SGBRG10_CSI2P,1296x972/0 - Score: 1000
SGBRG10_CSI2P,1920x1080/0 - Score: 1349.67
SGBRG10_CSI2P,2592x1944/0 - Score: 1567
Stream configuration adjusted
[0:42:29.847554996] [3519] INFO Camera camera.cpp:1205 configuring streams: (0) 1296x972-YUV420/sYCC (1) 1296x972-SGBRG10_CSI2P/RAW
[0:42:29.848827754] [3523] INFO RPI vc4.cpp:615 Sensor: /base/soc/i2c0mux/i2c@1/ov5647@36 - Selected sensor format: 1296x972-SGBRG10_1X10 - Selected unicam format: 1296x972-pGAA
#10 (0.00 fps) exp 33239.00 ag 7.94 dg 1.01
#11 (30.01 fps) exp 33239.00 ag 7.94 dg 1.01
……….. all the way to #146
@Spf650
admin@joshysdog:~/pidog $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
When I run sudo bash i2samp.sh there are a couple of interesting findings, first, the USB mic is plugged in, but it shows: “is_with_mic: false”
Another interesting finding is that during the speaker testing, I only hear “Front Right” there is no audio coming from the Front Left.
I think that the robodov has robohat v4 right? Why is robohatv5 tryung to be installed and checked when I run this, anyway:
check robothat 5 …
find: ‘/proc/device-tree/hat’: No such file or directory
hat_dir:
No robothat 5 found
robothat_spk_en: 20
is_with_mic: false
config soundcard without mic …
After a couple hours of re-installing, I am at the same place I was before:
(my_venv) admin@joshysdog:~/my_venv $ cd ~/pidog/gpt_examples/
sudo ~/my_venv/bin/python3 gpt_dog.py --keyboard
config_file: /home/admin/.config/pidog/pidog.conf
robot_hat init … done
imu_sh3001 init … done
rgb_strip init … done
dual_touch init … done
sound_direction init … done
sound_effect init … pinctrl set 20 op dh
done
ultrasonic init … done
vilib 0.3.18 launching …
picamera2 0.3.30
ALSA lib pcm.c:8570:(snd_pcm_recover) underrun occurred
Web display on:
http://192.168.2.248:9000/mjpg
Starting web streaming …
- Serving Flask app ‘vilib.vilib’
- Debug mode: off
ERROR: [Errno 5] Input/output error
camera close
Stopping and returning to the initial position …
Close error: [Errno 5] Input/output error
The camera does work when I open the url, so I am at a loss.
Is there a way to enable debug mode? “Debug mode: off”