{"action":"created","issue":{"url":"https://api.github.com/repos/ev3dev/ev3dev/issues/529","repository_url":"https://api.github.com/repos/ev3dev/ev3dev","labels_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/529/labels{/name}","comments_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/529/comments","events_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/529/events","html_url":"https://github.com/ev3dev/ev3dev/issues/529","id":130219862,"number":529,"title":"Can't see lego-sensors or motors on BrickPi","user":{"login":"jfcloutier","id":7797455,"avatar_url":"https://avatars.githubusercontent.com/u/7797455?v=3","gravatar_id":"","url":"https://api.github.com/users/jfcloutier","html_url":"https://github.com/jfcloutier","followers_url":"https://api.github.com/users/jfcloutier/followers","following_url":"https://api.github.com/users/jfcloutier/following{/other_user}","gists_url":"https://api.github.com/users/jfcloutier/gists{/gist_id}","starred_url":"https://api.github.com/users/jfcloutier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfcloutier/subscriptions","organizations_url":"https://api.github.com/users/jfcloutier/orgs","repos_url":"https://api.github.com/users/jfcloutier/repos","events_url":"https://api.github.com/users/jfcloutier/events{/privacy}","received_events_url":"https://api.github.com/users/jfcloutier/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ev3dev/ev3dev/labels/BrickPi","name":"BrickPi","color":"207de5"},{"url":"https://api.github.com/repos/ev3dev/ev3dev/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-02-01T00:37:35Z","updated_at":"2016-03-24T11:23:52Z","closed_at":"2016-02-01T01:03:25Z","body":"I can't seem to see my sensors or motors on the BrickPi under ev3dev.\r\n\r\n- lego-sensor class is missing from /sys/class even when Ev3 sensors are plugged into S1, S2 etc.\r\n\r\n- tacho-motor class contain motor0...motor3, each with driver_name = lego-nxt-motor even though no motor is connected\r\n\r\nMy configuration is:\r\n\r\nRaspberry Pi2\r\nBrickPi rev.2.8\r\nrunning rpi2-ev3dev-jessie-2015-12-30\r\n\r\nconfig.txt:\r\n\r\n```\r\n####################################\r\n# Dexter Industries BrickPi config #\r\n####################################\r\n\r\n# uncomment both if you are using BrickPi\r\ndtoverlay=brickpi\r\ninit_uart_clock=32000000\r\n\r\n# uncomment only if you are using BrickPi+\r\ndtparam=brickpi_battery=okay\r\n\r\n# uncomment to disable BrickPi LEDs on boot.\r\n#dtparam=brickpi_led1_trigger=none,brickpi_led2_trigger=none\r\n\r\n# uncomment if you have a Model B Rev 1 board that uses gpio 21 instead of\r\n# gpio 27\r\n#dtparam=brickpi_led1_gpio=21\r\n\r\n# uncomment if you have a mindsensors.com RTC sensor connected to input port 5\r\n#dtoverlay=i2c-rtc,ds1307\r\n```\r\n\r\n ---> (everything else is unchanged)\r\n\r\n\r\nFrom dmesg:\r\n\r\n```\r\nrobot@ev3dev:/sys/class$ dmesg | grep lego\r\n[    4.997226] lego-port port0: Registered 'in1' on 'ttyAMA0'.\r\n[    4.999941] lego-port port1: Registered 'in2' on 'ttyAMA0'.\r\n[    5.002762] lego-port port2: Registered 'ttyAMA0:outA' on 'ttyAMA0'.\r\n[    5.005566] lego-port port2: Added new device 'ttyAMA0:outA:lego-nxt-motor'\r\n[    5.011504] lego-port port3: Registered 'ttyAMA0:outB' on 'ttyAMA0'.\r\n[    5.014313] lego-port port3: Added new device 'ttyAMA0:outB:lego-nxt-motor'\r\n[    5.019719] lego-port port4: Registered 'in3' on 'ttyAMA0'.\r\n[    5.022521] lego-port port5: Registered 'in4' on 'ttyAMA0'.\r\n[    5.025338] lego-port port6: Registered 'ttyAMA0:outC' on 'ttyAMA0'.\r\n[    5.028204] lego-port port6: Added new device 'ttyAMA0:outC:lego-nxt-motor'\r\n[    5.030766] lego-port port7: Registered 'ttyAMA0:outD' on 'ttyAMA0'.\r\n[    5.033280] lego-port port7: Added new device 'ttyAMA0:outD:lego-nxt-motor'\r\n[    5.119559] tacho-motor motor0: Registered 'lego-nxt-motor' on 'ttyAMA0:outA'.\r\n[    5.122483] tacho-motor motor1: Registered 'lego-nxt-motor' on 'ttyAMA0:outB'.\r\n[    5.125247] tacho-motor motor2: Registered 'lego-nxt-motor' on 'ttyAMA0:outC'.\r\n[    5.128830] tacho-motor motor3: Registered 'lego-nxt-motor' on 'ttyAMA0:outD'.\r\n```\r\n\r\nYour help is greatly appreciated.\r\n"},"comment":{"url":"https://api.github.com/repos/ev3dev/ev3dev/issues/comments/200795898","html_url":"https://github.com/ev3dev/ev3dev/issues/529#issuecomment-200795898","issue_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/529","id":200795898,"user":{"login":"jabrena","id":147263,"avatar_url":"https://avatars.githubusercontent.com/u/147263?v=3","gravatar_id":"","url":"https://api.github.com/users/jabrena","html_url":"https://github.com/jabrena","followers_url":"https://api.github.com/users/jabrena/followers","following_url":"https://api.github.com/users/jabrena/following{/other_user}","gists_url":"https://api.github.com/users/jabrena/gists{/gist_id}","starred_url":"https://api.github.com/users/jabrena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabrena/subscriptions","organizations_url":"https://api.github.com/users/jabrena/orgs","repos_url":"https://api.github.com/users/jabrena/repos","events_url":"https://api.github.com/users/jabrena/events{/privacy}","received_events_url":"https://api.github.com/users/jabrena/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T11:23:52Z","updated_at":"2016-03-24T11:23:52Z","body":"**Test iteration 1 with RPI1 and Brickpi V2.8:**\r\n\r\nI burned a sdcard with rpi-ev3dev-jessie-2015-12-30.img but I didn't update the system with any upgrade.\r\n\r\n``` bash\r\nrobot@ev3dev:~$ uname -r\r\n4.1.15-9-ev3dev-rpi\r\n```\r\n\r\n``` bash\r\nrobot@ev3dev:~$ lsmod\r\nModule                  Size  Used by\r\n8021q                  20796  0 \r\ngarp                    7024  1 8021q\r\nstp                     2106  1 garp\r\nllc                     5670  2 stp,garp\r\nev3_motor               2752  0 \r\ntacho_motor_class      14245  1 ev3_motor\r\ndc_motor_class          9159  1 tacho_motor_class\r\nbrickpi                15322  1 \r\nlego_bus                4796  2 brickpi,ev3_motor\r\nlego_port_class         4527  1 brickpi\r\nbrickpi_battery         2491  0 \r\n8192cu                567860  0 \r\nbcm2835_gpiomem         3703  0 \r\ni2c_bcm2708             6004  0 \r\nuio_pdrv_genirq         3550  0 \r\nuio                    10002  1 uio_pdrv_genirq\r\nfuse                   85816  1 \r\nipv6                  354313  28 \r\n``` \r\n\r\nUsing dmesg, I could see that raspi register ports from brickpi:\r\n\r\n**dmesg:**\r\n\r\n``` bash\r\n[    9.382729] Registered BrickPi line discipline. (28)\r\n[    9.395317] lego-port port0: Registered 'in1' on 'ttyAMA0'.\r\n[    9.402480] lego-port port1: Registered 'in2' on 'ttyAMA0'.\r\n[    9.417407] lego-port port2: Registered 'ttyAMA0:outA' on 'ttyAMA0'.\r\n[    9.434907] lego-port port2: Added new device 'ttyAMA0:outA:lego-nxt-motor'\r\n[    9.451017] lego-port port3: Registered 'ttyAMA0:outB' on 'ttyAMA0'.\r\n[    9.453168] lego-port port3: Added new device 'ttyAMA0:outB:lego-nxt-motor'\r\n[    9.474798] lego-port port4: Registered 'in3' on 'ttyAMA0'.\r\n[    9.498394] lego-port port5: Registered 'in4' on 'ttyAMA0'.\r\n[    9.501363] lego-port port6: Registered 'ttyAMA0:outC' on 'ttyAMA0'.\r\n[    9.512434] lego-port port6: Added new device 'ttyAMA0:outC:lego-nxt-motor'\r\n[    9.519286] lego-port port7: Registered 'ttyAMA0:outD' on 'ttyAMA0'.\r\n[    9.521419] lego-port port7: Added new device 'ttyAMA0:outD:lego-nxt-motor'\r\n[   11.395588] tacho-motor motor0: Registered 'lego-nxt-motor' on 'ttyAMA0:outA'.\r\n[   11.436786] tacho-motor motor1: Registered 'lego-nxt-motor' on 'ttyAMA0:outB'.\r\n[   11.459189] tacho-motor motor2: Registered 'lego-nxt-motor' on 'ttyAMA0:outC'.\r\n[   11.481713] tacho-motor motor3: Registered 'lego-nxt-motor' on 'ttyAMA0:outD'.\r\n```\r\n\r\nMy questions for raspberry pi:\r\n\r\n* Using raspberry pi2, I see more modules loaded in the system (ev3_uart_sensor,nxt_i2c_sensor). Is it necessary to update this version?\r\n* At the moment, I have connected: 1x ev3 medium motor, 1x ev3 large motor, 1x nxt motor but reading dmesg, all motors are considered as nxt motor.\r\n* Why the system didn't detect any lego sensor?\r\n\r\nI continue the same test with raspberry pi2\r\n\r\nJuan Antonio"}}