meshtastic / web

Meshtastic Web Client
https://client.meshtastic.org
GNU General Public License v3.0
204 stars 85 forks source link

[Bug]: Web interface Send/Receive broken #228

Open madeofstown opened 2 weeks ago

madeofstown commented 2 weeks ago

Category

WiFi, Other

Hardware

Heltec V3, Heltec Wireless Tracker, Other

Firmware Version

2.3.12

Description

This expands https://github.com/meshtastic/firmware/issues/4076. After testing, I found that the web interface neither sends nor receives messages. Originally thought it was isolated to MQTT but more testing revealed that LoRa is failing as well. Devices tested: Heltec V3, Heltec Tracker v1.1, Linux Native (RaspberryPi Zero 2w).

Relevant log output

No response

Talie5in commented 2 weeks ago

@madeofstown Would this be better located in https://github.com/meshtastic/web for the webclient?

madeofstown commented 2 weeks ago

@madeofstown Would this be better located in https://github.com/meshtastic/web for the webclient?

🤔 you're right

Hunter275 commented 2 weeks ago

Can confirm this bug exists.

So far in my testing the V3's screen will show a received message but no message is show on the web UI

Hunter275 commented 2 weeks ago

This is most likely going to be an issue in https://github.com/meshtastic/js

Hunter275 commented 2 weeks ago

https://github.com/meshtastic/js/blob/e5e045495509c61063d938d47f5c3b56854300ac/src/meshDevice.ts#L968-L975

This does not fire on latest firmware

Hunter275 commented 2 weeks ago

Successful send on SECONDARY channel

DEBUG | ??:??:?? 1213 [Router] Add packet record (id=0x11af7dd6 fr=0x10 to=0xff, WantAck=0, HopLim=3 Ch=0x1 Portnum=1 rxtime=1718300508 via MQTT hopStart=3)
DEBUG | ??:??:?? 1213 [Router] handleReceived(REMOTE) (id=0x11af7dd6 fr=0x10 to=0xff, WantAck=0, HopLim=3 Ch=0x1 Portnum=1 via MQTT hopStart=3)
DEBUG | ??:??:?? 1213 [Router] Module 'text' wantsPacket=1
INFO  | ??:??:?? 1213 [Router] Received text msg from=0xc1b8010, id=0x11af7dd6, msg=Hello
DEBUG | ??:??:?? 1213 [Router] showing standard frames
DEBUG | ??:??:?? 1213 [Router] Showing 0 module frames
DEBUG | ??:??:?? 1213 [Router] Total frame count: 103
DEBUG | ??:??:?? 1213 [Router] Added modules.  numframes: 0
DEBUG | ??:??:?? 1213 [Router] Finished building frames. numframes: 5
DEBUG | ??:??:?? 1213 [Router] Module 'text' considered
DEBUG | ??:??:?? 1213 [Router] Module 'canned' wantsPacket=1
DEBUG | ??:??:?? 1213 [Router] Module 'canned' considered
DEBUG | ??:??:?? 1213 [Router] Module 'StoreForward' wantsPacket=1
DEBUG | ??:??:?? 1213 [Router] Module 'StoreForward' considered
DEBUG | ??:??:?? 1213 [Router] Module 'ExternalNotificationModule' wantsPacket=1
INFO  | ??:??:?? 1213 [Router] External Notification Module Disabled or muted
DEBUG | ??:??:?? 1213 [Router] Module 'ExternalNotificationModule' considered
DEBUG | ??:??:?? 1213 [Router] Module 'routing' wantsPacket=1
INFO  | ??:??:?? 1213 [Router] Received routing from=0xc1b8010, id=0x11af7dd6, portnum=1, payloadlen=5
DEBUG | ??:??:?? 1213 [Router] Routing sniffing (id=0x11af7dd6 fr=0x10 to=0xff, WantAck=0, HopLim=3 Ch=0x1 Portnum=1 via MQTT hopStart=3)
INFO  | ??:??:?? 1214 [Router] Rebroadcasting received floodmsg to neighbors
DEBUG | ??:??:?? 1214 [Router] Using AES256 key!
DEBUG | ??:??:?? 1214 [Router] ESP32 crypt fr=c1b8010, num=11af7dd6, numBytes=9!
WARN  | ??:??:?? 1214 [Router] send - !config.lora.tx_enabled
DEBUG | ??:??:?? 1214 [Router] Delivering rx packet (id=0x11af7dd6 fr=0x10 to=0xff, WantAck=0, HopLim=3 Ch=0x1 Portnum=1 via MQTT hopStart=3)
DEBUG | ??:??:?? 1214 [Router] Update DB node 0xc1b8010, rx_time=0
DEBUG | ??:??:?? 1214 [Router] Forwarding to phone (id=0x11af7dd6 fr=0x10 to=0xff, WantAck=0, HopLim=3 Ch=0x1 Portnum=1 via MQTT hopStart=3)
DEBUG | ??:??:?? 1214 [Router] Module 'routing' considered
INFO  | ??:??:?? 1214 Telling client we have new packets 24
DEBUG | ??:??:?? 1214 [WebServerThread] webAPI handleAPIv1FromRadio
INFO  | ??:??:?? 1214 [WebServerThread] getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 1214 [WebServerThread] phone downloaded packet (id=0x11af7dd6 fr=0x10 to=0xff, WantAck=0, HopLim=3 Ch=0x1 Portnum=1 via MQTT hopStart=3)
DEBUG | ??:??:?? 1214 [WebServerThread] encoding toPhone packet to phone variant=2, 36 bytes
DEBUG | ??:??:?? 1214 [WebServerThread] webAPI handleAPIv1FromRadio, len 36
DEBUG | ??:??:?? 1222 [Power] Battery: usbPower=1, isCharging=1, batMv=4228, batPct=100
[HTTPS:I] Connection timeout. FID=53      
[HTTPS:I] Connection closed. Socket FID=53
Hunter275 commented 2 weeks ago

Seems PRIMARY channel never fires off the MQTT -> HTTP API from the firmware

Hunter275 commented 2 weeks ago
DEBUG | ??:??:?? 2228 [WebServerThread] webAPI handleAPIv1FromRadio
DEBUG | ??:??:?? 2228 [WebServerThread] webAPI handleAPIv1FromRadio, len 0
INFO  | ??:??:?? 2229 [mqtt] Received MQTT topic msh/htest/2/e/H/!0c1b8010, len=52
DEBUG | ??:??:?? 2229 [Router] Add packet record (id=0x5fc6065f fr=0x10 to=0xff, WantAck=0, HopLim=3 Ch=0x1 Portnum=1 rxtime=1718301523 via MQTT hopStart=3)
DEBUG | ??:??:?? 2229 [Router] handleReceived(REMOTE) (id=0x5fc6065f fr=0x10 to=0xff, WantAck=0, HopLim=3 Ch=0x1 Portnum=1 via MQTT hopStart=3)
DEBUG | ??:??:?? 2229 [Router] Module 'text' wantsPacket=1
INFO  | ??:??:?? 2229 [Router] Received text msg from=0xc1b8010, id=0x5fc6065f, msg=UwU
DEBUG | ??:??:?? 2229 [Router] Enter state: ON
DEBUG | ??:??:?? 2229 [Router] showing standard frames
DEBUG | ??:??:?? 2229 [Router] Showing 0 module frames
DEBUG | ??:??:?? 2229 [Router] Total frame count: 103
DEBUG | ??:??:?? 2229 [Router] Added modules.  numframes: 0
DEBUG | ??:??:?? 2229 [Router] Finished building frames. numframes: 5
DEBUG | ??:??:?? 2229 [Router] Module 'text' considered
DEBUG | ??:??:?? 2229 [Router] Module 'canned' wantsPacket=1
DEBUG | ??:??:?? 2229 [Router] Module 'canned' considered
DEBUG | ??:??:?? 2229 [Router] Module 'StoreForward' wantsPacket=1
DEBUG | ??:??:?? 2229 [Router] Module 'StoreForward' considered
DEBUG | ??:??:?? 2229 [Router] Module 'ExternalNotificationModule' wantsPacket=1
INFO  | ??:??:?? 2229 [Router] External Notification Module Disabled or muted
DEBUG | ??:??:?? 2229 [Router] Module 'ExternalNotificationModule' considered
DEBUG | ??:??:?? 2229 [Router] Module 'routing' wantsPacket=1
INFO  | ??:??:?? 2229 [Router] Received routing from=0xc1b8010, id=0x5fc6065f, portnum=1, payloadlen=4
DEBUG | ??:??:?? 2229 [Router] Routing sniffing (id=0x5fc6065f fr=0x10 to=0xff, WantAck=0, HopLim=3 Ch=0x1 Portnum=1 via MQTT hopStart=3)
INFO  | ??:??:?? 2229 [Router] Rebroadcasting received floodmsg to neighbors
DEBUG | ??:??:?? 2229 [Router] Using AES256 key!
DEBUG | ??:??:?? 2229 [Router] ESP32 crypt fr=c1b8010, num=5fc6065f, numBytes=8!
WARN  | ??:??:?? 2229 [Router] send - !config.lora.tx_enabled
DEBUG | ??:??:?? 2229 [Router] Delivering rx packet (id=0x5fc6065f fr=0x10 to=0xff, WantAck=0, HopLim=3 Ch=0x1 Portnum=1 via MQTT hopStart=3)
DEBUG | ??:??:?? 2229 [Router] Update DB node 0xc1b8010, rx_time=0
DEBUG | ??:??:?? 2229 [Router] Forwarding to phone (id=0x5fc6065f fr=0x10 to=0xff, WantAck=0, HopLim=3 Ch=0x1 Portnum=1 via MQTT hopStart=3)
DEBUG | ??:??:?? 2229 [Router] Module 'routing' considered
INFO  | ??:??:?? 2229 [Screen] Turning on screen
INFO  | ??:??:?? 2229 Telling client we have new packets 41
[HTTPS:I] Request: GET /api/v1/fromradio?all=false (FID=53)
DEBUG | ??:??:?? 2230 [WebServerThread] webAPI handleAPIv1FromRadio
INFO  | ??:??:?? 2230 [WebServerThread] getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 2230 [WebServerThread] phone downloaded packet (id=0x5fc6065f fr=0x10 to=0xff, WantAck=0, HopLim=3 Ch=0x1 Portnum=1 via MQTT hopStart=3)
DEBUG | ??:??:?? 2230 [WebServerThread] encoding toPhone packet to phone variant=2, 35 bytes
DEBUG | ??:??:?? 2230 [WebServerThread] webAPI handleAPIv1FromRadio, len 35
Hunter275 commented 2 weeks ago

Issue does not exist when building from latest version of master