#Configurator [master] can't connect to BF 4.6 via websockify

14 messages · Page 1 of 1 (latest)

acoustic marsh
#

BF 4.6 + Web Configurator (master branch) not connecting even when using websockify, tried multiple connection strings, configurator is ran locally (the online one for some reasons uses <url.betaflight.com>/my-local-ip:port.

I searched for a bit but didn't manage to find out if others made this specific setup work.
BF 4.5 - 10.10 configurator works wonderfully via web (to another board connected to the 192.168.88.0/24 class)
BF 4.6 - master branch configurator local/online doesn't.

#

Configurator [master] can't connect to BF 4.6 via websockify

#

Oh a promise just returned. websocket.js:108 WebSocket connection to 'ws://localhost:8000/127.0.0.1:6761' failed: WebSocket is closed before the connection is established.

#

hm

#

suspecting I should try with no port at all given that.

#

well, websockify on :8000 and configurator with nothing

acoustic marsh
#

Ok, I tried on 5766 (UART6 ELRS reciever), I tried enabling MSP on UART2 as well, and no luck. (L.E. Setting websockify to proxy towards those specific UART associated ports like 5766 for UART6, and then trying in the configurator using the port websockify is listening to)

tribal plover
#

i have success with http://127.0.0.1:5761 to connect to https://pr0p.dev/
but have console error when using ws://.
dont personally know much more, especially running SITL hex.

acoustic marsh
#

Thanks for the suggestion @tribal plover , it seems it doesn't like this either.. although in a different way 😄 websocket.js:64 WebSocket connection to 'ws://127.0.0.1:5762/' failed: connect @ websocket.js:64 connectDisconnect @ serial_backend.js:138 dispatch @ chunk-ZTG65QXX.js?v=410430da:2960 elemData.handle @ chunk-ZTG65QXX.js?v=410430da:2847Understand this errorAI websocket.js:88 [WEBSOCKET] Connection error: Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 2, …} ws.onerror @ websocket.js:88 error connect @ websocket.js:87 connectDisconnect @ serial_backend.js:138 dispatch @ chunk-ZTG65QXX.js?v=410430da:2960 elemData.handle @ chunk-ZTG65QXX.js?v=410430da:2847Understand this errorAI websocket.js:80 [WEBSOCKET] Connection closed:

#

I think at least on the Configurator->Websockify part it's working since I get a new WARNING: no 'resource' module, daemonizing is disabled for each connection request I make

acoustic marsh
#

argh found the issue

#

I'm guessing this.ws = new WebSocket(this.addres, "wsSerial"); this is intended to work specifically for Firmware Updates (it doesn't for me, provided I should keep using 5761.

#

That was the issue, if configurator isn't working for you - remove that ("wsSerial"), and run it locally.
Pull request is here.

Solved.

GitHub

GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.