rcdrones / UPSPACK_V3

this is UPSPACK_V3 repo , share code and manual
GNU General Public License v3.0
102 stars 27 forks source link

Is there any way to communicate with UPS without disable RPi's bluetooth? #2

Open EastEast opened 3 years ago

EastEast commented 3 years ago

according to the README

we need to edit /boot/config.txt with enable_uart=1 dtoverlay=disable-bt

the second command will disable the bluetooth

how to use UPS_GUI_demo.py with bluetooth on?

organizedkaos commented 3 years ago

On a raspberry pi4 this works. I am able to use uart communication and bluetooth enabled.

CreeperLin commented 2 years ago

It is possible to enable the bluetooth and use the UART port located at /dev/ttyS0 instead of /dev/ttyAMA0 for the UPSPACK, by fixing the video core frequency in /boot/config.txt.

enable_uart=1
core_freq=300

The reason is that the baudrate of the raspi's mini UART module is affected by the VPU core frequency. reference

hoffmakl1961 commented 2 years ago

The serial interface is not required in normal operation (shutdown_check.py), Only for firmware updates and demo programs.

newpond commented 2 years ago

I have both on rpi4 by adding another uart (only certain models of pi have these)

let me know if you need help with this config