brickrail icon indicating copy to clipboard operation
brickrail copied to clipboard

BLE Disconnecting Once clicked run trains

Open LiamChild opened this issue 8 months ago • 11 comments

I connect the hubs then the BLE server disconnects when I click run all hubs on the layout would you know how to fix?

LiamChild avatar Apr 30 '25 02:04 LiamChild

Can you upload the logs? They can be found here: Windows: %APPDATA%/Godot/app_userdata/brickrail-gui/logs Linux: ~/.local/share/godot/app_userdata/brickrail-gui/logs Probably the newest ones, if you encountered the issue the last time you opened brickrail. It should include the "brickrail" and "ble-server" logs (2 files)

Novakasa avatar Apr 30 '25 09:04 Novakasa

Which OS are you on? I am confused since the ble-server logs imply using WinRT, which is a windows thing, while the brickrail logs show some errors seemingly pointing at linux/macos. Do you know what kind of bluetooth adapter your system is using?

Novakasa avatar May 01 '25 17:05 Novakasa

Also, how/when did you install the pybricks firmware? If you know which version you installed that would help a lot.

Novakasa avatar May 01 '25 17:05 Novakasa

Ok I used the firmware in the brickrail folder. I am on windows 11 pro would you like the version?

LiamChild avatar May 01 '25 22:05 LiamChild

also how do i find which adapter im using?

LiamChild avatar May 01 '25 22:05 LiamChild

you should be able to run this in a powershell instance (just search for powershell in windows):

wget https://github.com/Microsoft/busiotools/raw/master/bluetooth/tracing/GetBluetoothRadioInfo.ps1 -UseBasicParsing | iex

Novakasa avatar May 02 '25 18:05 Novakasa

Image Here it is

LiamChild avatar May 03 '25 06:05 LiamChild

Could you have a look.

LiamChild avatar May 04 '25 23:05 LiamChild

Unfortunately nothing springs out to me that's triggering this, I would have to look quite deeply into the logs and I'm quite busy these days. But I will take a look once I have more time. Does this happen always or only sometimes? How many hubs are you trying to connect?

Novakasa avatar May 05 '25 17:05 Novakasa

Sometimes It does then sometimes always I have updated the drivers for the bluetooth adapter. should I run the program as admin?

LiamChild avatar May 05 '25 22:05 LiamChild