Open ricfrr opened 2 weeks ago
Hello! I haven't encountered a similar issue before. If you are confident that you have correctly assigned permissions and configured the library properly, you can try accessing the controller using raw SerialAPI commands through the terminal. For examle try to ping a SBGC32 with the next command: 0x24, 0x45, 0x01, 0x46, 0x00, 0x35, 0x6E, 0x07
However, I still suspect that the issue lies within the port connection itself. It might be something within Linux software.
Hi, thank you very much for your time.
If I run the command from the bash
ls -l /dev/ttyUSB0 | grep "/dev/ttyUSB0"
I get the following
crwxrwxrwx 1 root dialout 188, 0 jul 17 09:20 /dev/ttyUSB0
while if I check the dialout group
getent group dialout
I get (riccardo.franceschin@local.eurecat.org is my username)
dialout:x:20:riccardo.franceschin@local.eurecat.org
I then tried to create a tiny python script for sending the command you suggested
import serial
import time
# Configure the serial port
ser = serial.Serial(
port='/dev/ttyUSB0',
baudrate=115200
)
# Ensure the port is open
if ser.is_open:
print("Serial port is open")
# Send the bytes
command = b'\x24\x45\x01\x46\x00\x35\x6E\x07'
ser.write(command)
print(f"Sent: {command}")
# Give the device some time to respond
time.sleep(1)
# Read the response
response = ser.read(ser.in_waiting) # Read all available data
print(f"Response: {response}")
# Close the serial port
ser.close()
and the output from the program is and in the meanwhile nothing happen:
Serial port is open
Sent: b'$E\x01F\x005n\x07'
Response: b''
I have also tried the same code on a jetson orin nano running ubuntu 22.04, and the problem is exactly the same.
Any idea? do you think it is a linux generic problem or a might be a gimblal problem? (the weird thing is that the board works and correctly stabilize, and on windows I can connect with the SBG UI)
Hello! Let's try to solve your problem as a regular support ticket. Can I communicate with you via this email? riccardo.franceschini@live.it
Hi yes, but probably is better using riccardo.franceschini@eurecat.org
Hi it has been a while that I am trying to connect the gimbal to a linux x86 machine running ubuntu 22.04 without success.
When I try to execute the demo code I get the following error and nothing happen:
I have setted given the permission to the user to gain the access to the port so it shouldn't be problem of permission.
Also when I try to connect to the gimbal trought GUI it is stuck in a loop :
where if I check
I get
The gimbal should be fine as it runs properly and under Windows I can connect trought the app and see and set all the different parameters.
Any help is very welcome :)