I am having issues with βRemote Adminβ functionality in general and with this latest alpha firmware
Following guide from
Here is what i did to test
Flashed 2 TLora32 v1 devices with alpha firmware attached via USB0 and USB1
sudo ./device-install.sh -p /dev/ttyUSB0 firmware-tlora-v1-1.2.45.b674054.bin
sudo ./device-install.sh -p /dev/ttyUSB1 firmware-tlora-v1-1.2.45.b674054.bin
Configured Region, Channel ID, Channel Name, Admin Channel and Modem Config same on both devices
meshtastic --port /dev/ttyUSB0 --set region EU865
meshtastic --ch-set id 2009 --port /dev/ttyUSB0
meshtastic --port /dev/ttyUSB0 --ch-set name "PenguinFarm"
meshtastic --ch-add admin --port /dev/ttyUSB0
meshtastic --ch-set modem_config Bw500Cr45Sf128 --port /dev/ttyUSB0
meshtastic --port /dev/ttyUSB1 --set region EU865
meshtastic --ch-set id 2009 --port /dev/ttyUSB1
meshtastic --port /dev/ttyUSB1 --ch-set name "PenguinFarm"
meshtastic --ch-add admin --port /dev/ttyUSB1
meshtastic --ch-set modem_config Bw500Cr45Sf128 --port /dev/ttyUSB1
Set the URL same on both devices
meshtastic --port /dev/ttyUSB1 --seturl https://www.meshtastic.org/d/#ChcYASIBASoLUGVuZ3VpbkZhcm1V2QcAAAopIiDxCYjVAOAK5nPw-M7ttG9SgffEWzuY6vQtDSX5bWj8ryoFYWRtaW4 Connected to radio
Confirmed that the Complete URL matched on both devices
meshtastic --port /dev/ttyUSB0 --info
Connected to radio
Owner: Unknown f5a0 (?A0)
My info: { "myNodeNum": 3186685344, "numBands": 10, "firmwareVersion": "1.2.45.b674054", "rebootCount": 7, "messageTimeoutMsec": 300000, "minAppVersion": 20200, "maxChannels": 8 }
Nodes in mesh:
{'num': 3186685344, 'user': {'id': '!bdf0f5a0', 'longName': 'Unknown f5a0', 'shortName': '?A0', 'macaddr': 'fJ698PWg', 'hwModel': 'TLORA_V1'}, 'position': {}}
{'num': 681019020, 'user': {'id': '!2897868c', 'longName': 'Unknown 868c', 'shortName': '?8C', 'macaddr': 'JG8ol4aM', 'hwModel': 'TLORA_V1'}, 'snr': 10.75}
Preferences: { "phoneTimeoutSecs": 900, "lsSecs": 300, "region": "EU865" }
Channels:
PRIMARY psk=default { "modemConfig": "Bw500Cr45Sf128", "psk": "AQ==", "name": "PenguinFarm", "id": 2009 }
SECONDARY psk=secret { "psk": "PpbKCuVHJiawvM5IwXDh0tAE6XRkaeChxRmLqUyXY/A=", "name": "admin" }
Primary channel URL: https://www.meshtastic.org/d/#ChcYASIBASoLUGVuZ3VpbkZhcm1V2QcAAA
Complete URL (includes all channels): https://www.meshtastic.org/d/#ChcYASIBASoLUGVuZ3VpbkZhcm1V2QcAAAopIiA-lsoK5UcmJrC8zkjBcOHS0ATpdGRp4KHFGYupTJdj8CoFYWRtaW4
meshtastic --port /dev/ttyUSB1 --info
Connected to radio
Owner: Unknown 868c (?8C)
My info: { "myNodeNum": 681019020, "numBands": 10, "firmwareVersion": "1.2.45.b674054", "rebootCount": 6, "messageTimeoutMsec": 300000, "minAppVersion": 20200, "maxChannels": 8 }
Nodes in mesh:
{'num': 681019020, 'user': {'id': '!2897868c', 'longName': 'Unknown 868c', 'shortName': '?8C', 'macaddr': 'JG8ol4aM', 'hwModel': 'TLORA_V1'}, 'position': {}, 'lastHeard': 1630401367}
{'num': 3186685344, 'user': {'id': '!bdf0f5a0', 'longName': 'Unknown f5a0', 'shortName': '?A0', 'macaddr': 'fJ698PWg', 'hwModel': 'TLORA_V1'}, 'position': {'time': 1630401303}, 'lastHeard': 1630401341, 'snr': 5.0}
Preferences: { "phoneTimeoutSecs": 900, "lsSecs": 300, "region": "EU865" }
Channels:
PRIMARY psk=default { "modemConfig": "Bw500Cr45Sf128", "psk": "AQ==", "name": "PenguinFarm", "id": 2009 }
SECONDARY psk=secret { "psk": "8QmI1QDgCuZz8PjO7bRvUoH3xFs7mOr0LQ0l+W1o/K8=", "name": "admin" }
Primary channel URL: https://www.meshtastic.org/d/#ChcYASIBASoLUGVuZ3VpbkZhcm1V2QcAAA
Complete URL (includes all channels): https://www.meshtastic.org/d/#ChcYASIBASoLUGVuZ3VpbkZhcm1V2QcAAAopIiDxCYjVAOAK5nPw-M7ttG9SgffEWzuY6vQtDSX5bWj8ryoFYWRtaW4
Disconnected the 1 device from USB0
Sent message to remote device from the USB1 connected device
meshtastic --port /dev/ttyUSB1 --dest \!bdf0f5a0 --sendtext "123"
Nodes
meshtastic --port /dev/ttyUSB1 --nodes
Connected to radio
βββββββ€βββββββββββββββ€ββββββββ€ββββββββββββ€ββββββββββ€ββββββββββββββββββββββ€βββββββββββββββββ€βββββββββββββ€ββββββββββββββ€βββββββββββββ€ββββββββββββ
β N β User β AKA β ID β SNR β LastHeard β Since β Latitude β Longitude β Altitude β Battery β
βββββββͺβββββββββββββββͺββββββββͺββββββββββββͺββββββββββͺββββββββββββββββββββββͺβββββββββββββββββͺβββββββββββββͺββββββββββββββͺβββββββββββββͺββββββββββββ‘
β 1 β Unknown 868c β ?8C β !2897868c β N/A β 2021-08-31 11:11:51 β just now β N/A β N/A β N/A β N/A β
βββββββΌβββββββββββββββΌββββββββΌββββββββββββΌββββββββββΌββββββββββββββββββββββΌβββββββββββββββββΌβββββββββββββΌββββββββββββββΌβββββββββββββΌββββββββββββ€
β 2 β Unknown f5a0 β ?A0 β !bdf0f5a0 β 6.00 dB β 2021-08-31 11:01:02 β 10 minutes ago β N/A β N/A β N/A β N/A β
βββββββ§βββββββββββββββ§ββββββββ§ββββββββββββ§ββββββββββ§ββββββββββββββββββββββ§βββββββββββββββββ§βββββββββββββ§ββββββββββββββ§βββββββββββββ§ββββββββββββ
But trying to get remote info fails
user@ws:~$ meshtastic --port /dev/ttyUSB1 --dest \!bdf0f5a0 --info
Connected to radio
INFO:root:Requesting preferences from remote node (this could take a while)
ERROR:root:Error while handling message from radio 'admin'
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/meshtastic/__init__.py", line 873, in __reader
self._handleFromRadio(self._rxBuf[HEADER_LEN:])
File "/usr/local/lib/python3.9/dist-packages/meshtastic/__init__.py", line 554, in _handleFromRadio
self._handlePacketFromRadio(fromRadio.packet)
File "/usr/local/lib/python3.9/dist-packages/meshtastic/__init__.py", line 692, in _handlePacketFromRadio
handler.callback(asDict)
File "/usr/local/lib/python3.9/dist-packages/meshtastic/node.py", line 291, in onResponse
self.radioConfig = p["decoded"]["admin"]["raw"].get_radio_response
KeyError: 'admin'
^CTraceback (most recent call last):
File "/usr/local/bin/meshtastic", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.9/dist-packages/meshtastic/__main__.py", line 663, in main
common()
File "/usr/local/lib/python3.9/dist-packages/meshtastic/__main__.py", line 512, in common
onConnected(client)
File "/usr/local/lib/python3.9/dist-packages/meshtastic/__main__.py", line 398, in onConnected
getNode().showInfo()
File "/usr/local/lib/python3.9/dist-packages/meshtastic/__main__.py", line 202, in getNode
targetNode = interface.getNode(args.destOrLocal)
File "/usr/local/lib/python3.9/dist-packages/meshtastic/__init__.py", line 240, in getNode
if not n.waitForConfig():
File "/usr/local/lib/python3.9/dist-packages/meshtastic/node.py", line 141, in waitForConfig
return self._timeout.waitForSet(self, attrs=('radioConfig', 'channels'))
File "/usr/local/lib/python3.9/dist-packages/meshtastic/util.py", line 66, in waitForSet
time.sleep(self.sleepInterval)
KeyboardInterrupt
user@ws:~$ meshtastic --port /dev/ttyUSB1 --dest \!bdf0f5a0 --info
Connected to radio
INFO:root:Requesting preferences from remote node (this could take a while)
ERROR:root:Error while handling message from radio 'admin'
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/meshtastic/__init__.py", line 873, in __reader
self._handleFromRadio(self._rxBuf[HEADER_LEN:])
File "/usr/local/lib/python3.9/dist-packages/meshtastic/__init__.py", line 554, in _handleFromRadio
self._handlePacketFromRadio(fromRadio.packet)
File "/usr/local/lib/python3.9/dist-packages/meshtastic/__init__.py", line 692, in _handlePacketFromRadio
handler.callback(asDict)
File "/usr/local/lib/python3.9/dist-packages/meshtastic/node.py", line 291, in onResponse
self.radioConfig = p["decoded"]["admin"]["raw"].get_radio_response
KeyError: 'admin'
Aborting due to: Timed out waiting for node config
Anyone else tried this with success ?
I worked a couple of times on previous tests, but only just after the devices was restarted