NebraLtd / hm-config

Helium Miner Config Container
https://nebra.io/hnt
MIT License
12 stars 20 forks source link

Error device ff:ff:ff:ff:ff:ff was disconnected #92

Open shawaj opened 3 years ago

shawaj commented 3 years ago

The latest updates in #69 have caused an issue with hm-config where it automatically disconnects immediately for rak hotspots - think this is due to the naming

shawaj commented 3 years ago

Screenshot_20210909-195108_Helium Screenshot_20210909-195246_Helium

shawaj commented 3 years ago

logs from a sensecap successfully connecting to bluetooth diagnostics...

 gateway-config  Agent registered
[CHG] Controller E4:5F:01:28:BB:EE Pairable: yes
 gateway-config  [bluetooth]# pairable off
 gateway-config  [bluetooth]# quit
 gateway-config  Agent registered
[CHG] Controller E4:5F:01:28:BB:EE Pairable: yes
 gateway-config  [bluetooth]# pairable off
 gateway-config  [bluetooth]# quit
2021-09-09 21:27:33;DEBUG;Starting with the following ENV:
 gateway-config          SENTRY_DSN=https://3234e2c67fe04c3e9f8b0c9b118c415a@o571444.ingest.sentry.io/5725518
 gateway-config          BALENA_APP_NAME=HELIUM-TESTNET
 gateway-config          BALENA_DEVICE_UUID=2612f23f50fad67f53e4461a5f76fc66
 gateway-config          VARIANT=COMP-SENSECAPM1
 gateway-config          ETH0_MAC_ADDRESS_FILEPATH=/sys/class/net/eth0/address
 gateway-config          WLAN0_MAC_ADDRESS_FILEPATH=/sys/class/net/wlan0/address
 gateway-config          MINER_KEYS_FILEPATH=/var/data/public_keys
 gateway-config          DIAGNOSTICS_JSON_URL=http://localhost:80?json=true
 gateway-config          ETHERNET_IS_ONLINE_FILEPATH=/sys/class/net/eth0/carrier
 gateway-config          FIRMWARE_VERSION=2021.09.09.0
 gateway-config  
 gateway-config  2021-09-09 21:27:33;DEBUG;Read eth0 mac address E4:5F:01:28:BB:EC and wlan0 16:97:EC:7C:11:77
 gateway-config  2021-09-09 21:27:33;DEBUG;Read onboarding pub_key: 112eMiFoAc72xawxAZ4XaauyugobtMmpTrbenvCPPBfAkyBHAwRG + animal_name: dandy-blush-corgi
 gateway-config  2021-09-09 21:27:33;DEBUG;Creating advertisement with MAC E4:5F:01:28:BB:EC and variant details {'FRIENDLY': 'SenseCAP M1', 'SPIBUS': 'spidev0.0', 'RESET': 17, 'MAC': 'wlan0', 'STATUS': 20, 'BUTTON': 21, 'ECCOB': True, 'TYPE': 'Full', 'CELLULAR': False}
 gateway-config  2021-09-09 21:27:33;DEBUG;Starting ConfigApp
 gateway-config  2021-09-09 21:27:33;DEBUG;LED LEDProcessor
 gateway-config  2021-09-09 21:27:33;DEBUG;Running DiagnosticsProcessor
 gateway-config  2021-09-09 21:27:33;DEBUG;<gatewayconfig.gatewayconfig_shared_state.GatewayconfigSharedState object at 0xf61637b0>
 gateway-config  2021-09-09 21:27:33;DEBUG;Reading diagnostics from http://localhost:80?json=true
 gateway-config  2021-09-09 21:27:33;DEBUG;Wifi WifiProcessor
 gateway-config  2021-09-09 21:27:33;DEBUG;Running BluetoothAdvertisementProcessor
 gateway-config  GATT application registered
 gateway-config  2021-09-09 21:27:33;DEBUG;Starting Bluetooth advertisement
 gateway-config  2021-09-09 21:27:33;DEBUG;Read diagnostics {'AN': 'dandy-blush-corgi', 'BA': 'HELIUM-TESTNET', 'BCH': 1004132, 'BN': 'white-thunder', 'BSP': 99.125, 'BT': False, 'BUTTON': 21, 'CELLULAR': False, 'E0': 'E4:5F:01:28:BB:EC', 'ECC': True, 'ECCOB': True, 'FR': '868', 'FRIENDLY': 'SenseCAP M1 Hotspot', 'FW': '2021.09.09.0', 'ID': '2612f23f50fad67f53e4461a5f76fc66', 'LOR': True, 'LTE': False, 'MAC': 'wlan0', 'MC': 'yes', 'MD': 'yes', 'MH': '995344', 'MN': 'symmetric', 'MR': True, 'MS': False, 'OK': '112eMiFoAc72xawxAZ4XaauyugobtMmpTrbenvCPPBfAkyBHAwRG', 'PF': False, 'PK': '112eMiFoAc72xawxAZ4XaauyugobtMmpTrbenvCPPBfAkyBHAwRG', 'RE': 'EU868', 'RESET': 17, 'RPI': '10000000b26bcb4f', 'SPIBUS': 'spidev0.0', 'STATUS': 20, 'TYPE': 'Full', 'VA': 'COMP-SENSECAPM1', 'W0': '16:97:EC:7C:11:77', 'last_updated': '21:25 UTC 09 Sep 2021'}
 gateway-config  GATT advertisement registered
 gateway-config  2021-09-09 21:28:39;DEBUG;Read WiFi SSID
 gateway-config  2021-09-09 21:28:39;DEBUG;SSID not in use: WLAN-NUWAGW
 gateway-config  2021-09-09 21:28:39;DEBUG;SSID not in use: FRITZ!Box Fon WLAN 7320
 gateway-config  2021-09-09 21:28:39;DEBUG;SSID not in use: WLAN-NUWAGW
 gateway-config  2021-09-09 21:28:39;DEBUG;SSID not in use: FRITZ!Box 7530 FO
 gateway-config  2021-09-09 21:28:39;DEBUG;Read Ethernet Online from /sys/class/net/eth0/carrier
 gateway-config  2021-09-09 21:28:39;DEBUG;Ethernet is online: true
 gateway-config  2021-09-09 21:28:39;DEBUG;Read Public Key: 112eMiFoAc72xawxAZ4XaauyugobtMmpTrbenvCPPBfAkyBHAwRG
 gateway-config  2021-09-09 21:28:39;DEBUG;Read Onboarding Key
 gateway-config  2021-09-09 21:28:39;DEBUG;Onboarding key:  112eMiFoAc72xawxAZ4XaauyugobtMmpTrbenvCPPBfAkyBHAwRG
 gateway-config  2021-09-09 21:28:41;DEBUG;Read Firmware
 gateway-config  2021-09-09 21:28:43;DEBUG;Read diagnostics
 gateway-config  2021-09-09 21:28:43;DEBUG;Diagnostics miner_bus
 gateway-config  2021-09-09 21:28:43;DEBUG;Diagnostics miner_object
 gateway-config  2021-09-09 21:28:43;DEBUG;Diagnostics miner_interface
 gateway-config  2021-09-09 21:28:43;DEBUG;Diagnostics p2pstatus
 gateway-config  ERROR:dbus.proxies:Introspect error on :1.947:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NotSupported: org.freedesktop.DBus.Introspectable.Introspect
 gateway-config  2021-09-09 21:28:45;DEBUG;DBUS P2P SUCCEED
 gateway-config  DEBUG:gatewayconfig:DBUS P2P SUCCEED
 gateway-config  2021-09-09 21:28:45;DEBUG;False
 gateway-config  DEBUG:gatewayconfig:False
 gateway-config  2021-09-09 21:28:45;DEBUG;p2pstatus: dbus.Array([dbus.Struct((dbus.String('connected'), dbus.String('yes')), signature=None), dbus.Struct((dbus.String('dialable'), dbus.String('yes')), signature=None), dbus.Struct((dbus.String('nat_type'), dbus.String('symmetric')), signature=None), dbus.Struct((dbus.String('height'), dbus.String('995359')), signature=None)], signature=dbus.Signature('(ss)'))
 gateway-config  DEBUG:gatewayconfig:p2pstatus: dbus.Array([dbus.Struct((dbus.String('connected'), dbus.String('yes')), signature=None), dbus.Struct((dbus.String('dialable'), dbus.String('yes')), signature=None), dbus.Struct((dbus.String('nat_type'), dbus.String('symmetric')), signature=None), dbus.Struct((dbus.String('height'), dbus.String('995359')), signature=None)], signature=dbus.Signature('(ss)'))
 gateway-config  2021-09-09 21:28:45;DEBUG;Using ETH IP address 192.168.2.127
 gateway-config  DEBUG:gatewayconfig:Using ETH IP address 192.168.2.127
 gateway-config  2021-09-09 21:28:45;DEBUG;All attibutes were added to the diagnostics proto
 gateway-config  DEBUG:gatewayconfig:All attibutes were added to the diagnostics proto
 gateway-config  2021-09-09 21:28:45;DEBUG;Diagnostics are b'\n\x10\n\tconnected\x12\x03yes\n\x0f\n\x08dialable\x12\x03yes\n\x10\n\x06height\x12\x06995359\n\x15\n\x08nat_type\x12\tsymmetric\n\x13\n\x03eth\x12\x0cE45F0128BBEC\n\x14\n\x04wifi\x12\x0c1697EC7C1177\n\x12\n\x02fw\x12\x0c2021.09.09.0\n\x13\n\x02ip\x12\r192.168.2.127'
 gateway-config  DEBUG:gatewayconfig:Diagnostics are b'\n\x10\n\tconnected\x12\x03yes\n\x0f\n\x08dialable\x12\x03yes\n\x10\n\x06height\x12\x06995359\n\x15\n\x08nat_type\x12\tsymmetric\n\x13\n\x03eth\x12\x0cE45F0128BBEC\n\x14\n\x04wifi\x12\x0c1697EC7C1177\n\x12\n\x02fw\x12\x0c2021.09.09.0\n\x13\n\x02ip\x12\r192.168.2.127'
shawaj commented 3 years ago

Correctly shows on sensecap that has already been onboarded...

Screenshot_2021-09-09-23-57-32-195_com helium wallet Screenshot_2021-09-09-23-59-54-655_com helium wallet

However, here it gives similar error when trying to connect to bluetooth a second time after already connecting before... Screenshot_2021-09-09-23-54-52-829_com helium wallet

shawaj commented 3 years ago

From Kevin on characteristic issue above:

It appeared when trying to add the hotspot. But I had paired the hotspot before without a restart. When I tried again for 2 times. After restarting the hotspot and freshly pairing it, it was working without any error