Hello,
I have a Jetson Nano Developer Kit 2G (3USB + 1 USBC) with Jetpack Version: 4.6.1-b110 loaded.
I’ve updated and upgraded all the drivers from the Jetson Nano image (ubuntu 18.04) and I’m trying to run the ups software that comes with the Waveshare UPS Power Module. hi
When I run the display_server.py I get the following error from the utils.py import.
* Serving Flask app 'display_server' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on all addresses.
WARNING: This is a development server. Do not use it in a production deployment.
* Running on http://192.168.7.224:8000/ (Press CTRL+C to quit)
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "display_server.py", line 79, in _run_display_stats
power_watts = '%.1f' % power_usage()
File "/home/joe/Code/UPS-Power-Module/ups_display/utils.py", line 62, in power_usage
with open("/sys/devices/50000000.host1x/546c0000.i2c/i2c-6/6-0040/iio:device0/in_power0_input", 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/sys/devices/50000000.host1x/546c0000.i2c/i2c-6/6-0040/iio:device0/in_power0_input'
Running the following:
sudo cat /sys/bus/i2c/drivers/ina3221x/6-0040/iio:device0/in_voltage0_input results in
cat: '/sys/bus/i2c/drivers/ina3221x/6-0040/iio:device0/in_voltage0_input': No such file or directory
This is the directory that is missing the folder 6-0040
drwxr-xr-x 5 root root 0 May 15 21:02 ./
drwxr-xr-x 4 root root 0 May 15 21:12 ../
drwxr-xr-x 3 root root 0 May 15 21:01 6-0010/
-rw-r--r-- 1 root root 4096 May 15 21:12 bus_clk_rate
--w------- 1 root root 4096 May 15 21:12 delete_device
lrwxrwxrwx 1 root root 0 May 15 21:12 device -> ../../546c0000.i2c/
drwxr-xr-x 3 root root 0 May 15 21:12 i2c-dev/
-r--r--r-- 1 root root 4096 May 15 21:12 name
--w------- 1 root root 4096 May 15 21:12 new_device
lrwxrwxrwx 1 root root 0 May 15 21:12 of_node -> '../../../../firmware/devicetree/base/host1x/i2c@546c0000'/
drwxr-xr-x 2 root root 0 May 15 21:12 power/
lrwxrwxrwx 1 root root 0 May 15 21:12 subsystem -> ../../../../bus/i2c/
-rw-r--r-- 1 root root 4096 May 15 21:12 uevent
Hello,
I have a Jetson Nano Developer Kit 2G (3USB + 1 USBC) with Jetpack Version: 4.6.1-b110 loaded.
I’ve updated and upgraded all the drivers from the Jetson Nano image (ubuntu 18.04) and I’m trying to run the ups software that comes with the Waveshare UPS Power Module. hi
When I run the display_server.py I get the following error from the utils.py import.
Running the following:
sudo cat /sys/bus/i2c/drivers/ina3221x/6-0040/iio:device0/in_voltage0_inputresults incat: '/sys/bus/i2c/drivers/ina3221x/6-0040/iio:device0/in_voltage0_input': No such file or directoryThis is the directory that is missing the folder
6-0040