psyonicinc / ability-hand-api

Materials for the ability hand API, including documentation, URDF, Matlab, & Python examples.
https://www.psyonic.io/
MIT License
22 stars 7 forks source link

About weird communication issue when following the instruction with UART mode #2

Closed YunchuZhang closed 1 year ago

YunchuZhang commented 1 year ago

Hi there, I am trying to run the python examples. I follow the readme to connect the wires as described. The live_plot_demo.py script does run, but it does not hear anythings back and keep resetting. Screenshot 2023-02-17 21:02:12

Thus, I try to use minicom to send We16 to change the mode. As the readme described here:

Before running, please ensure the hand is in UART communication mode - this can be configured over Bluetooth with the binary setting command We16 Screenshot 2023-02-17 21:02:32

However, it still does not help at all. Any clues for how to solve it?

Ocanath commented 1 year ago

Looks like you have the script running with 115200 baud. Default baud for the hand is 460800. If you change this argument in your call to the python script does it work?

YunchuZhang commented 1 year ago

Hi, I tried with 460800 as well. It doesn’t work. Does my way to send the We16 command work? Is there any response from the command to show it receives it?

On Sat, Feb 18, 2023 at 10:25 Ocanath @.***> wrote:

Looks like you have the script running with 115200 baud. Default baud for the hand is 460800. If you change this argument in your call to the python script does it work?

— Reply to this email directly, view it on GitHub https://github.com/psyonicinc/ability-hand-api/issues/2#issuecomment-1435733746, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIAVGNPWNJ2OGNVZWC4OVR3WYEHZ5ANCNFSM6AAAAAAVAD63MA . You are receiving this because you authored the thread.Message ID: @.***>

Ocanath commented 1 year ago

The hand will respond with a notification 'success'. You can verify the bit setting with RZ16, it will respond with '0' if the bit is set. You can use the Ability Hand app as a Bluetooth client, go to the settings icon and 'developer mode'

YunchuZhang commented 1 year ago

Hi, the second way"You can use the Ability Hand app as a Bluetooth client, go to the settings icon and 'developer mode'" works! But it is still weird that sending "We16" directly with serialtool(minicom) does not work.

Ocanath commented 1 year ago

By design and per the documentation, flash settings are modifiable only using the bluetooth low energy interface (GATT). It is not possible to use UART via a serial client such as minicom to change these settings. Glad you were able to get it working!