You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
still can't connect sensors to my brickpi with ev3dev. #555
it always seems to return with Exception: LegoPort(serial0-0:S1) is not connected. Any help?
import ev3dev.brickpi as ev3
p = ev3.LegoPort(ev3.INPUT_1)
p.mode = "nxt-analog"
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 3062, in mode
self._mode = self.set_attr_string(self._mode, 'mode', value)
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 229, in set_attr_string
return self._set_attribute(attribute, name, value)
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 216, in _set_attribute
raise Exception("%s is not connected" % self)
Exception: LegoPort(serial0-0:S1) is not connected
p.set_device = "lego-nxt-touch"
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 3077, in set_device
self._set_device = self.set_attr_string(self._set_device, 'set_device', value)
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 229, in set_attr_string
return self._set_attribute(attribute, name, value)
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 216, in _set_attribute
raise Exception("%s is not connected" % self)
Exception: LegoPort(serial0-0:S1) is not connected
from ev3dev.brickpi3 import *
import ev3dev.brickpi as ev3
p = ev3.LegoPort(ev3.INPUT_1)
p.set_device = "lego-nxt-touch"
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 3077, in set_device
self._set_device = self.set_attr_string(self._set_device, 'set_device', value)
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 229, in set_attr_string
return self._set_attribute(attribute, name, value)
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 216, in _set_attribute
raise Exception("%s is not connected" % self)
Exception: LegoPort(serial0-0:S1) is not connected
import ev3dev.brickpi3 as ev3
p = ev3.LegoPort(ev3.INPUT_1)
p.mode = "nxt-analog"
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 3062, in mode
self._mode = self.set_attr_string(self._mode, 'mode', value)
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 229, in set_attr_string
return self._set_attribute(attribute, name, value)
File "/usr/lib/python3/dist-packages/ev3dev/core.py", line 216, in _set_attribute
raise Exception("%s is not connected" % self)
Exception: LegoPort(spi0.1:S1) is not connected
Exception: LegoPort(serial0-0:S1) is not connected
Exception: LegoPort(spi0.1:S1) is not connected
not quite the same
Did you enable the BrickPi3 in config.txt? Does the yellow light on the BrickPi3 flash or is it on steady? Are there any messages about brickpi3 in the output of the dmesg command?
Activity
dlech commentedon Nov 1, 2018
Are you using BrickPi or BrickPi3?
coffeedood commentedon Nov 1, 2018
brickpi3
dlech commentedon Nov 1, 2018
So this needs to be
coffeedood commentedon Nov 1, 2018
still getting the same error.
dlech commentedon Nov 1, 2018
not quite the same
Did you enable the BrickPi3 in
config.txt? Does the yellow light on the BrickPi3 flash or is it on steady? Are there any messages aboutbrickpi3in the output of thedmesgcommand?coffeedood commentedon Nov 1, 2018
I believe I enabled the BrickPi3 in the config.txt. The yellow light flashes slowly. This is what I get when I type in dmesg.
dlech commentedon Nov 1, 2018
Sounds like it is not enabled. The light should not be flashing and you should see something like
WasabiFan commentedon Dec 19, 2018
Is there still an issue to be fixed here or can this be closed?