manu-fwi / openlcb-gateway

Gateway from openlcb to cmri (and more)
GNU General Public License v3.0
3 stars 1 forks source link

RR_duino_net_serial.py: AttributeError: 'NoneType' object has no attribute 'last_ping' #3

Closed ggee closed 4 years ago

ggee commented 4 years ago

This occurs some times when nodes are down then up. In this case, all nodes were briefly down.

Checking for dead nodes
Checking for dead nodes
node of address 2 is down
1597200586.4431894 1597200586.643349 2
fullID_from_address: 2002003
dict_items([(2002002, <__main__.RR_duino_node object at 0x767a83d0>), (2002003, <__main__.RR_duino_node object at 0x767a8430>)])
node of address 1 is down
1597200589.166671 1597200589.3668563 1
fullID_from_address: 2002002
dict_items([(2002002, <__main__.RR_duino_node object at 0x767a83d0>)])
Checking for dead nodes
  Trying to wake dead node up (2002002, <__main__.RR_duino_node object at 0x767a83d0>)
  Trying to wake dead node up (2002003, <__main__.RR_duino_node object at 0x767a8430>)
Timed out!
Traceback (most recent call last):
  File "RR_duino_net_serial.py", line 339, in <module>
    waiting_answer_from.last_ping -= RR_duino_node.PING_TIMEOUT / 5
AttributeError: 'NoneType' object has no attribute 'last_ping'
manu-fwi commented 4 years ago

I think I now where mots of the dead nodes problems come from. I am not able to work on that right now though.

ggee commented 4 years ago

Issue fixed.