View: 1602|Reply: 3

server issues with PiCar B

[Copy link]

2

Threads

5

Posts

40

Credits

Newbie

Rank: 1

Credits
40
Post time 2019-10-16 06:02:05 | Show all posts |Read mode
I'm pretty sure I've set most everything up correctly but when trying to connect via the client it times out 5/5 times

when I press on anything on the client I get this read

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\robbi\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py", line 1705, in __call__
    return self.func(*args)
  File "C:\Users\robbi\OneDrive\Desktop\adeept_picar-b-V1.0\code\Adeept_PiCar-B-master\client\client.py", line 63, in call_forward
    tcpClicSock.send(('forward').encode())
OSError: [WinError 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\robbi\AppData\Local\Programs\Python\Python37\lib\tkinter\__init__.py", line 1705, in __call__
    return self.func(*args)
  File "C:\Users\robbi\OneDrive\Desktop\adeept_picar-b-V1.0\code\Adeept_PiCar-B-master\client\client.py", line 76, in call_stop
    tcpClicSock.send(('stop').encode())
OSError: [WinError 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied



does anyone have any thoughts?


Reply

Use magic Report

2

Threads

5

Posts

40

Credits

Newbie

Rank: 1

Credits
40
 Author| Post time 2019-10-16 22:23:10 | Show all posts
I seem to be having issues with the i2c and camera
I try to load the client from the terminal and it reads


pi@raspberrypi:~ $ sudo python3 adeept_picar-b/server/server.py
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1OMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 456, in _iniamera
    self._camera = mo.MMALCamera()
  File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 2279, in __t__
    super(MMALCamera, self).__init__()
  File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 633, in __i__
    prefix="Failed to create MMAL component %s" % self.component_type)
  File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_ch
    raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to create MMAL component b'vc.ril.came: Out of memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "adeept_picar-b/server/server.py", line 692, in <module>
    camera = picamera.PiCamera()              #Camera initialization
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 431, in __in_
    self._init_camera(camera_num, stereo_mode, stereo_decimate)
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 460, in _iniamera
    "Camera is not enabled. Try running 'sudo raspi-config' "
picamera.exc.PiCameraError: Camera is not enabled. Try running 'sudo raspi-cog' and ensure that the camera has been enabled.
pi@raspberrypi:~ $ __
  File "/usr/lib/python3/dist-packages/picamera/mmalobj.py", line 633, in __i__
    prefix="Failed to create MMAL component %s" % self.component_type)
  File "/usr/lib/python3/dist-packages/picamera/exc.py", line 184, in mmal_ch
    raise PiCameraMMALError(status, prefix)
picamera.exc.PiCameraMMALError: Failed to create MMAL component b'vc.ril.came: Out of memory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "adeept_picar-b/server/server.py", line 692, in <module>
    camera = picamera.PiCamera()              #Camera initialization
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 431, in __in_
    self._init_camera(camera_num, stereo_mode, stereo_decimate)
  File "/usr/lib/python3/dist-packages/picamera/camera.py", line 460, in _iniamera
    "Camera is not enabled. Try running 'sudo raspi-config' "
picamera.exc.PiCameraError: Camera is not enabled. Try running 'sudo raspi-cog' and ensure that the camera has been enabled.
-bash: __: command not found
pi@raspberrypi:~ $     super(MMALCamera, self).__init__()
-bash: syntax error near unexpected token `MMALCamera,'
pi@raspberrypi:~ $   File "/usr/lib/python3/dist-packages/picamera/mmalobj.pyline 633, in __init__
-bash: File: command not found
pi@raspberrypi:~ $     prefix="Failed to create MMAL component %s" % self.coment_type)
-bash: syntax error near unexpected token `)'
pi@raspberrypi:~ $   File "/usr/lib/python3/dist-packages/picamera/exc.py", l 184, in mmal_check
-bash: File: command not found
pi@raspberrypi:~ $     raise PiCameraMMALError(status, prefix)
-bash: syntax error near unexpected token `('
pi@raspberrypi:~ $ picamera.exc.PiCameraMMALError: Failed to create MMAL compnt b'vc.ril.camera': Out of memory
-bash: picamera.exc.PiCameraMMALError:: command not found
pi@raspberrypi:~ $
pi@raspberrypi:~ $ During handling of the above exception, another exception urred:
-bash: During: command not found
pi@raspberrypi:~ $
pi@raspberrypi:~ $ Traceback (most recent call last):
-bash: syntax error near unexpected token `most'
pi@raspberrypi:~ $   File "adeept_picar-b/server/server.py", line 692, in <moe>
-bash: syntax error near unexpected token `newline'
pi@raspberrypi:~ $     camera = picamera.PiCamera()              #Camera initization
-bash: syntax error near unexpected token `('
pi@raspberrypi:~ $   File "/usr/lib/python3/dist-packages/picamera/camera.py"ine 431, in __init__
-bash: File: command not found
pi@raspberrypi:~ $     self._init_camera(camera_num, stereo_mode, stereo_decie)
-bash: syntax error near unexpected token `camera_num,'
pi@raspberrypi:~ $   File "/usr/lib/python3/dist-packages/picamera/camera.py"ine 460, in _init_camera
-bash: File: command not found
pi@raspberrypi:~ $     "Camera is not enabled. Try running 'sudo raspi-config
-bash: Camera is not enabled. Try running 'sudo raspi-config' : command not fd
pi@raspberrypi:~ $ picamera.exc.PiCameraError: Camera is not enabled. Try rung 'sudo raspi-config' and ensure that the camera has been enabled.
-bash: picamera.exc.PiCameraError:: command not found
pi@raspberrypi:~ $


so I run the config and enable both the i2c and camera
check finish and reboot
once I reboot I run pi@raspberrypi:~ $ lsmod | grep i2c


i2c_bcm2835            16384  0
i2c_dev                20480  0

but the i2c are both in red, making me think they are not on.

when I run

pi@raspberrypi:~ $ sudo apt-get install i2c tools
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package i2c
E: Unable to locate package tools


Any thoughts on how to successfully enable them?
Reply

Use magic Report

0

Threads

69

Posts

412

Credits

Website Editor

Rank: 8Rank: 8

Credits
412
Post time 2019-10-22 09:49:45 | Show all posts
Please use the command: sudo cp -f //home/pi/adeept_picar-b/server/set.txt /home/pi/set.txt to copy the set.txt in the server folder to the pi folder. The installation package may not copy the file to the pi folder because there is not enough permission.
Reply

Use magic Report

0

Threads

8

Posts

22

Credits

Newbie

Rank: 1

Credits
22
Post time 2021-6-17 12:10:51 | Show all posts
Why is this server issues with PiCar B still happening today? This server issues was going on for a couple of months already and there are lots of people who are complaining about this and they still ignoring it. I hope that the developer will do something about it. Get this school girl simulator free on emulatorpc if you want some simulation game to play. The game will allow you to play as a high school students and you can socialize with other players in the game.

Watch this video on the best way to use Tiktok
Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules