I am tryting to run ardSerial.py using the instructions at https://github.com/PetoiCamp/OpenCat/tree/main/serialMaster
For some reason, from my Linux box, it does not find Bittle connected via the USB adapter (although I checked that the cables/connections are proper). Is this because the Linux desktop has multiple USB ports?
amitabha@zermatt:~/code/OpenCat/serialMaster$ sudo python3 ardSerial.py
2022-12-29 11:56:28,004 __main__ - INFO - port[0] is /dev/ttyS0
Elapsed time: 1 seconds
-1
* Port ttyS0 is not connected to a Petoi device!
No port found!
I then tried to connect via the Bluetooth adapter. The instructions on the page say something like:
""""
If there is no response after you input the serial command in the terminal, you should close the terminal first, then change the value of "bluetoothPortIndex" in the ardSerial.py (line:128)to connect to another blue tooth serial port, then reopen the terminal and rerun the script.
"""
However, there is no bluetoothPortIndex in ardSerial.py
Please let me know if there is a way out
Hi,
Is your Linux box a Raspberry Pi-based computer? Could you take a picture to show how the device is connected to the robot?
Make sure that you have installed the standard firmware on the robot. Otherwise, the automatic algorithm won't recognize it as a Petoi device.
When did you download the ardSerial.py? The bluetoothPortIndex is obsolete. Please refer to the newer doc at: https://docs.petoi.com/api/serialmaster-user-guide