Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Openinig Port /dev/pcanusb32 #16

Open
MohamadHalwani opened this issue Nov 3, 2020 · 7 comments
Open

Error Openinig Port /dev/pcanusb32 #16

MohamadHalwani opened this issue Nov 3, 2020 · 7 comments

Comments

@MohamadHalwani
Copy link

MohamadHalwani commented Nov 3, 2020

I'm having hard time connecting the bhand.
The WEIRD thing is that yesterday it worked with no issues and I had a good time examining the controller.
but today I'm having these issues

.. logging to /home/ubuntu/.ros/log/e21b736a-1d9c-11eb-b973-e82a44f3998b/roslaunch-ubuntu-Lenovo-ideapad-320-15IKB-15270.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
WARNING: disk usage in log directory [/home/ubuntu/.ros/log] is over 1GB.
It's recommended that you use the 'rosclean' command.

started roslaunch server http://ubuntu-Lenovo-ideapad-320-15IKB:36085/

SUMMARY
========

PARAMETERS
 * /bhand_node/control_mode: POSITION
 * /bhand_node/desired_freq: 250.0
 * /bhand_node/ft_sensor: False
 * /bhand_node/joint_ids: ['F1', 'F1_TIP', ...
 * /bhand_node/joint_names: ['bh_j12_joint', ...
 * /bhand_node/port: /dev/pcanusb32
 * /bhand_node/tactile_sensors: True
 * /rosdistro: **kinetic**
 * /rosversion: 1.12.16

NODES
  /
    bhand_node (bhand_controller/bhand_node.py)

ROS_MASTER_URI=http://localhost:11311

process[bhand_node-1]: started with pid [15287]
[INFO] [1604385233.549408]: /bhand_node: init: setting control mode by default to PID
{'F2_TIP': ['bh_j23_joint', 3], 'F1': ['bh_j12_joint', 0], 'F2': ['bh_j22_joint', 2], 'F3': ['bh_j32_joint', 4], 'F3_TIP': ['bh_j33_joint', 5], 'F1_TIP': ['bh_j13_joint', 1], 'SPREAD_1': ['bh_j11_joint', 6], 'SPREAD_2': ['bh_j21_joint', 7]}
[INFO] [1604385233.551186]: /bhand_node: port /dev/pcanusb32, freq = 250, topic = state, tactile_sensors = True
[INFO] [1604385233.551872]: bhand_node: starting
PCANBasic::Initialize: Error openning port /dev/pcanusb32
[ERROR] [1604385233.578192]: pyHand: Initialize: Error: Error Number: 0x10000 while attempting to initialize

[ERROR] [1604385233.578635]: /bhand_node:setup: Error initializing the hand
PCANBasic::Initialize: Error openning port /dev/pcanusb32
[ERROR] [1604385234.579611]: pyHand: Initialize: Error: Error Number: 0x10000 while attempting to initialize

[ERROR] [1604385234.581824]: /bhand_node:setup: Error initializing the hand
PCANBasic::Initialize: Error openning port /dev/pcanusb32
[ERROR] [1604385235.580416]: pyHand: Initialize: Error: Error Number: 0x10000 while attempting to initialize

[ERROR] [1604385235.581568]: /bhand_node:setup: Error initializing the hand
PCANBasic::Initialize: Error openning port /dev/pcanusb32
[ERROR] [1604385236.581505]: pyHand: Initialize: Error: Error Number: 0x10000 while attempting to initialize

[ERROR] [1604385236.582134]: /bhand_node:setup: Error initializing the hand
PCANBasic::Initialize: Error openning port /dev/pcanusb32
[ERROR] [1604385237.582646]: pyHand: Initialize: Error: Error Number: 0x10000 while attempting to initialize

[ERROR] [1604385237.583293]: /bhand_node:setup: Error initializing the hand
PCANBasic::Initialize: Error openning port /dev/pcanusb32
[ERROR] [1604385238.583744]: pyHand: Initialize: Error: Error Number: 0x10000 while attempting to initialize

[ERROR] [1604385238.584622]: /bhand_node:setup: Error initializing the hand
[ERROR] [1604385238.586241]: /bhand_node::canError: Errors on CAN bus
[INFO] [1604385238.587193]: BHand::switchToState: FAILURE_STATE
[INFO] [1604385243.589295]: BHand::switchToState: INIT_STATE
PCANBasic::Initialize: Error openning port /dev/pcanusb32

any ideas ?

@MohamadHalwani
Copy link
Author

It seems that the issue has to do with UEFI (BIOS) settings, I really do not know what is that but the solution in here do the job
but it seems that u have to do it each time you shut down your laptop
Any other solution is appreciated

@MohamadHalwani
Copy link
Author

Again its not working any ideas anyone ??

@RomanRobotnik
Copy link
Contributor

Is it the port /dev/pcanusb32 available?
Sometimes, when the system (kernel) is upgraded, you need to re-install the library again.

@MohamadHalwani
Copy link
Author

You mean the pcan python ( https://github.com/RobotnikAutomation/pcan_python.git) ?
I already did all the steps, how can I check ?

Thanks for your reply

@RomanRobotnik
Copy link
Contributor

RomanRobotnik commented Feb 18, 2021 via email

@MohamadHalwani
Copy link
Author

MohamadHalwani commented Feb 18, 2021

Its giving no such file or directory !
Is it the peak driver missing ? because I already downloaded this from their website (version 8.8.0) and ran "make NET=NO_NETDEV_SUPPORT

@MohamadHalwani
Copy link
Author

MohamadHalwani commented Feb 22, 2021

using the following command solved the issue
make PCC=NO PCI=NO DNG=NO ISA=NO PAR=NO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants