Closed ArshadIram closed 2 years ago
Hi @ArshadIram, is this related to issue 28?
yes
Thanks for closing the issue. Please try to use the method I replied in issue 28 and see if that solves your problem.
I apologise for closing this. This is a separate issue. I am facing this issue while CAIT setup.
I see, this issue is probably related to a bug that was fixed in the dev branch. Please try setting up again with the dev branch of CEP on a newly flashed Raspberry Pi OS. To check out the dev branch, please perform the following steps:
git clone https://github.com/cortictechnology/cep.git
cd cep
git checkout dev
Please check again if the above issue still happens after setting up with the dev branch.
I flashed Pi OS and reinstalled everything. Issue is fixed however, we are getting delay in video. For example, when we are testing it with OKD-lite the video is lagging. Can you please look into it.
Hi @ArshadIram, are you accessing CAIT in the Chromium browser directly on the Raspberry Pi? If so, the performance will not be as good as it can be since the Chromium browser is also competing for CPU resources. Please try accessing the CAIT interface in a Chrome browser on another computer that is connected to the same local network.
HI, Thanks a lot and now its working very fine.
I would like to ask few other general questions
Hi @ArshadIram, glad to know it is working for you now. Regarding your questions:
Hi @michaelhwn Thank you ver much for addressing all of our questions. sure we ( @ArshadIram ) will try implementing speech Recognition. And will respond you back.
You are welcome @ArshadIram. Please feel free to reach out to me if you have any other problems.
@michaelhwn Many thanks to you for your time and for fixing the issues. It was a really quick response and fix.
@michaelhwn We do not support Alex Eco in CEP for speech recognition. However, you are welcome to implement this feature and submit a pull request to CEP.
Regarding this, we (@Roopesh-Bharatwaj-K-R ) would like to know further details.
Hi @ArshadIram, please refer to the guide in here for details on how to extend CEP and add your own functionalities. Instead of modifying the vision module, you will need to extend the voice module and add a new Alexa worker. I have not done anything related to Alexa, so I am not familiar with the Alexa integration procedure. But for extending CEP, you can get started by following the guide I mentioned.
Hello,
I am trying to complete the setup by retrieving the device information.
Actual Result: On front end the screen is showing the loading sign.
On Backend:
oot : PWD=/home/pi/Desktop/Cortic/cep/src/cait/cortic_webapp ; USER=root ; COMMAND=/usr/sbin/iwgetid Mar 16 12:18:01 raspberrypi sudo[26701]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0) Mar 16 12:18:01 raspberrypi sudo[26701]: pam_unix(sudo:session): session closed for user root Mar 16 12:18:01 raspberrypi bash[383]: ERROR:main:Exception on /getwifi [GET] Mar 16 12:18:01 raspberrypi bash[383]: Traceback (most recent call last): Mar 16 12:18:01 raspberrypi bash[383]: File "/usr/local/lib/python3.9/dist-packages/wifi/scan.py", line 38, in all Mar 16 12:18:01 raspberrypi bash[383]: iwlist_scan = subprocess.check_output(['/sbin/iwlist', interface, 'scan'], Mar 16 12:18:01 raspberrypi bash[383]: File "/usr/lib/python3.9/subprocess.py", line 424, in check_output Mar 16 12:18:01 raspberrypi bash[383]: return run(popenargs, stdout=PIPE, timeout=timeout, check=True, Mar 16 12:18:01 raspberrypi bash[383]: File "/usr/lib/python3.9/subprocess.py", line 528, in run Mar 16 12:18:01 raspberrypi bash[383]: raise CalledProcessError(retcode, process.args, Mar 16 12:18:01 raspberrypi bash[383]: subprocess.CalledProcessError: Command '['/sbin/iwlist', 'wlan0', 'scan']' returned non-zero exit status 255. Mar 16 12:18:01 raspberrypi bash[383]: During handling of the above exception, another exception occurred: Mar 16 12:18:01 raspberrypi bash[383]: Traceback (most recent call last): Mar 16 12:18:01 raspberrypi bash[383]: File "/usr/lib/python3/dist-packages/flask/app.py", line 2447, in wsgi_app Mar 16 12:18:01 raspberrypi bash[383]: response = self.full_dispatch_request() Mar 16 12:18:01 raspberrypi bash[383]: File "/usr/lib/python3/dist-packages/flask/app.py", line 1952, in full_dispatch_request Mar 16 12:18:01 raspberrypi bash[383]: rv = self.handle_user_exception(e) Mar 16 12:18:01 raspberrypi bash[383]: File "/usr/local/lib/python3.9/dist-packages/flask_cors/extension.py", line 165, in wrapped_function Mar 16 12:18:01 raspberrypi bash[383]: return cors_after_request(app.make_response(f(args, kwargs))) Mar 16 12:18:01 raspberrypi bash[383]: File "/usr/lib/python3/dist-packages/flask/app.py", line 1821, in handle_user_exception Mar 16 12:18:01 raspberrypi bash[383]: reraise(exc_type, exc_value, tb) Mar 16 12:18:01 raspberrypi bash[383]: File "/usr/lib/python3/dist-packages/flask/_compat.py", line 39, in reraise Mar 16 12:18:01 raspberrypi bash[383]: raise value Mar 16 12:18:01 raspberrypi bash[383]: File "/usr/lib/python3/dist-packages/flask/app.py", line 1950, in full_dispatch_request Mar 16 12:18:01 raspberrypi bash[383]: rv = self.dispatch_request() Mar 16 12:18:01 raspberrypi bash[383]: File "/usr/lib/python3/dist-packages/flask/app.py", line 1936, in dispatch_request Mar 16 12:18:01 raspberrypi bash[383]: return self.view_functions[rule.endpoint](req.view_args) Mar 16 12:18:01 raspberrypi bash[383]: File "/home/pi/Desktop/Cortic/cep/src/cait/cortic_webapp/main.py", line 180, in getwifi Mar 16 12:18:01 raspberrypi bash[383]: cells = list(Cell.all("wlan0")) Mar 16 12:18:01 raspberrypi bash[383]: File "/usr/local/lib/python3.9/dist-packages/wifi/scan.py", line 41, in all Mar 16 12:18:01 raspberrypi bash[383]: raise InterfaceError(e.output.strip()) Mar 16 12:18:01 raspberrypi bash[383]: wifi.exceptions.InterfaceError: b"wlan0 Interface doesn't support scanning : Device or resource busy" Mar 16 12:18:01 raspberrypi bash[383]: 172.19.96.157 - - [16/Mar/2022 12:18:01] "GET /getwifi HTTP/1.1" 500 - Mar 16 12:18:01 raspberrypi bash[383]: INFO:werkzeug:172.19.96.157 - - [16/Mar/2022 12:18:01] "GET /getwifi HTTP/1.1" 500 - Mar 16 12:18:01 raspberrypi bash[383]: 172.19.96.157 - - [16/Mar/2022 12:18:01] "GET /isconnected HTTP/1.1" 200 - Mar 16 12:18:01 raspberrypi bash[383]: INFO:werkzeug:172.19.96.157 - - [16/Mar/2022 12:18:01] "GET /isconnected HTTP/1.1" 200 - Mar 16 12:18:02 raspberrypi sudo[26710]: root : PWD=/home/pi/Desktop/Cortic/cep/src/cait/cortic_webapp ; USER=root ; COMMAND=/usr/sbin/iwgetid Mar 16 12:18:02 raspberrypi sudo[26710]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0) Mar 16 12:18:02 raspberrypi sudo[26710]: pam_unix(sudo:session): session closed for user root
Environment informaiton: Raspberrypi 4B OS: 32 bit