Quantcast
Channel: panStamp forum - All Forums
Viewing all articles
Browse latest Browse all 473

IndexError: list index out of range

$
0
0
creo que es un tema antiguo pero no me ha quedado clara la solución.

Code:
Rved: (3D30)001900C000190C02C601E5
Register addr= 25 id=12 changed to 02C601E5
Temperature_25 in address 25 changed to 21.0 C
Humidity_25 in address 25 changed to 48.5 %
Rved: (C601)09001900C000190C02
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/dist-packages/swap/modem/SerialPort.py", line 74, in run
    self.serial_received(strBuf)
  File "/usr/local/lib/python2.7/dist-packages/swap/modem/SerialModem.py", line 77, in _serialPacketReceived
    self._ccpacket_received(ccPacket)
  File "/usr/local/lib/python2.7/dist-packages/swap/SwapServer.py", line 162, in _ccPacketReceived
    swPacket = SwapPacket(ccPacket)
  File "/usr/local/lib/python2.7/dist-packages/swap/protocol/SwapPacket.py", line 317, in __init__
    self.regId = ccPacket.data[9]
IndexError: list index out of range

analizando el paquete SWAP que ha dado el error:
09001900C000190C02

09 00 1 9 00 C0 00 19 0C02

parece que es incorrecto el primer byte 09 ( destination adress) y también algunos más.

este paquete es lanzado cuando debería llegar el voltaje del address 25.

¿a que puede ser debido?

Viewing all articles
Browse latest Browse all 473

Trending Articles