Another question for the config section in the device definition:
the verif tag accepts python regex?
Why I have to resync the mote for a change of a config register?
Another bug:
Try to connect to your panstamp modem and then do a disconnect and a
connect again:
Exception in thread Thread-6:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/dist-packages/swap/SwapServer.py",
line 68, in run
self.modem = SerialModem(self._xmlserial.port,
self._xmlserial.speed, self.verbose)
File "/usr/local/lib/python2.7/dist-packages/swap/modem/SerialModem.py",
line 323, in __init__
raise SwapException("Unable to retrieve Hardware Version from serial modem")
SwapException: 'SwapException occurred: Unable to retrieve Hardware
Version from serial modem'
Exception in thread Thread-10:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/local/lib/python2.7/dist-packages/swap/SwapServer.py",
line 68, in run
self.modem = SerialModem(self._xmlserial.port,
self._xmlserial.speed, self.verbose)
File "/usr/local/lib/python2.7/dist-packages/swap/modem/SerialModem.py",
line 313, in __init__
raise SwapException("Unable to reset serial modem")
SwapException: 'SwapException occurred: Unable to reset serial modem'
this happens always when there is data being received and I think also
when no other motes are active.
Cheers.
> Another question for the config section in the device definition:
> the verif tag accepts python regex?
Standard regex expressions
> Why I have to resync the mote for a change of a config register?
If your mote is supposed to be in low-power mode (low--power flag in
device definition file) then you have to force the sync mode each time
you want to send a command to the mote. SYNC mode is simply an
interval of time within which the mote is not aslept and RX is enabled
> this happens always when there is data being received and I think also
> when no other motes are active.
Mmmm... I have to look into this...
Thanks Paolo,