Skip to main content

Posts

Sunspot: Reset button doesn't work

1. Disconnect the Sun SPOT from the USB cable 2. Kill all the ant and java processes listening on the port 3. Hold the control button in for a few seconds until a double red flash indicates that the Sun SPOT has powered down (NB doing this *after* disconnecting). 4. Type this command at a command prompt: ant -Dport=xxx upgrade where xxx is the port name 5. Plug it in as soon as the ant script starts to complain that the port isn't available. *Don't* push the reset button: this isn't necessary and may confuse. 

Sunspot: Power controller

https://www.sunspotworld.com/forums/viewtopic.php?p=8064&sid=b80a20f95ee74e2e3826834f25d542a6 https://www.sunspotworld.com/forums/viewtopic.php?t=306&highlight=energy http://www.sunspotworld.com/docs/Orange/javadoc/com/sun/spot/peripheral/IPowerController.html#getVbatt()

SunSpot: MovementDetection

Problem: Method "thresholdExceeded" always works even though we didn't move the spot or move the spot when it is in deepsleep. Cause: I suppose that the events occurred when we do move and wait for sending the messages when the receiver is available. Solution: Disable ThresholdEvent before starting in deepsleep mode -- accel.enableThresholdEvents(IAccelerometer3D.ALL_AXES, false);