-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JETSON ORIN NANO JETPACK5.1.2 When I use python3 manage.py drive is error OSError: [Errno 16] Device or resource busy #1151
Comments
There are two cameras present on your orin. typically /dev/video0 is the CSI and /dev/video1 should be USB. You seem to try using /dev/video0 as WEBCAM which results in the error, as its a CSI type. Please adjust the camera settings in myconfig.py into /dev/video1. Then it should work. |
Thank you for your reply. Is there still a possibility of I2C being occupied? Currently, I am using BUS 7 with the address 0x40 according to the following website. BUS 1 seems to be using 0x40. #9865, over rides only if needed, ie. TX2.. nano ~/projects/donkeycar/donkeycar/parts/camera.py It's error in video1 ___ __ _______________ /___________ __ __ /_ ________ using donkey v5.0.dev3 ... The above exception was the direct cause of the following exception: Traceback (most recent call last): |
|
There is myconfig.py and config.py Using video 0 open the camera normally. use video1 |
@seed0097, TCIII |
Thank you for your reply. When I use Because BUS 1 seems to be using 0x40??? How do I change 0X40 to 0X41 in the DONKEYCAR project? (donkey) jetson@jetson-orin-nano:~/mycar$ python3 manage.py drive ___ __ _______________ /___________ __ __ /_ ________ using donkey v5.0.dev3 ... |
I have installed the DONKEYCAR project on the ORIN NANO JETPACK 5.1.2 system using the following URL, but I encountered the following error when running the program. The camera in use is C270.
https://github.com/Heavy02011/donkeycar-test-DC50dev3/blob/main/logs/Try03_test-result.md
It's error
(env) jetson@orin-nano:~/mycar$ python3 manage.py drive
___ __ _______________ /___________ __ __ /_ ________
__ / / / __ _ __ _ /// _ _ / / / _ / _ __ `/ /
_ // // // / / / / ,< / __/ // / / /___ / // / /
// _/// ////|| _/_, / _/ _,/ //
/____/
using donkey v5.0.dev3 ...
INFO:donkeycar.config:loading config file: /home/jetson/mycar/config.py
INFO:donkeycar.config:loading personal config over-rides from myconfig.py
INFO:main:PID: 4018
WARNING:donkeycar.parts.pins:pigpio was not imported.
cfg.CAMERA_TYPE WEBCAM
INFO:main:cfg.CAMERA_TYPE WEBCAM
pygame 2.5.2 (SDL 2.28.3, Python 3.8.10)
Hello from the pygame community. https://www.pygame.org/contribute.html
INFO:donkeycar.parts.camera:Opening Webcam...
Xlib: extension "RANDR" missing on display "localhost:10.0".
INFO:donkeycar.parts.camera:Available cameras ['/dev/video0', '/dev/video1']
INFO:donkeycar.parts.camera:Webcam opened at /dev/video0 ...
INFO:donkeycar.parts.camera:...warming camera
INFO:donkeycar.parts.camera:...warming camera
INFO:donkeycar.parts.camera:...warming camera
INFO:donkeycar.parts.camera:...warming camera
INFO:donkeycar.parts.camera:Webcam ready.
INFO:donkeycar.vehicle:Adding part Webcam.
INFO:donkeycar.parts.web_controller.web:Starting Donkey Server...
INFO:donkeycar.parts.web_controller.web:You can now go to orin-nano.local:8887 to drive your car.
INFO:donkeycar.vehicle:Adding part LocalWebController.
INFO:donkeycar.vehicle:Adding part Pipe.
INFO:donkeycar.vehicle:Adding part ExplodeDict.
INFO:donkeycar.vehicle:Adding part Lambda.
INFO:donkeycar.vehicle:Adding part Lambda.
INFO:donkeycar.vehicle:Adding part Lambda.
INFO:donkeycar.vehicle:Adding part Lambda.
INFO:donkeycar.vehicle:Adding part Lambda.
INFO:donkeycar.vehicle:Adding part ThrottleFilter.
INFO:donkeycar.vehicle:Adding part UserPilotCondition.
INFO:donkeycar.vehicle:Adding part RecordTracker.
INFO:donkeycar.vehicle:Adding part AiLaunch.
INFO:donkeycar.vehicle:Adding part DriveMode.
INFO:donkeycar.vehicle:Adding part ToggleRecording.
Traceback (most recent call last):
File "manage.py", line 1142, in
drive(cfg, model_path=args['--model'], use_joystick=args['--js'],
File "manage.py", line 468, in drive
add_drivetrain(V, cfg)
File "manage.py", line 953, in add_drivetrain
pwm_pin=pins.pwm_pin_by_id(dt["PWM_STEERING_PIN"]),
File "/home/jetson/donkeycar/donkeycar/parts/pins.py", line 266, in pwm_pin_by_id
return pwm_pin(pin_provider, pin_number, i2c_bus=i2c_bus, i2c_address=i2c_address, frequency_hz=frequency_hz)
File "/home/jetson/donkeycar/donkeycar/parts/pins.py", line 385, in pwm_pin
return PwmPinPCA9685(pin_number, pca9685(i2c_bus, i2c_address, frequency_hz))
File "/home/jetson/donkeycar/donkeycar/parts/pins.py", line 635, in pca9685
pca = PCA9685(busnum, address, frequency)
File "/home/jetson/donkeycar/donkeycar/parts/pins.py", line 581, in init
self.pwm = Adafruit_PCA9685.PCA9685(address=address)
File "/usr/local/lib/python3.8/dist-packages/Adafruit_PCA9685/PCA9685.py", line 75, in init
self.set_all_pwm(0, 0)
File "/usr/local/lib/python3.8/dist-packages/Adafruit_PCA9685/PCA9685.py", line 111, in set_all_pwm
self._device.write8(ALL_LED_ON_L, on & 0xFF)
File "/usr/local/lib/python3.8/dist-packages/Adafruit_GPIO/I2C.py", line 114, in write8
self._bus.write_byte_data(self._address, register, value)
File "/usr/local/lib/python3.8/dist-packages/Adafruit_PureIO/smbus.py", line 315, in write_byte_data
self._select_device(addr)
File "/usr/local/lib/python3.8/dist-packages/Adafruit_PureIO/smbus.py", line 154, in _select_device
ioctl(self._device.fileno(), I2C_SLAVE, addr & 0x7F)
OSError: [Errno 16] Device or resource busy
The text was updated successfully, but these errors were encountered: