Does ardSerial.py support Bluetooth
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
The script works with Windows, Mac, and Raspberry Pi (Linux) through USB and Bluetooth connections. Have you tried the USB connection? It should be more stable. Can the port be opened, or does it return a "not a petoi device" error? You may run the app from the terminal by python pyUI.py.
That's a little weird for ttyS0. It is only added when the program thinks it's a Raspberry Pi computer:
https://github.com/PetoiCamp/OpenCat/blob/main/serialMaster/ardSerial.py