Ok - fax broke down, but here’s what I’ve done so far
Both devices are LilyGo TTBEAM v1.1 devices
Flashed the firmware-1.2.59.d81c1c0 firmware to 2 units, then, I set the settings to “known” values.
- Started with a ‘meshtastic —set factory_reset true
- Reset the device via reset switch
- Ran a “settings” script:
# Radio channel settings
meshtastic --set region US # set region to US
meshtastic --ch-set id 0 --ch-index 0 # set Channel id
meshtastic --ch-set name “mychannel" --ch-index 0 # set channel name
meshtastic --ch-set psk default --ch-index 0 # set encryption to default
meshtastic --ch-set tx_power 0 --ch-index 0 # max legal power for region
# set limit of hops to max of 7
meshtastic --set hop_limit 7
# 'rotate' display every 120 seconds
meshtastic --set auto_screen_carousel_secs 120
# GPS settings
meshtastic --set gps_update_interval 30 # GPS update interval
meshtastic --set location_share LocEnabled # GPS Location enabled
meshtastic --set position_broadcast_secs 120 # broadcast interval to other units
meshtastic --set position_broadcast_smart true # set smart broadcast
meshtastic --pos-fields POS_ALTITUDE POS_ALT_MSL POS_BATTERY POS_SATINVIEW # set to get altitude, MSL, Battery % and how many sats in view
# WIFI settings
meshtastic --set wifi_ap_mode true
meshtastic --set wifi_password “somepw" --set wifi_ssid "mesh_9c00"
reset the device via reset switch
- Device powered up, and got an ip of 192.168.4.1, let it create the self-signed cert, confirmed via attaching desktop via wifi to AP, and then running ‘arp -a’:
<user>@iMac27 Meshtastic % arp -a
? (192.168.4.1) at 44:17:93:87:9c:1 on en1 ifscope [ethernet]
- Had to manually bring up the web page in a browser
- Tried to attach via browser to http://meshtastic.local - cannot attach.
- Tried to attach via browser to http://192.168.4.1/json/report, and got a report back, part of which is:
{
“wifi”: {
“rssi”: 0,
“ip”: “192.168.4.1”
},
}
Left this device powered on, then moved to 2nd device, and did:
- Started with a ‘meshtastic —set factory_reset true
- reset the device via reset switch
- Ran a “settings” script (same as above, just changed SSID, password left as 1st device)
- INTERESTINGLY, the first device became IP 192.168.42.1 - second device became 192.168.4.1 - then powered down both devices, powered them up again, one after the other - BOTH devices had an IP of 192.168.42.1 - and devices connected to each other via radio, and could be seen in the screen(s) that they were connected to each other.
- Only ONE AP visible via wifi - the second one. Connected via wifi to it, and an ‘arp -a’ only shows that second device. INTERESTINGLY, within a couple seconds of attaching the the AP - a webpage appears for the second device.
So, both devices are identical, on the same FW release, have been factory reset prior to setting any settings and the only setting difference is the wifi_ssid (different for each device). My intent in the script is to find the unit’s MAC address via ‘meshtastic --info’, by parsing the returned JSON, and having a table that has unique settings based on MACaddr and set them accordingly. The vast majority of settings will be identical between units - just a few differences here and there.
Why set up devices via wifi? Well, I guess I had hoped the web interface was actually ‘built out’ so I could have two devices, connect to their respective AP, and change settings without have to disconnect/reconnect the micro USB. On another thread, I had issues and found that it was loose power connections via USB, and breathing on a device would reset it (it was a headless device, so you couldn’t see anything, and until I got used to the flashing lights, I didn’t realize the unit was being reset so often). That was my hope, but found the web interface has virtually no settings available.
I don’t know if this constitutes a bug or not, as I’m not sure what the software should actually do at this point, but I’d certainly say that sometimes giving the device one IP address, then another, and sometimes both having the same IP is an issue.
Hopefully my steps are repeatable.