schodet / nxt-python

NXT-Python is a python driver/interface for the Lego Mindstorms NXT robot based on NXT_python.
https://ni.srht.site/nxt-python/latest/
GNU General Public License v3.0
237 stars 74 forks source link

Not finding brick #154

Closed letsgo00 closed 2 years ago

letsgo00 commented 6 years ago

I cannot get this to work with any of my lego nxt bricks. Uding nxt-python version 2.2.2 (also tried 2.1.0) Getting this error:

Host: None Name: NXT2 Strict: True
USB: True BT: True Fantom: False FUSB: False FBT: False
Traceback (most recent call last):
  File "message_test.py", line 9, in <module>
    b = nxt.locator.find_one_brick(name="NXT2", debug=True)
  File "C:\Python27\lib\site-packages\nxt\locator.py", line 137, in find_one_brick
    raise BrickNotFoundError
nxt.locator.BrickNotFoundError
zephirl commented 6 years ago

Hey, I think I had a similar problem and I got it to work after searching around, so I compiled some useful info that could help :

For Bluetooth connection:

b.play_tone_and_wait(440.0, 100) # 440Hz is Concert A and 100ms for duration. Basically, make a beep noise to check connection

schodet commented 2 years ago

python2 is no longer supported, please try with python3 and master branch.