You are here

MeshChat not recieving

5 posts / 0 new
Last post
N5MXI
N5MXI's picture
MeshChat not recieving

I feel like this issue has been addressed before but I couldn't find anything specific when I searched.

I have the MeshChat API loaded on a Mikrotik hAP ac lite (10.30.31.113) and the actual MeshChat app running on an Rpi 4.

I can send a message and it propagates to other nodes in the same zone on the mesh. The issue is I don't receive messages from any other nodes in the same zone. 

I'm guessing I have a path or something not configured correctly but I don't know what to correct to fix it.

Suggestions will be greatly appreciated.

http://n5mxi-pi.local.mesh/meshchat
 

nc8q
nc8q's picture
MeshChat not recieving

Which AREDN release is running on the Mikrotik hAP ac lite?

Which meshchat_api release is installed on the Mikrotik hAP ac lite?
(Lua version of Meshchat for AREDN ≥3.22.6.0
 meshchat-api_2.9_all.ip ?)

Confirm meshchat_1.02_all.deb is installed on the RPi.

(meshchat_1.02_all.deb ?)

Is everyone using the same 'pi_zone'?
(our $pi_zone                    = 'MVMchat'; ?)
N5MXI
N5MXI's picture
MeshChat not recieving

Which AREDN release is running on the Mikrotik hAP ac lite?

AREDN 3.23.8.0
MikroTik RouterBOARD 952Ui-5ac2nD (hAP ac lite) 

Which meshchat_api release is installed on the Mikrotik hAP ac lite?
(Lua version of Meshchat for AREDN ≥3.22.6.0
 meshchat-api_2.9_all.ip ?)

meshchat-api 1.02

Confirm meshchat_1.02_all.deb is installed on the RPi.

(meshchat_1.02_all.deb ?)

Is everyone using the same 'pi_zone'?
(our $pi_zone                    = 'MVMchat'; ?)

MeshChat


N5MXI-David  (HH #50038)
WT0F
Not saying that this is the

Not saying that this is the case, but take a look at the time on the nodes involved. If you don't have an NTP server on the mesh network, the nodes don't keep consistent times with one another and if the time varies too much the message database will fail to sync. You can find the code here https://github.com/hickey/meshchat/blob/e2170a4eb1f79b00121fb2e6dea8fe1171c53f4e/meshchatlib.lua#L129-L137.

 I would highly recommend setting up one or more NTP servers on the mesh network--preferably on Linux boxes as they have real time clock hardware where as nodes do not. Then setup each of the nodes to point to the NTP servers to insure that all the clocks are coordinated.
 

N5MXI
N5MXI's picture
Eureka!!! Finally found the fix

AREDN Configuration

If you had previously installed MeshChat 1.02 on a Raspberry PI or Linux machine and later upgraded your node to 3.22.6.0, you may notice that MeshChat stopped synching. The following instructions have been updated to help fix that.2)

Install the meshchat-api package Note that this part will need to be done everytime the node is upgraded. :

  • For AREDN prior to v3.22.6.0, download meshchat-api 1.02
  • For AREDN v3.22.6.0 or later, download meshchat-api_2.x_all.ipk
  • From the Administration page, click on Upload Package Browse… to install it.

From the Port Forwarding, DHCP, ans Services page:

  1. Setup a DHCP Address Reservation for the Linux computer
  2. Advertise the service
  3. Forward WAN port 8080 to LAN port 80
  4. Don't for get to Save Changes

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer