Git Product home page Git Product logo

Comments (13)

juedongli avatar juedongli commented on June 27, 2024

https://github.com/stanfordroboticsclub/UDPComms
DEFAULT_IP = "10.0.0.255"

ip By default UDPComms sends to the 10.0.0.X subnet, but can be changed to a different ip using this argument.
Set to localhost (127.0.0.1) for development on the same computer.

from stanfordquadruped.

marx-bryan avatar marx-bryan commented on June 27, 2024

S $8Y4L5TJJYB`Y$ XF4R
i have the same question ,still unsolved

from stanfordquadruped.

mikh3x4 avatar mikh3x4 commented on June 27, 2024

try running python3 /home/pi/PupperCommand/joystick.py to run the joystick program without systemd. What does it output?

from stanfordquadruped.

marx-bryan avatar marx-bryan commented on June 27, 2024

try running python3 /home/pi/PupperCommand/joystick.py to run the joystick program without systemd. What does it output?

pi@pi(rw):~/PupperCommand$ sudo python3 joystick.py
Can't get device info: No such device
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/ds4drv/backends/bluetooth.py", line 89, in setup
subprocess.check_output(["hcitool", "clock"],
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['hcitool', 'clock']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/pi/PupperCommand/joystick.py", line 14, in
joystick = Joystick()
File "/usr/local/lib/python3.9/dist-packages/PS4Joystick.py", line 85, in init
backend.setup()
File "/usr/local/lib/python3.9/dist-packages/ds4drv/backends/bluetooth.py", line 92, in setup
raise BackendError("'hcitool clock' returned error. Make sure "
ds4drv.exceptions.BackendError: 'hcitool clock' returned error. Make sure your bluetooth device is powered up with 'hciconfig hciX up'.

from stanfordquadruped.

mikh3x4 avatar mikh3x4 commented on June 27, 2024

have you tired running hciconfig hciX up before running that command? Its a bit weird because I think joystick.py should run that on its own but I want to make sure

from stanfordquadruped.

marx-bryan avatar marx-bryan commented on June 27, 2024

sudo hciconfig hciX up
Can't get device info: No such device

from stanfordquadruped.

marx-bryan avatar marx-bryan commented on June 27, 2024

To start with,I didnt use offical img ,instead i used version _2021 bulleyes( 2021-10-30-raspios-bullseye),and followed the offical document to install the software

from stanfordquadruped.

mikh3x4 avatar mikh3x4 commented on June 27, 2024

It seems like the pi's bluetooth module is not showing up at all. What version of Pi are you using? What's the output of hcitool dev?

from stanfordquadruped.

marx-bryan avatar marx-bryan commented on June 27, 2024

raspberry 4b ,pi@pi(rw):~/PupperCommand$ hcitool dev
Devices:
device is blank

from stanfordquadruped.

mikh3x4 avatar mikh3x4 commented on June 27, 2024

It's possible something changed between raspios versions. A quick googling brings this up which suggests early bullseye versions had something wrong with bluetooth. I would recommend updating raspios (it should be possible to do in place without reinstalling) and seeing if that fixes things

from stanfordquadruped.

marx-bryan avatar marx-bryan commented on June 27, 2024

pi@pi(rw):$ sudo nano /etc/apt/sources.list.d/raspi.list
pi@pi(rw):
$ sudo apt-get update
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian bullseye InRelease
Hit:2 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi bullseye InRelease
Reading package lists... Done
pi@pi(rw):$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@pi(rw):
$ sudo hcitool dev
Devices:
still blank
i think maybe i need to reinstall it to the newest version

from stanfordquadruped.

marx-bryan avatar marx-bryan commented on June 27, 2024

It's possible something changed between raspios versions. A quick googling brings this up which suggests early bullseye versions had something wrong with bluetooth. I would recommend updating raspios (it should be possible to do in place without reinstalling) and seeing if that fixes things

thanks for your advice

from stanfordquadruped.

AlfredMoore avatar AlfredMoore commented on June 27, 2024

pi@pi(rw):$ sudo nano /etc/apt/sources.list.d/raspi.list pi@pi(rw):$ sudo apt-get update Hit:1 http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian bullseye InRelease Hit:2 http://mirrors.tuna.tsinghua.edu.cn/raspberrypi bullseye InRelease Reading package lists... Done pi@pi(rw):$ sudo apt-get upgrade Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. pi@pi(rw):$ sudo hcitool dev Devices: still blank i think maybe i need to reinstall it to the newest version

Did you solve it ? Totally same problem, though I am in the Debian 10.

from stanfordquadruped.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.