The most recent commit (72eca92) updated firmware to rev 201611070000, whereas current Bean Loader apps require rev 201611160000.
In a possibly related issue, the bean program_firmware
command does not fail-fast if the bean's firmware is more recent than the revision in the SDK's firmware_bundles. Instead it proceeds, but does not complete:
[...]
2017-03-21T00:39:41.915Z INFO All services have been setup!
Connected!
2017-03-21T00:39:41.946Z INFO Char read success(2a27): 2A
Programming device firmware: 884aea153e0a
2017-03-21T00:39:41.952Z INFO Begin update called
2017-03-21T00:39:41.975Z INFO Char read success(2a26): 201611160000 Img-B
2017-03-21T00:39:41.976Z INFO Comparing firmware versions: Bundle version (201611070000), Bean version (201611160000)
2017-03-21T00:39:41.979Z INFO Starting FW update for device Bean+(884aea153e0a)
2017-03-21T00:39:41.981Z INFO Begin FW @ 1490056782
2017-03-21T00:39:41.984Z INFO Triggered a notification on Identify char
The command appears to hang at this point and must be manually terminated.
Another possibly related bug is that the bean program_sketch
command also hangs. This has been reported several times recently in the forum:
2017-03-21T00:42:35.289Z INFO All services have been setup!
Connected!
2017-03-21T00:42:35.318Z INFO Char read success(2a27): 2A
Found sketch setLed for board Bean+
2017-03-21T00:42:35.328Z INFO No longer scanning...
2017-03-21T00:42:35.331Z INFO State transition: null -> STATE_INACTIVE
2017-03-21T00:42:35.331Z INFO Beginning sketch upload of sketch: setLed
2017-03-21T00:42:35.332Z INFO State transition: STATE_INACTIVE -> STATE_AWAIT_READY
2017-03-21T00:42:35.333Z INFO Sketch upload started!
Once again, the command appears to hang at this point and must be manually terminated.
Other commands that hang are: read_accel
, read_ble_config
, and read_device_info
.
I wonder if the hangs are related to the firmware version? It seems unlikely that they are related to BLE dongle because the hangs have been reported when using several different approved dongles.
windows 10
python 2.7.13
node v6.10.0
bean 0.6.1