possible bug in config register UI and modem connect disconnect

57 views
Skip to first unread message

Paolo Di Prodi

unread,
Mar 15, 2012, 7:05:52 AM3/15/12
to pans...@googlegroups.com
I have found a user bug :
Devices -> Custom Settings ->Select a config register to change
Press Cancel
The UI will say: Please, out your device in SYNC mode.
This is not necessary as the Cancel option did not change any value.

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.

Daniel Berenguer

unread,
Mar 15, 2012, 8:24:37 AM3/15/12
to pans...@googlegroups.com
Paolo, I'm not able to reproduce the first error. You mean that
pressing Device->Custom settings and then closing the Device Selector
with CANCEL still asks you to put the device in SYNC mode?

> 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,

Reply all
Reply to author
Forward
0 new messages